hbk add <module> — plug Stripe, Docker & more into existing projects
Auth, database, migrations, Docker, tests, and payments — wired up and production-ready out of the box. Pair it with an AI coding assistant and ship in minutes: faster, cheaper, and more reliable than asking it to build the same stack from scratch.
Everything you need to go from zero to production β no corners cut.
FastAPI, SQLAlchemy 2.0, Pydantic v2, and Alembic migrations — pre-wired and ready to deploy.
Rate limiting, JWT auth, secure secret generation, and non-root Docker containers.
Optional uv support for lightning-fast dependency management and virtualenvs.
Service-Repository pattern for maintainable, testable, and scalable code from day one.
Integrated pytest setup with a single hbk test command. No excuses.
Ready-to-deploy docker-compose setup with healthchecks and non-root security.
Built-in Agent Skills for GitHub Copilot and VS Code agent mode β your AI understands your project.
Opt-in payment stack: checkout sessions, signed webhooks, and plans, subscriptions & payments tables wired into your DB.
Add new capabilities to an existing project with hbk add <module>. No re-init, no glue code — the installer wires up requirements, env vars, routes and models for you.
A CLI that drives as good as it looks. Scaffold, migrate, seed, and test β all from the terminal.
Four steps. That's all it takes to get a fully scaffolded, production-ready FastAPI project.
Grab it from PyPI β it's lightweight and has zero heavy dependencies.
Scaffold a complete FastAPI project with database, auth, Docker, and tests. Add --stripe to bundle a full payments stack.
Don't write boilerplate β generate models, schemas, services, and routes in one command.
Fire up the dev server with hot-reloading and you're live.
Every command at your fingertips. All accessible via hbk or hatchback.
| Command | Description |
|---|---|
hbk init <name> --stripe |
Initialize a new project with full scaffolding (add --stripe for payments) |
hbk add <module> |
Install an optional module (stripe, docker, …) into an existing project |
hbk add --list |
List available optional modules |
hbk run |
Start dev server with hot-reload |
hbk make <resource> |
Scaffold a new resource (model, schema, service, routeβ¦) |
hbk remove <name> |
Remove a scaffolded resource or uninstall a module (auto-detected) |
hbk migrate create -m "msg" |
Create a new Alembic migration |
hbk migrate apply |
Apply pending database migrations |
hbk migrate downgrade |
Rollback the last migration (-r -2 for multiple steps) |
hbk seed |
Seed database with initial data (tenant + admin) |
hbk inspect --url <db_url> |
Inspect existing DB and generate models & scaffolds |
hbk upgrade |
Sync latest agent skills and infra files |
hbk test |
Run the test suite |
A clean, layered architecture that keeps your code modular and testable.
Pass --stripe at init — or run hbk add stripe in an existing project — to ship payments with a verified webhook,
DB-backed plans, subscriptions and payments. No extra wiring.
The CLI installs the Stripe SDK, adds the required env vars, models, repositories, service and routes.
Already past init? Just run hbk add stripe — same result, no re-bootstrap.
Alembic autogenerate picks up the new models. Run the initial migration once.
A full payment surface, all under /payments.
The webhook handler verifies the Stripe signature and updates your DB — idempotent, retry-safe, and tenant-aware via metadata.
Everything you need β source code, docs, and ways to support the project.
Source code, issues, and contributions
βInstall the latest version from PyPI
βFull README with guides and examples
βSupport the project and fuel development
βApache 2.0 β open and permissive
βReport bugs or request new features
βLearn how to contribute to Hatchback
βSecurity policy and reporting
β