Generate comprehensive development documentation for Node.js/TypeScript projects
npm install @philiprehberger/dev-docs-kit
Generate comprehensive development documentation for Node.js/TypeScript projects. Never start docs from scratch again.
npm install -g @philiprehberger/dev-docs-kit
Or use directly with npx:
npx @philiprehberger/dev-docs-kit init
Initialize documentation in your project:
cd my-project
npx @philiprehberger/dev-docs-kit init
Interactive prompts will guide you through:
import { generateDocs } from '@philiprehberger/dev-docs-kit';
generateDocs({
projectName: 'my-api',
stack: 'fastify-prisma',
outputDir: process.cwd(),
includePlans: true,
includeIssues: true,
});
Complete guides covering:
Core Standards
Development
Architecture
Operations
docs/
├── DOCS_GUIDE.md # How to maintain docs
├── guides/
│ ├── INDEX.md # Guide overview
│ ├── API_STANDARDS.md
│ ├── CONFIGURATION.md
│ ├── CONTRIBUTING.md
│ ├── DATABASE_PATTERNS.md
│ ├── DEPLOYMENT.md
│ ├── DOCUMENTATION_STANDARDS.md
│ ├── ERROR_HANDLING.md
│ ├── EVENTS_LISTENERS.md
│ ├── LOCAL_DEVELOPMENT.md
│ ├── LOGGING_STANDARDS.md
│ ├── MIDDLEWARE.md
│ ├── NAMING_CONVENTIONS.md
│ ├── SECURITY.md
│ ├── SERVICE_PATTERNS.md
│ ├── TESTING_STANDARDS.md
│ └── VALIDATION_GUIDE.md
├── plans/
│ ├── templates/ # Plan templates
│ ├── archive/ # Completed plans
│ ├── backlog/ # Future plans
│ └── reports/ # Completion reports
└── issues/
└── resolved/ # Fixed issues
dev-docs-kit init [options]
Options:
-n, --name <name> Project name
-s, --stack <stack> Tech stack (fastify-prisma)
-o, --output <dir> Output directory (default: current directory)
--no-plans Skip plan templates
--no-issues Skip issue tracking structure
dev-docs-kit list-stacks
More stacks coming soon:
Starting a new project means:
This package gives you:
After generation, customize the docs to your needs:
{{projectName}} and other variablesdocs/guides/These guides are opinionated but adaptable:
See the examples directory for:
generateDocs(options)Generate documentation in a directory.
interface GenerateOptions {
projectName: string; // Project name for variable replacement
stack: 'fastify-prisma'; // Tech stack
outputDir: string; // Where to create docs/ directory
includePlans?: boolean; // Include plan templates (default: true)
includeIssues?: boolean; // Include issue tracking (default: true)
}
getAvailableStacks()Get list of available tech stacks.
function getAvailableStacks(): Stack[]
replaceVariables(content, variables)Replace template variables in content.
function replaceVariables(
content: string,
variables: TemplateVariables
): string
Contributions welcome! To add a new stack:
src/templates/{stack-name}/ directoryStack type in src/types.tsgetAvailableStacks() in src/templates.tsIf you find this project useful: