WeSearch

Show HN: Microcodegen.py – PRD → FastAPI app, one file, no LLM calls

·5 min read · 0 reactions · 0 comments · 19 views
#programming#fastapi#development#automation
Show HN: Microcodegen.py – PRD → FastAPI app, one file, no LLM calls
⚡ TL;DR · AI summary

Microcodegen.py is a tool that converts a Product Requirements Document (PRD) into a fully functional FastAPI application. It generates a single Python file with no dependencies, allowing for easy deployment and testing. The application includes features like JWT authentication, CRUD operations, and data isolation for users.

Key facts
Original article
GitHub
Read full at GitHub →
Opening excerpt (first ~120 words) tap to expand

microcodegen.py PRD text → production FastAPI app → ZIP bytes. One Python file, zero dependencies. Inspired by Andrej Karpathy's micrograd — this is the core Archiet algorithm in its simplest form. python microcodegen.py your-prd.md --out ./myapp cd myapp && pip install -r requirements.txt alembic upgrade head uvicorn main:app --reload → A working, bootable FastAPI app at http://localhost:8000/docs. What it generates from your PRD Given a plain-English Product Requirements Document, microcodegen.py outputs a complete FastAPI application: FastAPI with /docs interactive OpenAPI explorer — free, auto-generated by FastAPI SQLAlchemy 2.0 models — one per entity extracted from your PRD (DeclarativeBase) Pydantic v2 schemas — Base / Create / Update / Response classes per entity JWT auth —…

Excerpt limited to ~120 words for fair-use compliance. The full article is at GitHub.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from GitHub