@kekkai/blueprint
v1.8.0
Published
Architecture as Code — one Blueprint compiles into docs, agent contracts, lint, and CI for Vue & React projects.
Maintainers
Readme
@kekkai/blueprint
Architecture as Code — one Blueprint compiles into ESLint rules, a human handbook, an AI agent contract, and a CI gate.
Declare your frontend architecture once — layers, module shape, ownership, principles — and compile it into everything that keeps a codebase (and its coding agents) honest:
- Enforce — an ESLint flat config, embedded plugin included
- Explain — a human handbook (markdown + mermaid)
- Collaborate — agent contracts (
CLAUDE.md,AGENTS.md, Cursor, Windsurf…) - Gate — a GitHub Actions workflow: lint + a read-only architecture report
Quick start
npx @kekkai/blueprint init # greenfield: scaffold it all
npx @kekkai/blueprint inspect # brownfield: architecture report + baseline ratchet30 seconds on a fresh Vite app — one command turns this:
my-app/ my-app/
├─ package.json ──▶ ├─ blueprint.config.mjs ← single source of truth
└─ src/ ├─ eslint.config.mjs ← rules + parsers, generated
├─ CLAUDE.md · AGENTS.md ← agent operating contract
├─ docs/architecture-handbook.md ← the "why", for humans
├─ .github/workflows/blueprint-ci.yml ← lint + inspect as the gate
└─ src/pages|containers|components|hooks|contexts|services/Framework auto-detected, existing configs never overwritten, re-runs idempotent.
🔒 Security & trust
- Never launches an agent by default — it writes plain-markdown contracts and
playbooks for coding agents and hands off; there is no credential or authorization
surface.
init --agent claude|codexis the one explicit opt-in: it spawns exactly the printed command, foreground and interactive, under your own agent CLI's permissions — blueprint itself still holds no credentials and makes no network calls. - No network access, zero runtime dependencies — local file operations only.
- Child processes are declared and skippable — the dependency install during
init(printed in the plan;--no-installskips it), and the opt-in agent launch above. Nothing else is executed. - Writes are declared and bounded —
--dry-runprints every effect;inspect/depsare read-only; your files are only edited when losslessly rewritable, never overwritten. One scoped exception: on a fresh scaffold, init also wires the import alias into the template's vite/tsconfig (precondition-guarded, dry-run visible, falls back to instructions); existing projects are never touched. - Provenance-signed releases — published from GitHub Actions with npm provenance.
Details: Security & Trust
📖 Documentation
Full guide, API reference, and the engineering philosophy behind it (English / 繁體中文):
→ https://taco3064.github.io/blueprint/
License
MIT © taco3064
