Docs/Smart Tax Assistance
FOUGHT DOCUMENTATION

Smart Tax Assistance

Tauri v2 desktop application with Rust backend — PDF extraction, OCR, bank processing, and multi-device sync.

§ 01

Smart Tax Assistance — Architecture

Tauri v2 Desktop Application

v0.13.0

Smart Tax Assistance is a Tauri v2 desktop application with a Rust backend and vanilla JS frontend. It provides PDF extraction, bank statement processing, e-Faktur parsing, and OCR capabilities.

System Architecture

┌────────────────────────────────────────────────┐
│           Tauri v2 Desktop Application          │
│                                                 │
│  ┌──────────────┐    IPC    ┌────────────────┐ │
│  │  Frontend     │◄────────►│  Rust Backend  │ │
│  │  Vanilla JS   │  invoke  │  27 Commands    │ │
│  │  Vite 6       │          │  9 Modules      │ │
│  │  fectral CSS  │          │  5 Extractors   │ │
│  └──────┬───────┘          └───────┬────────┘ │
│         │                          │           │
│  ┌──────▼──────────────────────────▼────────┐  │
│  │  External Binaries                       │  │
│  │  Tesseract OCR · pdftoppm                │  │
│  │  PP-OCRv5 (MNN models)                   │  │
│  └──────────────────────────────────────────┘  │
└────────────────────────────────────────────────┘

Frontend Boot Chain

main.js (entry)
  ├─ feature-module-loader.js
  │    ├─ Phase 1: Critical (sequential)
  │    │    ├─ welcome-screen.js
  │    │    └─ app-shell.js
  │    └─ Phase 2: Non-critical (parallel)
  │         ├─ extractor, renamer, settings
  │         ├─ scans-guide, dev-pages
  │         └─ downloader, rekening-side-panel
  └─ frontend-boot-orchestrator.js
       ├─ auto-discover server
       ├─ startup validation
       └─ dashboard init
§ 02

Desktop Application

Feature Modules

ModuleLinesPurpose
app-shell.js345Main orchestrator
navigation-controller.js421SPA routing (12 pages)
feature-module-loader.js2-phase loading
module-bridge.jsCross-module registry
css-lazy-loader.jsOn-demand CSS loading

11 Main Pages

DashboardAnggotaPengumumanAgendaExtractorExcelScanRenamerDownloaderSettingsFood

Rust Backend Modules

ModulePurposeStatus
exports/Excel combine & saveActive
auth/Google OAuth2 PKCE + sessionsActive
health/Tesseract/Poppler health checksActive
monetization/Subscription + CORS proxyActive
pdf_renamer/Batch PDF rename with OCRActive
processing/Main PDF processing entryActive
security/HPKE key managementActive
settings/AES-256-GCM encrypted configActive
ocr_overlay/Real-time OCR overlayInactive
§ 03

STA Design System

fectral Theme — Brand DNA

The STA design system is built from analysis of 73 DESIGN.md files. Four brands form the DNA:

BrandWhat We Take
LinearSurface ladder, hairline borders, no-drop-shadow elevation
VoltAgentSingle green accent, accent-dim/soft/bright tier
WarpWarm dark surfaces, terminal-inspired mono typography
RaycastCommand-palette quality, eyebrow labels, micro-interactions

Surface Ladder (6 Steps)

TokenDark ModePurpose
surface-0#0e0e14Canvas / main background
surface-1#141419Card background
surface-2#1b1b22Card hover background
surface-3#232330Sidebar, input background
surface-4#2c2c3aElevated surface
surface-5#383848Highest surface
FOUGHT — DARK PRECISION V6.0
SYSTEMS ONLINE