Skip to content

Feature: v2.0 Core Refactor & CLI Support #20

@karant-dev

Description

@karant-dev

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

  1. Extract core logic (Regex, Matching, Image Processing) into a platform-agnostic module (@autoredact/core).
  2. Implement an Adapter pattern for Canvas operations (BrowserCanvasAdapter vs NodeCanvasAdapter).
  3. Build a CLI tool (src/cli.ts) that uses the core logic with node-canvas.
  4. Ensure 100% feature parity (flags, settings) between Web and CLI.

Tech Stack

  • TypeScript
  • Tesseract.js
  • Node Canvas

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions