Skip to content
harshtitusPublic

About

Offline-first desktop app for document redaction & sanitisation. Redact PII, credentials, financial data across 12+ formats (PDF, DOCX, XLSX, images…) with reversible AES-256-GCM recovery. Zero network, zero telemetry.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redactify

GitHub Release Platform Offline License Rust Node.js

Offline-first desktop document redaction and sanitisation. Redactify redacts sensitive information from documents entirely offline: no network connection, cloud service or external API is used at any point.

Redactify implements selected security controls informed by the Australian Information Security Manual (ISM). It is not claimed to be fully secure or ISM-certified. See docs/SECURITY_MODEL.md.

Contents

Features

  • Document selection through the system file picker, with metadata inspection.
  • Rule matching: literal, phrase and regular-expression rules with case sensitivity, whole-word matching and Unicode support.
  • Built-in presets (Personally Identifiable Information, Financial, Credentials, Legal, Project) plus user-defined custom rules and presets.
  • Reference lists: import a TXT or CSV list of values (for example staff names) for the open document; the list is held in memory only.
  • Preset files are unsigned. You can mark a file as trusted; it is remembered by its SHA-256, which does not show who made it.
  • AI-assisted round trip: a reversible job with Labelled tags can restore approved values into an edited copy (rehydration) for DOCX, TXT, Markdown, CSV, JSON, HTML, PPTX, XLSX and PDF. Images support exact restore only. A returned PDF is read with the bundled PDFium library (pdfium/ beside the program); a restored value may be drawn in a different font from its line. Nothing is restored until you approve it.
  • PDF clean-up: attached files and XMP metadata are removed from the redacted PDF. Attached files are not inspected, and the output no longer carries them.
  • Auto-Detect: a review tab that proposes likely sensitive values (structured identifiers, value shapes and contextual cues) for you to select and turn into rules.
  • Replacement modes: Fixed ([RDT] by default, configurable), Labelled ([RDT-<LABEL>-<NNNN>], prefix configurable) and Blank (space fill, PDF default).
  • Reversible redaction: sanitised output plus an encrypted .rcpt recovery container (AES-256-GCM, Argon2id), with password-protected restoration and integrity verification. Available in every replacement mode, for every supported format.
  • Irreversible redaction: no recovery mapping is retained, with a clear warning that restoration is unavailable. An irreversible DOCX job also ships no restore bookkeeping inside the document.
  • Metadata and structure: document metadata, and PDF bookmark titles, are run through the same rules as the body text.
  • Output verification: the output is re-opened and the rules re-run to confirm no residual content remains.
  • Supported formats: TXT, CSV, JSON, Markdown, HTML, PDF, DOCX, XLSX, PPTX, PNG, JPEG, TIFF, BMP, GIF. See docs/FORMAT_SUPPORT.md for per-format notes.
  • OCR for images and scanned PDFs, run locally and on by default (see OCR).

Install

GitHub Release Windows 10/11 License

Download

Published releases appear on GitHub Releases. If none is listed, build the installers from source.

Verify

Check the SHA-256 checksums in SHA256SUMS.txt against the downloaded files:

Get-FileHash -Algorithm SHA256 Redactify_1.0.0_x64_en-US.msi
Get-FileHash -Algorithm SHA256 Redactify_1.0.0_x64-setup.exe

Compare with SHA256SUMS.txt from the release.

Choose an installer

MSI
Redactify_1.0.0_x64_en-US.msi
NSIS
Redactify_1.0.0_x64-setup.exe
System-wide install, requires administrator
Suitable for IT deployment via Group Policy.
Per-user install, no administrator required
Installs to `%LOCALAPPDATA%\Redactify`

SmartScreen warning

The installers are unsigned (owner decision D-5). Windows SmartScreen will show a warning:

"Windows protected your PC"

Click More info → Run anyway. This warning appears because the installer is not code-signed with an EV/OV certificate. The application itself is fully offline and makes no network connections.

System requirements

  • Windows 10/11 x64
  • Microsoft Edge WebView2 Runtime (the installers include the offline WebView2 installer, so installing needs no internet)

Settings and uninstall

  • Settings are stored in %APPDATA%\Redactify\settings.json and %APPDATA%\Redactify\custom-presets.json
  • Uninstall via Windows "Add or remove programs"
  • The settings folder is preserved on uninstall (expected)

Offline guarantee

Redactify makes zero outbound network connections at runtime. The application:

  • Has no HTTP client linked
  • Has no auto-updater
  • Has no telemetry or analytics
  • Runs entirely offline once installed

Quick start

Run in Dev Build Release Build Wrapper

Build and run

Requirements

Tool Version Needed for
Node.js and npm 18 or later Frontend build and the Tauri CLI
Rust (MSVC toolchain) 1.94 or later Backend and the Tauri shell (1.94 is rten 0.26's MSRV, the highest in the dependency graph)
Microsoft C++ Build Tools "Desktop development with C++" workload Linking the Rust backend on Windows
Microsoft Edge WebView2 Runtime current Rendering the window (present on current Windows 10/11)
Python 3.13 or later Optional: the pytest suite only. The suite uses Path.read_text(newline=...), which 3.13 introduced

The desktop application targets Windows 10/11. The general Tauri 2 prerequisites are listed at https://v2.tauri.app/start/prerequisites/.

Run in development

npm install        # once, and after dependency changes
npx tauri dev      # Vite dev server on localhost:1420 plus the app window

Build the release binary

npm install
npx tauri build --no-bundle

The executable is written to src-tauri\target\release\redactify.exe. Run it directly:

.\src-tauri\target\release\redactify.exe

--no-bundle builds the executable only and needs no packaging tools.

Build with the development wrapper

.\tools\build_app.ps1 -Quick

This builds the executable only (no installers, no tests) and writes a timestamped .build.log to the repository root. For a full build with installers and the complete test suite:

.\tools\build_app.ps1

The wrapper prints a phase-by-phase progress banner, runs cargo test and pytest, and emits a build timing summary at the end.

Build the Windows installers

npx tauri build

This also produces an MSI and an NSIS installer under src-tauri\target\release\bundle\. Tauri may download the WiX and NSIS packaging tools, and the WebView2 offline installer that it embeds, so that step can use the network at build time. Embedding WebView2 makes each installer about 300 MB (measured 2026-12-01). The application itself never does.

Notes

  • cargo build on its own is not a way to run the app. A plain dev binary bakes in the dev URL and shows a browser error page unless the Vite dev server is running. Use npx tauri dev, or the release binary above.
  • tools\build_app.ps1 and tools\launch_app.ps1 wrap the build and launch steps and write .build.log, .launch.log and .launch.err.log to the repository root. .\tools\build_app.ps1 also builds the installers. Both are development aids, not part of the application.
  • No environment variables are required to build or run Redactify.

Using the application

Everything below happens offline.

  1. Open a document. Open File picks a file through the system file picker. Redactify reads it and shows the format, the page or row count and any metadata it found. A format that cannot be inspected in full is reported in the verification report rather than silently skipped.

  2. Choose the rules. Tick a built-in preset (Personally Identifiable Information, Financial, Credentials, Legal, Project), or add your own under Rules. A rule is a literal string, a phrase or a regular expression, and each one carries its own case-sensitivity and whole-word setting. A custom rule may also carry a label (Tax File Number, Client name), which is what makes a labelled tag readable. The Auto-Detect tab proposes values you may want to redact; select the ones you want and they become rules. A literal rule that also matches inside other words (the in their, other) says so under the rule, with a count and examples, and offers Match whole words only.

  3. Preview the matches. The match list shows every value each enabled rule found, with the rule that found it. Nothing is written to the document until you convert, so this is the point to fix a rule that matches too much.

  4. Pick a replacement mode. In Replacement:

    Mode What is written Notes
    Fixed [RDT] The tag is editable. The default. A settings file from an earlier version that names [REDACTED] keeps it.
    Labelled [RDT-<LABEL>-0001] The prefix is editable (default RDT); a rule with no label falls back to a generic label.
    Blank A run of spaces Keeps the original length.

    Every mode works with every supported format, and with both redaction modes below.

  5. Choose irreversible or reversible. Irreversible keeps no way back and says so. Reversible writes an encrypted .rcpt recovery container beside the output and asks for a recovery password of at least 12 characters. That container is the only way back to the original values, so it is worth a passphrase.

  6. Convert. Press Convert File and choose the output path. A reversible job writes two files: the redacted document, and <output>.rcpt beside it. Keep both.

  7. Read the verification report. The output is re-opened and the rules are re-run against it. The report lists what was replaced, whether any residual match remains, and any warnings: geometry the redaction had to adjust, a font that had to be substituted, or content the format could not inspect. Names the file format itself requires (part names, relationship types, theme and built-in style names) are not counted as residual matches (D-77).

  8. Restore, if you need the original. Document Restoration takes the redacted document, its .rcpt container, a Restore to file and the password, and warns as soon as all of them are given if the document was edited after redaction. One press of Restore Document restores an unedited document exactly, or rehydrates an edited one (for example, one an AI tool changed) when the container was made for it; placeholders that were altered or are ambiguous open the AI-assisted window for your decision. For DOCX, PPTX and XLSX, images that were pixel-redacted and document properties that were cleared are put back too, unless the document changed them since (D-74, D-75); the restore message says what was and was not restored.

Reversible redaction works in every replacement mode, including the two tag modes: the tag written into the document is recorded in the container, so the original value goes back in its place on restore. The labelled tag uses the RDT prefix by default (owner decision D-K), so a labelled tag looks like [RDT-ENTITY-0001].

Known limitations

  • Redaction finds what the rules match. Verification confirms no rule still matches the output. It cannot find sensitive data no rule describes.
  • PDF layout. When a tag is wider than the value it replaces, the tag is scaled down and the line re-flowed so text does not overprint. Long tags on short values can come out small. The verification report lists adjusted lines.
  • PDF fonts. If an embedded font subset cannot draw a tag, the tag is drawn in a look-alike font that is not embedded. The report names each substitution.
  • PDF metadata. Matched values in document information and bookmark titles are redacted. Other document-information fields (for example author, creator and dates) are kept.
  • DOCX metadata. Title, subject, author, keywords, description and last-modified-by are blanked. Revision number, timestamps and the page and word counts in the extended properties are kept.
  • Platform. The desktop application is built and tested on Windows only.

Development

Frontend

npm install                 install frontend dependencies
npm run dev                 Vite dev server only
npm run build               typecheck + production frontend build (dist/)
npm run typecheck           TypeScript check
npm test                    Vitest unit tests
npm run lint                ESLint
npm run format:check        Prettier check
npm run format              Prettier write

Backend

Run from the repository root:

cargo test --manifest-path src-tauri/Cargo.toml                       Rust unit + integration tests
cargo test --manifest-path src-tauri/Cargo.toml --no-fail-fast        run every test target even if one fails
cargo clippy --manifest-path src-tauri/Cargo.toml                     linting
cargo fmt --manifest-path src-tauri/Cargo.toml -- --check             formatting check
npm run e2e:ui                                                        UI end-to-end tests (Playwright, fake backend; needs its Chromium browser)

One-command verification

.\tools\verify_all.ps1                    # Full gate: syntax, cargo check, tsc, vitest, cargo test, pytest, quality gates, audit coverage, protected-file check
.\tools\verify_all.ps1 -Quick             # syntax, cargo check, tsc, vitest, quality gates, audit coverage only (no test suites)
.\tools\verify_all.ps1 -SkipQualityGates  # syntax, cargo check, tsc, vitest, cargo test, pytest, protected-file check (skip quality gates)

The script is read-only and prints one line per check. The protected-file check needs the repository to be a git repository and is skipped otherwise.

Quality gates verification

# Full TRD §20 quality gates (7 gates, 138 checks)
.\.venv\Scripts\python.exe .\tools\verify_quality_gates.py

# Language-specific quality gate checkers (Python, TypeScript)
.\.venv\Scripts\python.exe .\tools\verify_quality_gates.py --language-checkers

# Language-specific quality gate checkers (Python, TypeScript, Rust)
.\.venv\Scripts\python.exe .\tools\verify_quality_gates.py --language-checkers --skip-rust

# With verbose output
.\.venv\Scripts\python.exe .\tools\verify_quality_gates.py --language-checkers --verbose

# With JSON output for CI/CD integration
.\.venv\Scripts\python.exe .\tools\verify_quality_gates.py --language-checkers --json

The quality gates verify all 7 TRD §20 requirements:

  1. Traceability - Every test references a requirement ID
  2. Technique tags - Tests are tagged with technique
  3. Oracle independence - Tests don't use the system under test to verify itself
  4. Meaningful failure - Tests fail when the feature is broken
  5. Determinism - Tests produce consistent results
  6. Synthetic data - Tests use synthetic/generated data, not production data
  7. No weakening - No #[ignore], pytest.mark.skip, xfail, or weakening assertions

Audit test coverage

.\.venv\Scripts\python.exe .\tools\audit_test_coverage.py

Checks that every row in the TRD §62 testing table has a corresponding test that fails without the feature. Currently 47/50 rows covered (3 marked MISSING).

OCR

OCR is behind the ocr Cargo feature, which is on by default. It uses the pure-Rust ocrs engine with rten, and the two ONNX models in src-tauri/models/ are bundled with the app. No system OCR install is needed and no network service is called. Recognition is Latin-script only.

To build without OCR:

cargo build --manifest-path src-tauri/Cargo.toml --no-default-features

Without OCR, images still open, but the app warns that text inside them could not be inspected, and scanned PDF pages are reported as needing OCR.

Python reference engine and test suite

The redactify/ Python package is an independent second engine over the same ruleset, used by the pytest suite to validate behaviour without testing the implementation with the implementation. Set up its virtual environment once:

python -m venv .venv
.\.venv\Scripts\activate          # Linux/macOS: source .venv/bin/activate
pip install -r requirements.txt

Then run the suite. It defaults to driving a CLI binary (REDACTIFY_BIN); to test against the Python engine directly, select the library backend:

$env:REDACTIFY_ENGINE = "library"; $env:REDACTIFY_MODULE = "redactify"
.\.venv\Scripts\python.exe -m pytest -q

Without either a binary or the library backend, most tests error with EngineUnavailable. The suite's tests/source_review/ tests also scan the Rust, TypeScript and config sources for forbidden patterns.

Python engine verification

.\.venv\Scripts\python.exe -m pytest -q

The Python tests cover replacement, prefix, numbering, case comparison, label validation, preset rules, serialisation, recovery and verification.

Other scripts

scripts/verify-offline.ps1            network-activity review
scripts/verify-release.ps1            full release verification (builds, tests, lint, format)
scripts/generate-test-documents.ps1   regenerate the deterministic test fixtures

The tools/ directory also holds PDF and DOCX output probes (for example tools/check_docx_layout.py). src-tauri/examples/regenerate_test1.rs and regenerate_test1_docx.rs rebuild the local sample outputs; set REDACTIFY_OUT to write somewhere other than the repository root.

Project layout

src/            React + TypeScript frontend (Vite, Zustand, Vitest)
src-tauri/      Rust backend and Tauri 2 shell: engine, format adapters,
                crypto, recovery, verification, IPC commands
src-tauri/models/  bundled OCR models
redactify/      Python reference engine, used only by the pytest suite
tests/          pytest suite and generated fixtures
presets/        importable JSON exports of the built-in presets
scripts/        release, offline and fixture verification scripts (PowerShell)
tools/          build/launch wrappers, verification gate, fixture generator
                and PDF/DOCX output probes
docs/           product, technical and security documentation
.github/        agent definitions and hooks used for AI-assisted development

Key development scripts

Script Purpose
.\tools\build_app.ps1 Build executable (+ installers with default), run tests, timing summary
.\tools\build_app.ps1 -Quick Build executable only (no installers, no tests)
.\tools\launch_app.ps1 Launch built binary, verify window renders
.\tools\close_app.ps1 Close every running Redactify window and confirm it has gone (exit 1 if one is left)
.\tools\verify_all.ps1 Full gate: syntax, cargo check, tsc, vitest, cargo test, pytest, quality gates, audit coverage, protected diff
.\tools\verify_all.ps1 -Quick Syntax, cargo check, tsc, vitest, quality gates, audit coverage only (no test suites)
.\tools\verify_all.ps1 -SkipQualityGates Syntax, cargo check, tsc, vitest, cargo test, pytest, protected diff (skip quality gates)
.\.venv\Scripts\python.exe .\tools\verify_quality_gates.py Full TRD §20 quality gates (7 gates, 138 checks)
.\.venv\Scripts\python.exe .\tools\verify_quality_gates.py --language-checkers Language-specific checkers (Python, TypeScript)
.\.venv\Scripts\python.exe .\tools\verify_quality_gates.py --language-checkers --skip-rust Language-specific checkers (Python, TypeScript, Rust)
.\.venv\Scripts\python.exe .\tools\audit_test_coverage.py Audit TRD §62 testing table coverage

Configuration

Settings are stored in the operating system's application configuration directory (Redactify/ under the platform config dir): settings.json and custom-presets.json. Recovery files are never automatically stored inside the configuration directory.

Built-in presets are compiled into the app (src-tauri/src/presets.rs). The presets/*.json files are importable exports of the same definitions, regenerated with cargo run --manifest-path src-tauri/Cargo.toml --example export_presets and checked for drift by src-tauri/tests/presets_data.rs.

Documentation

Document Purpose
docs/REDACTIFY_PRD_1_2.md Product requirements
docs/REDACTIFY_TRD_1_4.md Technical architecture and requirements
docs/ARCHITECTURE.md Architecture overview
docs/REDACTIFY_UI_UX_IMPLEMENTATION_SPEC.md Interface and interaction requirements
docs/REDACTIFY_TEST_SUITE_GENERATION_SPEC_1_2.md Test suite and fixture generation
docs/IMPLEMENTATION_DECISIONS.md Recorded implementation decisions
docs/IPC_SPEC.md Tauri command contract
docs/RECOVERY_FORMAT.md .rcpt container format
docs/FORMAT_SUPPORT.md Per-format support and limitations
docs/SECURITY_MODEL.md Implemented security controls
docs/DEPENDENCIES.md Dependency audit
docs/DEPLOYMENT.md Deployment notes
docs/REQUIREMENT_TRACEABILITY.md Requirement, implementation and test mapping
docs/RELEASE_CHECKLIST.md Release checklist
docs/STATUS.md Implementation status
docs/FINAL_IMPLEMENTATION_REPORT.md Final implementation report

AI assistance

AI tools were used to aid in the construction of Redactify: NVIDIA NIM, ChatGPT (OpenAI) and Claude (Anthropic).

This is about how the app was built, not how it runs. Redactify itself makes no network connection and calls no AI service, these included: every redaction, verification and restoration runs on your machine (tests/security/test_no_network.py checks this). The AI-assisted workflow in the app only prepares a document for you to take to an external tool of your choice, and restores it when you bring it back.

Contributing

AGENTS.md sets the rules for AI coding agents working in this repository, including the files they must not edit and the requirement that a claim is only made about something that was run. Human contributors should follow the same rules: do not weaken or skip a test to make it pass, and run .\tools\verify_all.ps1 before proposing a change.

License

MIT. See LICENSE.

About

Offline-first desktop app for document redaction & sanitisation. Redact PII, credentials, financial data across 12+ formats (PDF, DOCX, XLSX, images…) with reversible AES-256-GCM recovery. Zero network, zero telemetry.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages