Quick Start
Generate your first doc in under 5 minutes. No API key needed.
Prerequisites
- Node.js 18 or later
- npm 9 or later
- Git
node --version # v18.x.x or higher
npm --version # v9.x.x or higher
git --version
1. Clone and install
git clone https://github.com/AnkitParekh007/devdocs-forge-agent.git
cd devdocs-forge-agent
npm install
2. Configure environment
cp .env.example .env
The default configuration uses mock mode — no API key required.
DEVDOCS_PROVIDER=mock
3. Run the demo
npm run demo
This single command:
- Runs
doctorto validate your setup - Copies example transcripts to
input/ - Generates a Docusaurus page from the Angular Signals tutorial
- Runs
verifyto validate the output
4. View the output
Generated files appear in output/angular-signals-tutorial-{date}/.
output/angular-signals-tutorial-2026-05-13/
├── index.md
├── metadata.json
├── review-checklist.md
├── source-summary.md
└── docs/
└── angular-signals-tutorial.md
| File | Purpose |
|---|---|
index.md | Main generated documentation |
metadata.json | Provider, model, timestamp, and warnings |
review-checklist.md | Human review checklist before publishing |
source-summary.md | Source stats and attribution summary |
docs/angular-signals-tutorial.md | Docusaurus-ready page with frontmatter |
5. Generate from your own transcript
Drop your transcript into input/ and run:
npm run generate -- --file input/my-tutorial.md --type docusaurus
Choose a different output mode:
npm run generate -- --file input/my-tutorial.md --type blog
npm run generate -- --file input/my-tutorial.md --type faq
npm run generate -- --file input/my-tutorial.md --type readme
Test with a YouTube URL
DevDocs Forge Agent does not scrape YouTube transcripts or download videos. A video URL is used only for metadata, source attribution, and safety checks. You must provide your own transcript file.
1. Inspect a video URL
npm run devdocs-forge-agent -- inspect-url "https://www.youtube.com/watch?v=W6NZfCO5SIk"
2. Validate URL + transcript together
npm run devdocs-forge-agent -- validate-source \
--url "https://www.youtube.com/watch?v=W6NZfCO5SIk" \
--file input/my-transcript.md
3. Generate docs safely
npm run generate -- \
--url "https://www.youtube.com/watch?v=W6NZfCO5SIk" \
--file input/my-transcript.md \
--type docusaurus
This command intentionally fails because no transcript file is provided:
npm run generate -- --url "https://www.youtube.com/watch?v=W6NZfCO5SIk"
DevDocs Forge Agent requires --file input/my-transcript.md to avoid scraping
and hallucinated documentation.
Switch to a real AI provider
Edit .env:
DEVDOCS_PROVIDER=openai
OPENAI_API_KEY=sk-...
OPENAI_MODEL=gpt-4.1-mini
Then run:
npm run generate -- --file input/my-tutorial.md --type docusaurus
See Providers for Anthropic and Gemini setup.
Always test with mock mode before spending API credits. Mock mode generates the full file structure with placeholder content so you can verify the workflow works.
Next steps
- Installation — full setup options
- Modes — all 11 output modes explained
- CLI Commands — full command reference
- Providers — switch to a real AI provider