Skip to main content

Interactive Project Documentation Generator for AI-Native Development

Project description

๐Ÿ“„ PAPER-CODE

The AI-Native Documentation Generator

Python Version PyPI Version License Code Style PRs Welcome

Stop writing boilerplate docs. Automatically generate AI Context, Architecture Guides, and Governance Files optimized for Cursor, Windsurf, and Copilot.

โœจ Features โ€ข ๐Ÿš€ Installation โ€ข ๐Ÿ“– Usage โ€ข ๐Ÿ—บ๏ธ Roadmap


๐ŸŽฌ Demo

PAPER-CODE 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:

  1. For AI Agents: Generates .cursorrules, AI_RULES.md, and strict coding standards to keep your AI (Cursor/Copilot) from hallucinating or using deprecated syntax.
  2. 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 .cursorrules and 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

Upgrade (From PyPI)

To upgrade an existing system-wide or virtualenv installation of paper-code from PyPI to the latest released version:

# Upgrade to the latest version
pip install --upgrade paper-code

# Or to install a specific version (e.g., 0.1.0)
pip install paper-code==0.1.0

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.

  1. Fork the repo.
  2. Create your feature branch (git checkout -b feature/amazing-stack).
  3. Commit your changes (git commit -m 'feat: add Astro support').
  4. Push to the branch.
  5. Open a Pull Request.

๐Ÿ“„ License

Distributed under the MIT License. See LICENSE for more information.

Built with โค๏ธ by Developers, for Developers (and their AI assistants).

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

paper_code-0.4.0.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

paper_code-0.4.0-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file paper_code-0.4.0.tar.gz.

File metadata

  • Download URL: paper_code-0.4.0.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for paper_code-0.4.0.tar.gz
Algorithm Hash digest
SHA256 53ab08623a10789d9a529b3e32271b8a55baf370200c9b7d51690d855ecfd251
MD5 c164841b2c41110d387c8a716aff3900
BLAKE2b-256 aaa981972769d03c9ddd711e96fdbe935dc15dd1972634fdd4c019ff2ee4899a

See more details on using hashes here.

File details

Details for the file paper_code-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: paper_code-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for paper_code-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62fc9f22bd64fb43184c46056d05182c7ec0a2ffc13bd1bf7459fb97387c3584
MD5 c30fba964db3dafe456b3cbd3a797084
BLAKE2b-256 3b5619550f187cf5df87332ad10c1d365bbe6067955a7276b322e58e190f2500

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page