Skip to content

About

RustPad is a fast, standalone, offline-first native desktop document studio built 100% in Pure Rust — zero web server, zero HTML/CSS/JavaScript, zero WebView, and zero external runtime bloat.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

RustPad (rustpad v2.3) — Ultra-Smooth 60–120Hz Offline Native Document & PDF Studio

RustPad logo

Where silky-smooth 60–120Hz responsiveness and human UX are the #1 feature — even on 30–100+ MB multi-screenshot .docx files — in a 100% offline, zero-dependency pure-Rust desktop suite.
Open massive 30–100+ MB multi-page .docx reports with 100+ Retina/4K screenshots effortlessly via progressive viewport HiDPI streaming (64 MiB LRU cache + SharedBytes zero-copy CoW), create tables effortlessly (8×8 visual grid, 1-click presets, /table 4x5, | A | B |, Excel TSV paste), view & insert real-world .docx figures (PNG, JPEG & BMP via Ctrl+Shift+I, /image, drag-and-drop, or Ctrl+V screenshot paste with corner resize handles), highlight any phrase for a Warm Ivory floating toolbar (B / I / U / Highlight / AI Polish), review ECMA-376 Word (.docx) Track Changes in 1 click per clause, forensically sanitize & SHA-256 seal ISO 32000 / PDF/A-2b (.pdf) files, and run air-gapped local AI in a single ~4.1 MB native executable — with 0 external crates.io runtime dependencies.

Committers.top Tunisia Badge

RustPad v2.3 Smooth Studio — Legal Redline Word (.docx) Contract, Virtualized Large-Doc & Figure Engine, Table Studio, Warm Architectural Paper & Linen Chrome, and DLP-Governed Local AI Dock


Why RustPad v2.3 Leads on Human UX & Offline Sovereignty

Most document suites force an awful compromise: sluggish multi-gigabyte legacy ribbons, cloud-only browser DOM editors, or 300 MB Electron wrappers carrying 600+ third-party packages that freeze or crash on multi-megabyte screenshot reports.

RustPad v2.3 treats ultra-smooth 60–120Hz responsiveness and human UX craft as its #1 flagship feature:

  1. Virtualized 30–100+ MB Large-Document & Multi-Screenshot Engine (v2.3 New):
    • Progressive Viewport-Only Image Streaming & 64 MiB LRU Cache: Microsecond IHDR/SOF0/BMP header dimension probing (0 upfront pixel decoding on open), max 3 decodes/frame viewport streaming, box-downsampled HiDPI viewport thumbnails (<= 1440px), 32,768px (64 MP) stitched-screenshot support, and a hard 64 MiB LRU memory ceiling eliminate multi-GB RGBA OOM crashes on 100+ screenshot .docx files.
    • Zero-Copy SharedBytes (Arc<[u8]>) CoW & Cached O(W) Multi-Page Layout: O(1) reference-counted media across 80 Undo/Redo steps and Time-Machine snapshots (zero synchronous LZ77 media re-compression), STORED ZIP fast-path (~500× faster saves), 1 GiB ZIP ceiling, 16 MiB Windows stack, and FNV-1a cached multi-page pagination (0.00 ms scroll layout).
  2. Effortless Table & .docx Figure Creation:
    • Smooth .docx Image & Figure Studio: Pure-Rust ITU-T.81 Baseline/Progressive JPEG, RFC 2083 PNG (1–16 bit, palettes, Adam7), and BMP/DIB codecs decode real-world .docx figures (<w:drawing>, <mc:AlternateContent>, <w:pict>, and table-wrapped <w:drawing>) and write full ECMA-376 <pic:pic> DrawingML + PDF /Subtype /Image XObjects. Insert via the Image ribbon button (Ctrl+Shift+I), /image, file drag-and-drop, or Ctrl+V screenshot paste; click to resize via aspect-locked corner handles (25%–100%), align Left/Center/Right, or edit captions.
    • Effortless Table Creation Studio: Interactive 8×8 visual hover/arrow-key grid (Ctrl+Shift+T), 5 1-click styled presets (Invoice, Project Tracker, Comparison, Pros & Cons), /table 4x5 & | A | B | auto-tables, Excel/Sheets TSV paste, 5 color themes, Zebra striping, and Tab auto-row flow.
  3. 60–120Hz Native VSync & Effortless Selection UX: Win32 WM_PAINT and X11 MotionNotify burst coalescing, slice-accelerated scanline fills, 60Hz critically-damped spring scrolling, zero-lag mouse-drag & double-click word selection, Ctrl+Arrow word jumps, substring TextSpan styling, a Warm Ivory Floating Selection Mini-Toolbar, Ctrl+F live match auto-jump, and Ctrl+Shift+F Distraction-Free Writer Focus Mode.
  4. 100% Offline Sovereignty (0 crates.io Runtime Dependencies) & Forensic Security: PKZIP, bounded DEFLATE/Zlib, RFC 6234 SHA-256, PNG/JPEG/BMP codecs, ECMA-376 OpenXML, ISO 32000 PDF 1.5+ /ObjStm & PDF/A-2b, TrueType .ttf rasterization, Win32 GDI/WinHTTP, and Linux X11 live in-tree across 9 workspace crates — alongside 1-click legal redlines (rustpad redline), forensic PDF glyph-stream redaction (rustpad sanitize), SHA-256 seals, and MDM policy.json AI DLP.
Capability RustPad v2.3 Cloud SaaS Docs Electron Wrappers Legacy Suites
UI Smoothness & Daily UX 60–120Hz VSync · Floating Bar · Focus Mode DOM reflow jitter IPC + GPU compositor lag 300+ ribbon icons
30–100+ MB Screenshot .docx Viewport Streaming · 64 MiB LRU · SharedBytes CoW Upload cap / tab hang Renderer OOM crash Multi-second freeze
Tables & .docx Figures 8×8 Grid · PNG/JPEG/BMP · /image · TSV Paste Cloud upload lag Markdown links only Nested modal dialogs
Offline Air-Gapped Operation 100% Native Offline Cloud-dependent Partial Native
Installer / Binary Footprint ~4.1 MB single binary Browser tab 180–420 MB 850 MB – 3.2 GB
3rd-Party Package Supply Chain 0 crates.io deps + CycloneDX SBOM Proprietary SaaS 500–1,100 npm/cargo Dozens of C/C++ libs
ECMA-376 Track Changes & Redline 1-Click Clause Review + rustpad redline Proprietary Rare Yes
Forensic PDF Redaction Purges underlying glyph streams External add-on Overlay-only risk Paid Pro tier
MDM AI Data Loss Prevention policy.json localhost lock + Selection AI Cloud vendor lock Manual Copilot cloud

Quick Start

Option A — Prebuilt Standalone Executables (v2.3.0, Zero Install)

  • Windows 10 / 11 (x86_64): Download rustpad-v2.3.0-windows-x86_64.exe (portable Win32 GDI + native WinHTTP Schannel TLS — zero WebView2 or VC++ installer required).
  • Linux (x86_64): Download rustpad-v2.3.0-linux-x86_64, then run:
    chmod +x rustpad-v2.3.0-linux-x86_64 && ./rustpad-v2.3.0-linux-x86_64
  • Verify Integrity: Compare against SHA256SUMS.txt (sha256sum -c SHA256SUMS.txt).

Option B — Compile Offline from Source (0 Registry Downloads)

git clone https://github.com/Nour-yahyaoui/rustpad.git
cd rustpad

# Run unit, round-trip & adversarial security tests across all 9 crates
cargo test --workspace

# Build stripped native release binary
cargo build --release --bin rustpad
./target/release/rustpad

Enterprise Headless CLI Cookbook (v2.3.0)

Every GUI capability in RustPad is available headlessly for legal-ops automation, CI pipelines, and security compliance audits:

# 1. Offline Legal Contract Redline (ECMA-376 <w:ins>/<w:del> word-level diff)
rustpad redline Base_MSA_v1.docx Counterparty_v2.docx -o MSA_Redline.docx --author "General Counsel"

# 2. Forensic PDF Redaction Sanitizer (Physically purges redacted text runs + scrubs metadata)
rustpad sanitize Exhibit_Marked.pdf -o Exhibit_Sanitized.pdf

# 3. Archival PDF/A-2b + Cryptographic SHA-256 Tamper-Evident Seal
rustpad sign Exhibit_Sanitized.pdf -o Exhibit_Sealed.pdf --signer "Nour Yahyaoui" --pdfa
rustpad verify Exhibit_Sealed.pdf

# 4. Supply-Chain Security & MDM DLP Governance
rustpad sbom -o rustpad-v2.3.0.cdx.json
rustpad policy --init-airgapped .rustpad-policy.json

# 5. DLP-Governed Local AI Agent (Ollama / nour-code / LM Studio / Corporate WinHTTP)
rustpad ai MSA_Redline.docx --provider nour-code --task summarize -o executive_brief.md

# 6. Bidirectional Format Conversion & UIA/AT-SPI Accessibility Inspection
rustpad convert MSA_Redline.docx MSA_Redline.pdf
rustpad inspect --a11y MSA_Redline.docx

Core Studio Subsystems

1. Word Studio (.docx) — Lossless OpenXML, Legal Redlines & Wrapped Tables

RustPad v2.0 Editorial Home Launchpad

  • Lossless Corporate .docx Passthrough: Preserves word/theme/*, customXml/*, custom styles, and embedded media byte-for-byte across save cycles.
  • Live Legal Track Changes (Ctrl+Shift+E) & Threaded Comments (Ctrl+Shift+M): Edits record standards-compliant <w:ins> (emerald underline) and <w:del> (crimson strikethrough + left-gutter change bar) revisions compatible with Microsoft Word & LibreOffice Writer, with 1-click Accept All / Reject All and word/comments.xml sidebar navigation.
  • Interactive Multi-Line Tables & RTL Typography: Automatic word-wrapped cells, contextual TABLE sub-bar (+Row, +Col, Cell Bold, Shade), draggable column dividers, and automatic right-to-left (Arabic / Hebrew) alignment.
  • Crash-Safe WAL & Advisory Locks: SHA-256-verified Write-Ahead Recovery frames (.~*.rustpad-wal) and shared-drive .~*.rustpad.lock guards protect unsaved work.

2. Forensic Vector PDF Studio (.pdf) — /ObjStm, Sanitization, PDF/A-2b & Seals

RustPad v2.0 Forensic PDF Studio

  • Modern PDF 1.5+ /Type /ObjStm & PNG Predictor Support: Unpacks compressed cross-reference object streams generated by Microsoft Word, Acrobat, Chrome, and macOS Quartz.
  • True Forensic Redaction (Sanitize): Physically removes underlying glyph runs and annotations intersecting redaction boxes so sensitive text can never be copy-pasted or extracted from raw streams.
  • Archival PDF/A-2b & SHA-256 Integrity Seals (Seal SHA-256): Embeds ISO 19005-2 XMP metadata and /Type /RustPadSeal SHA-256 digests alongside freehand Bezier ink signatures, [APPROVED] vector stamps, merge/split, and lossless /FlateDecode recompression.

3. Enterprise DLP Governance, SHA-256 Audit Chain & Pluggable AI (Ctrl+J)

RustPad v2.0 Side-by-Side Split Workspace & Governance Inspector

  • Air-Gapped MDM policy.json Enforcement: Hard-locks AI sockets to 127.0.0.1 (Ollama, nour-code, LM Studio, llama.cpp) or allowlisted internal VPC gateways when air_gapped_mode is enabled.
  • Native Windows Schannel TLS (winhttp.dll): Uses OS-native WINHTTP_ACCESS_TYPE_AUTOMATIC_PROXY on Windows 10/11 for seamless corporate proxy and Enterprise Root CA compatibility.
  • Tamper-Evident SHA-256 Audit Trail: Click the status-bar Classification / DLP Pill at any time to verify the live cryptographic hash chain of document, redaction, print, and policy events.

Nine-Crate Zero-Dependency Workspace

Crate Responsibility External Deps
crates/rustpad_zip PKZIP reader/writer, bounded DEFLATE/Zlib, zip-bomb & ZipSlip guards, CRC32, Adler32, RFC 6234 SHA-256 0
crates/doc_model OpenXML AST, RevisionMeta Track Changes, word-level diff_redline, SecurityClassification, Undo/Redo 0
crates/docx_io Lossless ECMA-376 .docx reader/writer, MAX_XML_DEPTH guard, <w:ins>/<w:del>, word/comments.xml 0
crates/pdf_create ISO 32000 PDF 1.7 & PDF/A-2b vector generator, redline gutter bars, 12 Type1 fonts, XMP packets 0
crates/pdf_engine PDF 1.5+ /ObjStm parser, forensic sanitize_redactions, SHA-256 /RustPadSeal signer & verifier 0
crates/power_tools MDM EnterprisePolicy DLP, SHA-256 AuditTrail, WalJournal, CycloneDX 1.5 SBOM, WinHTTP/TCP AI 0
crates/rustpad_render TrueType (.ttf) SFNT parser, 4×4 supersampled glyph atlas, SDF 2D painter, PNG codec 0
crates/rustpad_window Native Win32 GDI & Linux X11 windowing, HiDPI scaling, clipboard, file dialogs & OS print spooler 0
app (rustpad) Unified native desktop studio + 13-command headless enterprise CLI 0

Windows Code Signing & Privacy Policy

Windows Authenticode code signing for rustpad-studio / rustpad is managed via SignPath.io (certificate by SignPath Foundation).

  • Committers, Reviewers & Approvers: Nour Yahyaoui (@Nour-yahyaoui)
  • Reproducible CI Pipeline: Release artifacts are built exclusively from public source commits via GitHub Actions (.github/workflows/release.yml) with 0 third-party crates.io runtime dependencies.
  • Privacy Policy: This program will not transfer any information to other networked systems unless specifically requested by the user or the person installing or operating it. RustPad operates 100% offline with zero telemetry, analytics, or background network calls (optional AI features connect only when explicitly invoked by the user and governed by local policy.json).

Author & Maintainer

Built and architected from scratch in pure Rust by Nour Yahyaoui (Tunis, Tunisia):

Licensed under the MIT License.

About

RustPad is a fast, standalone, offline-first native desktop document studio built 100% in Pure Rust — zero web server, zero HTML/CSS/JavaScript, zero WebView, and zero external runtime bloat.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages