Goal
To enable offline redaction via command line and prepare for future API capabilities, we need to decouple the core OCR/Regex logic from the browser DOM.
Requirements
- Extract core logic (Regex, Matching, Image Processing) into a platform-agnostic module (
@autoredact/core).
- Implement an Adapter pattern for Canvas operations (
BrowserCanvasAdapter vs NodeCanvasAdapter).
- Build a CLI tool (
src/cli.ts) that uses the core logic with node-canvas.
- Ensure 100% feature parity (flags, settings) between Web and CLI.
Tech Stack
- TypeScript
- Tesseract.js
- Node Canvas
Goal
To enable offline redaction via command line and prepare for future API capabilities, we need to decouple the core OCR/Regex logic from the browser DOM.
Requirements
@autoredact/core).BrowserCanvasAdaptervsNodeCanvasAdapter).src/cli.ts) that uses the core logic withnode-canvas.Tech Stack