cd /news/developer-tools/show-hn-archprint-infer-architecture… · home topics developer-tools article
[ARTICLE · art-122789] src=github.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Show HN: Archprint, infer architecture lint rules from your repo's import graph

Archprint, a new open-source tool announced on Hacker News, automatically infers architecture lint rules from a repository's import graph, generating enforcement rules for TypeScript projects without manual authoring. The tool, which completed scans across 92,861 public TypeScript repositories without crashes, outputs rules for ESLint, dependency-cruiser, and ts-arch, with mechanical rule families auto-generated and structural families held for human review.

read1 min views1 publishedSep 7, 2026

Every TypeScript architecture linter makes you write the rules by hand (dependency-cruiser, eslint-plugin-boundaries, Sheriff, ts-arch). Archprint does the opposite: it reads your repo's real import graph, finds the boundaries your code already respects, and turns the ones that pass a statistical confidence gate into ready-to-install lint rules, with the evidence attached (how many files conform, how many break it, how confident the inference is).

The framing that drove it: your CLAUDE.md / AGENTS.md is guidance; your lint rules are enforcement. Archprint generates the enforcement from patterns your codebase already demonstrates, so you adopt rules you can trust instead of hand-authoring them.

It's deliberately honest about what it will enforce unattended. The mechanical families (no import cycles, production must not import tests, no console in library code, no undeclared deps, import style, public-API barrels, DB/UI-in-a-server-entry) had zero false positives across an adversarial correctness audit, so those auto-generate. The structural families (layer/role boundaries, UI/data separation) infer a "layer" or "role" from paths, which can be wrong, so they're held for human review by default. One wrong enforced rule costs more than zero rules.

It emits into the tools you already use, ESLint (including a shareable one-file preset), dependency-cruiser, and ts-arch, so it complements your stack. Framework-aware across React, Angular, Vue, Svelte, Next, Nest, SvelteKit, Nuxt, and Remix.

Before posting I ran the full CLI workflow (scan, recommend, generate, wire, eject) across 92,861 real public TypeScript repositories: it completed on every one without a single crash, and the reversible install/uninstall round-trip held.

  npm install --save-dev archprint
  npx archprint scan .

Docs: Early (0.x). Feedback very welcome, especially on the rules it infers for your repo.

Comments URL: https://news.ycombinator.com/item?id=49604137

Points: 1

── more in #developer-tools 4 stories · sorted by recency
── more on @archprint 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-archprint-in…] indexed:0 read:1min 2026-09-07 ·