ai-repograph
v1.1.1
Published
Interactive Node.js CLI that initializes a .structure/ architecture graph in a repository.
Downloads
12
Maintainers
Readme
ai-repograph
Interactive Node.js CLI that initializes a .structure/ directory in a repository:
.structure/structure.yaml(machine-readable graph).structure/structure.md(human-readable Mermaid diagram)
This is intended to keep architecture documentation and code changes in sync.
Usage
# from this repo
node init-structure.js
# if installed globally
# npm i -g ai-repograph
# init-structureFollow the prompts to select architecture/framework/language options and generate the files.
Safety
- If
.structure/structure.yamlor.structure/structure.mdalready exist, the CLI creates a timestamped backup (*.bak-<timestamp>) before writing. - If
AGENTS.mdalready exists, the CLI does not overwrite it. StylingandState Mgmtsupportnoneto skip adding a module template.
Templates
Starter templates live in templates/ (for example templates/react/ or templates/next.js/).
- Framework templates:
schema: "frontend-extended-v2" - Module templates:
schema: "styling-module-v1" | "state-module-v1" | "language-module-v1" - Add-ons:
schema: "addon-module-v1"(e.g.tanstack-query,react-router,storybook)
Publishing (Optional)
- Use
.npmrc.exampleas a safe starter and keep real tokens out of git (.npmrcis ignored by.gitignore).
License
MIT (see LICENSE).
