Scan your whole stack
Latest version: v0.20.1
Archprint was last scanned on 24 Nov 2026 at version 0.20.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.20.1 LATEST | 24 Nov 2026 | No rules fired |
| 0.20.0 | 20 Nov 2026 | No rules fired |
| 0.19.1 | 18 Nov 2026 | No rules fired |
| 0.19.0 | 18 Nov 2026 | Not shown |
| 0.18.3 | 14 Nov 2026 | Not shown |
Findings for v0.20.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.20.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Mine the architecture rules your repo already enforces, with the evidence attached.
Try it in your browser, nothing to install · Quick start · Use in CI · Use with AI agents · Docs
Every codebase has unwritten rules. "Pages never talk to the database directly." "Shared code never reaches back into the app." Nobody wrote them down, but the code follows them, until one day someone (or an AI assistant) breaks one without noticing.
Archprint reads a TypeScript project, finds the rules its code already follows, and shows you the proof for each one: how many files follow it, which files break it, and how sure it is. The rules you trust become automatic checks in the tools your team already runs, so a break is caught the next time lint runs (in your editor, a pre-commit hook or CI), not weeks later in review.
Think of it as a building inspector who surveys the house first and writes down how it was actually built, instead of handing you a rulebook from somewhere else.
init, connected with wire, and removed with eject.archprint check flags only the rule breaks a pull request introduces, inline on GitHub,
never the existing backlog.Your CLAUDE.md is guidance. Your lint rules are enforcement. Archprint closes the gap by generating the
enforcement from patterns your codebase already demonstrates, so you adopt rules you can trust instead of
authoring them by hand.
The recordings below use archprint-demo, a small Next.js API whose routes reach the database only through a service layer.
1. Find the rules your code already follows. Each rule comes with its evidence.
2. See why one rule is trusted. The confidence check, step by step.
3. Turn the rules on, watch a break get caught, and remove it all again. Archprint writes its files, adds one
line to your ESLint config, lint flags a route that imports the database directly, and eject restores your
project exactly.
Try it yourself, nothing to install: open the demo in StackBlitz. The scan runs as soon as it opens, and the demo's README walks through enforcing a rule in ESLint, breaking it, and asking for the rules over MCP.
AI coding agents can ask Archprint for a project's rules through MCP, an open standard that lets agents use outside tools. You ask in plain words; the agent calls Archprint on its own and answers with the evidence. Archprint only reports. Enforcement still runs in your linter.
Claude Code lists the rules with what is enforced and what is held for review, then adds a route and checks its own change with archprint before it reports back:
Cursor works the same way. In these recordings Cursor was set to Grok 4.7, not Claude. In the desktop app's chat, its agent called Archprint's scan tool on its own; this screenshot shows the tool result and the answer:
In the terminal (cursor-agent), it does the same: lists the rules, then adds the route and checks it with
archprint_check:
We asked Claude Code (Opus 5.5) "What architecture rules does this repo already follow?" on the demo app (70 files), five runs each way. Median [range]:
| Without Archprint | With Archprint | |
|---|---|---|
| Tokens read | 81k [58k to 96k] | 52k [52k to 52k] |
| Tokens written | 1.1k [1.1k to 1.4k] | 0.6k [0.6k to 0.6k] |
| Cost per question | $0.083 [$0.078 to $0.153] | $0.037 [$0.032 to $0.076] |
| Time | 17 s [15 to 19] | 10 s [9 to 31] |
| Tool calls | 5 [4 to 10] | 2 [2 to 2] |
What the answers showed:
lib/services/.lib/db.ts
reads process.env outside the config layer). No run without it noticed that.Read these numbers with care: about 50k of the tokens read in both columns are Claude Code's own system prompt, and this is one small repo; larger ones are not measured yet. Method, harness and every answer.
Setup for Claude Desktop, Claude Code, Cursor and other clients is in MCP setup.
Requires Node 20 or newer. Run these in a folder with a tsconfig.json, or with only named variants such as
tsconfig.web.json. In a monorepo, scan and recommend
also accept the root and cover every app, while init and generate work on one app at a time (for example
apps/web); at a root with several apps they stop, list the apps, and ask you to rerun with one.
# 1. See the rules your code already follows, with the evidence. Changes nothing.
npx archprint scan .
# 2. Ask why one rule is trusted (use a rule label from the scan)
npx archprint explain AP-001 .
# 3. Set up enforcement for the rules your code already follows cleanly,
# and record what to review or adopt next in .archprint/config.json
npx archprint init .
# 4. Connect the generated rules to your ESLint / dependency-cruiser config (one managed line)
npx archprint wire
# 5. Run your linter as usual. Your code passes today; a new import that breaks a rule fails.
npx eslint .
# To undo everything, exactly:
npx archprint eject
Your CLAUDE.md or AGENTS.md probably states rules already ("never call fetch in a component", "packages/ui
must not import the app"). Agents read them as guidance. archprint gap-report checks them against the code: your
agent maps each rule-like sentence to one of a few fixed templates, quoting it, and Archprint verifies the mapping
and measures it. Ask your agent "Which of the rules in our CLAUDE.md does the code actually follow?", or give
the CLI the mapping file your agent wrote:
{
"rules": [
{
"source": { "file": "CLAUDE.md", "quote": "Never call fetch directly in a component" },
"name": "no-fetch-in-components",
"template": "forbid-usage",
"files": ["src/components/**"],
"usage": ["fetch"]
}
]
}
Each sentence comes back as enforce now (nothing breaks it today), enforce with a baseline (broken today, with the
files and lines), already an archprint rule, check the mapping (the quote is not in the file, the mapping
matches no code, or it names something the code never uses as a global), or guidance only. Archprint never calls a model: the agent only maps prose to a template, and
every number in the report is computed from your code. Adopt the ones you approve with
archprint generate <app> --declare mapping.json (add --baseline for those the code breaks today): each becomes
an ESLint rule whose error is your team's sentence, with its line in CLAUDE.md, and archprint check enforces it in
pull requests. As the files change, archprint check marks each new sentence that reads like a rule and that no
adopted rule enforces yet, on its line in the pull request, so a rule written down later does not stay guidance
unnoticed. See the gap report for
the templates.
See it catch something. After step 4, break a rule on purpose: for example, make a route file import your database client directly, then run your linter. That is the whole loop the demo walks through in the browser.
To keep it in the project instead of using npx: npm install --save-dev archprint.
More commands for a deliberate, step-by-step setup:
# Inspect the evidence behind one rule
archprint explain AP-002 apps/web
# Write the auto-trusted (mechanical) rules to .archprint/, only for the linters your repo uses.
# Structural-inference rules are held for review; add --include-structural to emit them too.
archprint generate apps/web
# Confirm the generated rules pass on your repo before wiring (on its own, --check writes nothing)
archprint generate apps/web --check
# Generate a single rule by id after reviewing it (including a SUGGEST rule)
archprint generate apps/web --rule AP-001
# Adopt only the rules you choose, including reviewed layer boundaries
archprint generate apps/web --include-structural --rules AP-002,no-utils-to-app
# Recommend a rule set from the evidence and the detected stack (fresh repos too)
archprint recommend apps/web
# Check the rules your CLAUDE.md or AGENTS.md states against the code, from a mapping your agent wrote
archprint gap-report mapping.json .
# Enforce the ones you approve (with --baseline, also those the code breaks today)
archprint generate apps/web --declare mapping.json
# Upgrading from 0.5.x? Move an older archprint-rules/ setup to the .archprint layout
archprint migrate
Or build from source:
git clone https://github.com/Tommkruix/archprint
cd archprint
npm ci
npm run build
node dist/cli.js scan <path-to-your-app>
Archprint is deliberately cautious: one wrong rule hurts more than no rule. Every candidate rule passes two checks before it is turned on for you.
1. Is there enough evidence? Seeing 5 of 5 files follow a pattern is not proof; 40 of 40 is. Archprint scores each rule with a Wilson score lower bound, a standard statistical measure that combines how often the rule holds with how many files it was checked on. Each rule lands in one of three groups:
2. Could the rule itself be wrong? A rule can pass the numbers and still be wrong if Archprint guessed a
folder's purpose incorrectly. So only the mechanical families, which rest on unambiguous signals, are trusted
without review: forbidden imports (AP-001, AP-002), circular dependencies, test isolation, import style, console
isolation, and public-API barrels. An adversarial correctness audit (three rounds over four real repositories)
found zero false positives in these every round. All of them except circular dependencies are written as lint
rules; a cycle-free codebase with enough files for the gate adopts "no circular dependencies", which
archprint check enforces on each pull request (cycles need the whole import graph, so there is no lint rule for
them).
The structural families infer a "layer" or "role" from paths, which can be wrong (layer and role boundaries,
UI/data separation, entry purity, server/client, feature-slice and app isolation, env access, workspace package
API, stories isolation). Dependency hygiene, whose enforcement can over-flag, and dependency declaration are held
back too. All of these are held for your review by default and written as enforcement only with
--include-structural, regardless of their statistical score, until they earn the same clean record. Nothing
that could be wrong is enforced without you opting in.
Generated rules are green by construction: each one lets through the few known exception files it was inferred
from, so adopting it keeps your lint green while new violations are still caught, and a self-consistency check
refuses to write a rule whose evidence does not hold together. The exceptions are recorded with the rule in
.archprint/config.json and only shrink: when you fix one, the next generate enforces the rule there too and
says so, and a file that breaks an adopted rule later is never added to its exceptions. generate stops instead,
names the file, and writes nothing until you fix it or accept it with archprint allow and a reason. To run the generated rules against your code before
connecting them, use archprint generate --check.
Ships as: Auto = turned on as enforcement (mechanical families). Review = held for your review by
default; emit with --include-structural. Check = enforced by archprint check on each pull request. Report =
shown only, never enforced.
Archprint recognizes the stack (Next.js, Nest, SvelteKit, Nuxt, Remix) and classifies UI components across React
(.tsx), Angular (.component.ts, .directive.ts), and Vue and Svelte single-file components (it reads the
<script> block of .vue/.svelte files), so the component-aware rules apply regardless of framework.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.