r/coolgithubprojects • • 3h ago

fastapi-prod-ready – A Claude Code skill that audits FastAPI + PostgreSQL prototypes before going to production

https://github.com/tuvatechvalley/fastapi-prod-ready

Hey! I built this open-source Claude Code skill after seeing how often FastAPI prototypes work fine for one user locally, then run into trouble once real traffic hits.

It targets FastAPI + PostgreSQL + SQLAlchemy (async) + Alembic apps and audits your existing codebase without asking for a full rewrite. It also includes three focused checks you can run on their own:

- `backend-review` – full pre-launch audit with a readable report

- `concurrency-check` – catches things that break when multiple users hit the app at once

- `migration-review` – checks Alembic/Postgres migrations for locking or downtime risks

Happy to hear any feedback or edge cases you think should be added!

1 Upvotes

2 comments sorted by

2

u/Yarail 3h ago

Nice idea, especially the migration-review and concurrency checks. The thing that bit me hardest in FastAPI prod was accidentally running sync DB calls or blocking IO inside async def routes and starving the event loop under load, plus forgetting to tune SQLAlchemy pool sizes and timeouts. Checking for those would be super useful if it's not already in there.

1

u/-UniK-0 3h ago

Thanks! Glad those two stood out — migration locks and concurrency bugs are usually the hardest ones to spot just by eyeballing a PR.

Good news is both blocking IO / sync calls inside `async def` routes and SQLAlchemy pool hygiene + timeouts are already covered in the checks. Pool timeouts especially get overlooked all the time because default settings look completely fine until the DB slows down or traffic spikes.

If you end up running it on a project and notice any specific SQLAlchemy pool or timeout config it could be stricter about, feel free to open an issue or drop a note — always looking to sharpen the rules with real prod lessons.