Show HN: Microcodegen.py – PRD → FastAPI app, one file, no LLM calls
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.
- ▪Microcodegen.py transforms plain-English PRD text into a complete FastAPI app with a single command.
- ▪The generated application includes interactive OpenAPI documentation and SQLAlchemy models for each entity.
- ▪It operates without any LLM calls or external API keys, relying solely on Python's standard library.
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.