Interactive Project Documentation Generator for AI-Native Development
Project description
๐ PAPER-CODE
The AI-Native Documentation Generator
Stop writing boilerplate docs. Automatically generate AI Context, Architecture Guides, and Governance Files optimized for Cursor, Windsurf, and Copilot.
โจ Features โข ๐ Installation โข ๐ Usage โข ๐บ๏ธ Roadmap
๐ฌ Demo
Watch PAPER-CODE generate AI-ready documentation in seconds
๐ง Why PAPER-CODE?
In the era of AI coding, Context is King. If you ask an AI to "build a feature" without context, it generates generic, legacy code.
PAPER-CODE solves this by bootstrapping a robust documentation structure that serves two masters:
- For AI Agents: Generates
.cursorrules,AI_RULES.md, and strict coding standards to keep your AI (Cursor/Copilot) from hallucinating or using deprecated syntax. - For Humans: Creates professional
ARCHITECTURE.md,CONTRIBUTING.md, and tech stack guides so your team stays on the same page.
โจ Features
- ๐ค AI-First Context: Auto-generates
.cursorrulesand prompt instructions tailored to your specific stack (e.g., "Use Next.js App Router, not Pages"). - ๐ฏ Multi-Stack Support: Specialized templates for Frontend, Backend, Mobile, Game Dev, and ML.
- ๐ Library Awareness: Smart docs for 30+ libraries (Tailwind, Prisma, Redux, Zod...).
- ๐ก๏ธ Governance Ready: Generates
LICENSE,CHANGELOG.md,SECURITY.md, and GitHub Issue Templates. - ๐ป Interactive & Batch: Use the beautiful CLI wizard or a JSON config file for automation.
๐ Installation
Requires Python 3.10+.
1. Via PyPI (Recommended)
You can install PAPER-CODE directly from PyPI:
pip install paper-code
2. From Source (For Development)
If you want to contribute or use the latest development version:
# Clone the repository
git clone https://github.com/minhgiau998/paper-code.git
cd paper-code
# Install as an editable tool
pip install -e .
๐ Usage
1. Interactive Mode (Recommended)
Just run the command and follow the wizard.
paper-code
Terminal Output Preview:
๐ Initializing documentation for: My Awesome Project
[?] Select Project Type: Frontend
[?] Select Frontend Stack: Next.js
[?] Select Modules/Libraries: [x] TailwindCSS, [x] Prisma, [x] NextAuth.js, [x] Zod
โจ Done! Generated AI-ready docs in ./docs
2. Quick Start (Templates)
Skip the questions if you know what you want.
paper-code --template "Next.js" --output ./my-app
paper-code --template "FastAPI" --output ./my-api
3. Batch Mode (For CI/CD)
Generate docs based on a configuration file.
paper-code --config paper.config.json --batch
๐งฉ Supported Stacks
PAPER-CODE isn't just generic markdown. It contains deep, opinionated knowledge for:
| Category | Supported Stacks |
|---|---|
| Frontend | React, Vue, Next.js, Nuxt.js, Angular, SvelteKit |
| Backend | Node.js (Express/NestJS/Fastify), FastAPI, Django, Go (Gin) |
| Mobile | React Native (Expo/CLI), Flutter |
| Desktop | Electron, Tauri v2 |
| Data & ML | PyTorch, TensorFlow, Scikit-learn |
| Game Dev | Godot 4, Unity |
| CLI | Node.js (Commander), Python (Click), Go (Cobra), Rust (Clap) |
| Libraries | TypeScript Lib, Python Lib, Go Lib, Rust Lib |
๐ Generated Structure
A typical Next.js + Prisma project generated by PAPER-CODE:
my-project/
โโโ .cursorrules # ๐ Critical for AI Editors
โโโ .github/
โ โโโ copilot-instructions.md
โ โโโ workflows/ci.yml
โโโ docs/
โ โโโ ai/
โ โ โโโ AI_RULES.md # The "Constitution" for your AI
โ โ โโโ AI_WORKFLOWS.md # SOPs for common tasks
โ โ โโโ AI_CONTEXT.md # Project map
โ โโโ libs/ # Specific guides for libraries
โ โ โโโ prisma.md
โ โ โโโ tailwindcss.md
โ โโโ ARCHITECTURE.md
โ โโโ CODE_STANDARDS.md # "Do's and Don'ts"
โ โโโ CONTRIBUTING.md
โ โโโ TESTING.md
โโโ CHANGELOG.md
โโโ README.md
๐ค Contributing
We love contributions! Whether it's adding a new Tech Stack template or fixing a typo. Please read our CONTRIBUTING.md to get started.
- Fork the repo.
- Create your feature branch (
git checkout -b feature/amazing-stack). - Commit your changes (
git commit -m 'feat: add Astro support'). - Push to the branch.
- Open a Pull Request.
๐ License
Distributed under the MIT License. See LICENSE for more information.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file paper_code-0.2.0.tar.gz.
File metadata
- Download URL: paper_code-0.2.0.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67c03b7398c26f5359c8508104cce18ac323024589141544add2864e6fbbd817
|
|
| MD5 |
d9bd863530f18ca9d6f6331c5c6bdfba
|
|
| BLAKE2b-256 |
a158089a9618fdf6ad78d11f554525fb21b4af321250766a9e5ecd469600e5fb
|
File details
Details for the file paper_code-0.2.0-py3-none-any.whl.
File metadata
- Download URL: paper_code-0.2.0-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0cd17db45a3d27b0752846bedc7f664f70a417b8752168528392a85533df4cf4
|
|
| MD5 |
9a95e0126f878131df0fa44a29af24ee
|
|
| BLAKE2b-256 |
5f84a011528c0f397472f38f66257ecc55383652b5b8b8c808f02b82aa44c9b8
|