Deutsch | English
Note
AI / LLM Integration Index: Machine-readable repository context, API boundaries, and architecture contracts are indexed in llms.txt.
DokuZen is a cross-platform, local-first desktop document management and processing suite built with Python and PySide6, combining 22 specialized text, PDF, OCR, and file utilities into a single unified workspace.
- πΈ Visual Showcase Gallery
- ποΈ System Architecture
- π Document & PDF Processing Lifecycle
- β¨ Core Features & Utilities
- π Installation & Quick Start
- π₯οΈ GUI-CLI Direct Entry Points
- π Ecosystem & Sibling Tools
- π Privacy & Security Invariants
- π§ͺ Testing & Verification
- β¨οΈ Keyboard Shortcuts
- πͺ Windows Store & Packaging
- π§ Portable Linux Bundle
- π License & Third-Party Dependencies
flowchart TD
subgraph UI ["PySide6 Desktop User Interface"]
LP["Library Panel<br/>(Thematic Taxonomy & State)"]
DP["Document List Panel<br/>(Metadata, Search & Sorting)"]
PP["Preview Panel<br/>(Fitz / WebView / Syntax Engine)"]
DLG["Specialized Dialogs<br/>(OCR, Redaction, Merge, Converter, Settings)"]
end
subgraph Core ["Core Processing Engines"]
LIB["Library Manager<br/>(Persistence, Tag Index & State)"]
PDF["PDF Workshop<br/>(Merge, Split, Crop, Rotate, Overlay)"]
OCR["OCR Engine<br/>(Tesseract Subprocess & Text Layer)"]
CVT["Format Converter<br/>(DOCX β PDF β MD β TXT, Image Alpha)"]
SEC["Security & Unlock<br/>(Pikepdf Session-Key Isolation)"]
RED["Redaction Engine<br/>(Destructive Black-Fill Sanitization)"]
end
subgraph Storage ["Local Storage & Packaging Subsystem"]
STATE["dokuzen_state.json<br/>(Local-First User State)"]
FS["Local File System Boundary<br/>(Zero-Egress / Sandboxed Paths)"]
MSIX["MSIX Packaging Bridge<br/>(Windows Store Manifest & Preflight)"]
end
LP --> LIB
DP --> LIB
PP --> PDF
PP --> CVT
DLG --> OCR
DLG --> RED
DLG --> SEC
DLG --> PDF
PDF --> FS
CVT --> FS
LIB --> STATE
MSIX -.-> UI
sequenceDiagram
autonumber
actor User as Desktop User
participant GUI as PySide6 Main Window
participant Router as Format & Task Router
participant Engine as Core Engine (PDF/OCR/Converter)
participant FS as Local File System Boundary
User->>GUI: Ingest Document (Drag & Drop / Ctrl+I / CLI Flag)
GUI->>Router: Detect MIME Type & Header Signature
alt PDF Stream / Document
Router->>Engine: Parse via PyMuPDF / pikepdf with Thread Guard
Engine-->>GUI: Render Offscreen Page Pixmaps & Extract Text Layers
GUI-->>User: Display High-Fidelity Preview & Page Navigation
else Image / OCR Scan
Router->>Engine: Dispatch to Tesseract OCR Subprocess
Engine-->>GUI: Bounding-Box Layout & Textual Layer Generated
else Format Conversion
Router->>Engine: Convert (DOCX / Markdown / TXT / Alpha Image)
Engine-->>GUI: Transformed Output Ready for Inspection
end
opt Redaction / Signature / Split & Merge
User->>GUI: Apply PII Redaction Pattern / Signature Stamp
GUI->>Engine: Destructive Vector & Pixel Overlay
end
User->>GUI: Trigger Save / Export
GUI->>FS: Atomic Write to Local Disk (Zero Egress, Closed File Descriptors)
FS-->>User: File Saved Successfully with 100% Offline Guarantee
- Thematic Organisation: Categorize documents by topics and tags with persistent category selection across restarts.
- Read / Unread State: Track review progress across large document collections.
- Fast Search & Filtering: Instant filter by name, content, and metadata with
Ctrl+Fglobal shortcut. - Drag & Drop Import: Direct file ingestion into active categories with automatic type recognition.
- Merge & Split: Combine multiple PDF streams or split at specific page boundaries and ranges.
- Tesseract OCR Integration: Generate searchable PDFs and extract textual layers with bounding-box precision.
- Sanitization & Redaction: Regex- and span-based PII redaction with irreversible black-fill sanitization.
- Signature & Stamp Overlay: Stamp transparent PNG signatures or metadata badges onto target pages.
- Password Removal: Decrypt password-protected files via
pikepdfwith session key guards.
- Word β PDF β Markdown β Plain Text: Seamless bidirectional document format transitions.
- Image Conversion: PNG, JPG, ICO, WebP with full RGBA transparency preservation on conversion to PDF.
- Encoding Repair: Automatic Mojibake and UTF-8/Latin-1 encoding restoration.
- Python to EXE Compiler: PyInstaller bundling UI with icon embedding and dependency detection.
- License Generator: Standardized open-source license creation.
- Code Splitter: Clean split of multi-class Python source files into modular units.
- Privacy Guard: Visual privacy monitor alerting on sensitive data exposure.
- Sync Engine: Local-first synchronization helper.
- Media Brain: Integrated asset extraction and indexing.
- Windows Store Bridge: MSIX Packaging Manifest & automated preflight readiness checks.
- Python 3.10+
- PySide6 >= 6.5.0
- Tesseract OCR (optional, for OCR capabilities)
- Dependencies listed in
requirements.txt/pyproject.toml
# Clone the repository
git clone https://github.com/doc-bricks/DokuZen.git
cd DokuZen
# Create virtual environment
python -m venv venv
venv\Scripts\activate # Windows
source venv/bin/activate # Linux/macOS
# Install dependencies
pip install -r requirements.txt
# Start DokuZen
python main.pyNote: On Windows, you can also launch directly via start.bat.
DokuZen provides direct CLI flags that launch the desktop application and navigate immediately into specific workflows:
# Import documents into library
python main.py --import document.pdf notes.md
# Open document in preview panel
python main.py --open manual.pdf
# Launch OCR Dialog with preloaded file
python main.py --ocr scan.pdf
# Launch Redaction Dialog
python main.py --redact contract.pdf
# Launch PDF Merger Dialog
python main.py --merge part1.pdf part2.pdfNote
Automation Boundary: The evidenced use case is a local desktop document and PDF workstation. The CLI entry points above are GUI startup shortcuts. Headless batch CLI and REST API endpoints remain intentionally unasserted until explicit remote use cases and approved security models are established.
DokuZen is maintained under the doc-bricks ecosystem, part of the open-bricks family of local-first tools:
| Repository | Purpose | Status |
|---|---|---|
| doc-bricks/DokuZen | All-in-One Document & PDF Management Suite | Active / 1.0.0 |
| doc-bricks/CleanMarkdown | Distraction-Free Markdown Editor & PDF Exporter | Active / 1.0.0 |
| doc-bricks/FormularErstellen | Interactive PDF & AcroForm Form Designer | Active / 1.5.0 |
| doc-bricks/UniversalDocsGrabber | Automated IMAP Document Ingestion & PWA Hub | Active / 1.1.4 |
| doc-bricks/PDFtoPDFocr | OCR Conversion & Searchable PDF Engine | Active / 1.1.3 |
| doc-bricks/DokuReader | Lightweight Multi-Format Document Reader | Active / 1.0.0 |
| doc-bricks/MediaBrain | Multi-format Media & Metadata Extraction | Active / 0.1.0 |
| doc-bricks/TextBrain | AI-assisted Text Analysis & Extraction | Active / 0.1.0 |
| file-bricks/WinStorePackager | MSIX Packaging & Windows Store Tooling | Active / 3.1.0 |
| file-bricks/ProSync | Local Backup & WAL-Protected Sync | Active / 3.2.1 |
| file-bricks/ExplorerPro | Multi-Tab Local-First File Manager | Active / 1.0.3 |
| dev-bricks/DevCenter | Developer Productivity Hub & Dashboard | Active / 1.0.0 |
| open-bricks/.github | Umbrella Organisation & Open Standards | Active |
DokuZen is committed to uncompromising privacy and security:
- 100% Local-First & Zero-Egress: All document operations, conversions, and OCR recognitions occur exclusively on your local CPU/GPU. No document content or telemetry is ever sent over the network.
- Unprivileged User Mode: DokuZen runs without administrative or root privileges (Non-Elevation).
- Destructive Redaction: Redactions are applied directly to vector streams and image rasters, preventing reverse extraction of sanitized text.
- Deterministic File Cleanup: All intermediate temporary files are cleaned up atomically upon operation completion.
Detailed security and disclosure policies are available in SECURITY.md.
DokuZen maintains an automated test suite covering unit operations, GUI dialog smoke tests, PDF encryption lifecycles, and metadata parity:
# Run complete test suite
python -m pytest
# Run offscreen platform smoke tests
python tests/test_source_platform_smoke.py
# Run Windows Store readiness gatekeeper
python tools/check_store_readiness.py
# Validate the portable Linux bundle contract (host-independent)
python tools/build_linux_bundle.py --check
# Run linting gatekeeper
python -m ruff check .| Shortcut | Action |
|---|---|
Ctrl+I |
Import Files into Active Category |
Ctrl+N |
Create New Theme / Category |
Ctrl+F |
Focus Search Filter |
Ctrl+P |
Toggle Preview Panel |
Ctrl+, |
Open Preferences Dialog |
F5 |
Refresh Document Index |
DokuZen includes complete Microsoft Windows Store (MSIX) packaging infrastructure:
- Manifest:
store_package/DokuZen/AppxManifest.xml(Geiger.DokuZen,runFullTrust) - Assets: 1080p store screenshots in
screenshots/store/and high-DPI icon assets (44x44, 50x50, 150x150, 310x150, 310x310) - Validation: Automated preflight validation script via
tools/check_store_readiness.py
DokuZen has a reproducible PyInstaller-onedir packaging path for Linux. A
dedicated workflow builds DokuZen-1.0.0-linux-<architecture>.tar.gz with the
application, assets, six-language catalog, configuration, Freedesktop desktop
entry, AppStream metadata, license, and bilingual documentation.
# Metadata/contract check on any host
python tools/build_linux_bundle.py --check
# Actual bundle build on Linux
python tools/build_linux_bundle.pyTesseract remains an optional external dependency; DokuZen starts without it,
while OCR features remain unavailable until Tesseract is installed. See
packaging/linux/README.md for extraction and
startup instructions.
DokuZen is licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later).
Direct third-party libraries and runtime copyleft boundaries are documented in THIRD_PARTY_LICENSES.txt.







