Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1.46 KB

architecture.md

File metadata and controls

27 lines (22 loc) · 1.46 KB

Architecture

Blunt Code is a loopback-only Go application with a React browser UI. The Go process owns workspace paths, direct child-process execution, SQLite persistence and report generation. The UI receives normalized API data; it never launches an analyzer or accesses arbitrary folders itself.

internal/analyzers is the boundary between scan orchestration and tool details. Each adapter detects applicability, checks readiness, constructs direct process arguments, runs locally, and normalizes its own structured output. internal/reports consumes only normalized findings, metrics, and run records; it renders the Markdown, standalone HTML, and SARIF exports from that one normalized model.

Normal scans make no network calls. Network use is reserved for explicitly verified tool installation or updates.

On Windows, a per-user-session named mutex derived from the local data directory prevents two backends from opening the same SQLite database. bluntcode doctor does not acquire that server lock, so it can inspect a running installation without starting tools or making network requests. bluntcode scan does take the lock and reuses the same scan pipeline and services as the server — minus the HTTP server and UI — streaming progress to stderr and exiting with a CI-friendly status code.

For a comprehensive deep dive into system architecture, subsystems, analyzers, and full feature capabilities, see ARCHITECTURE_AND_FEATURES.md.