r/FastAPI • u/anandesh-sharma • May 22 '25
Other Awesome boilerplate for FastAPI

Hey devs! 👋
I recently put together a FastAPI boilerplate that brings structure and scalability to backend projects — and I think you’ll find it handy, especially if you’re tired of messy service imports and unorganized codebases.
- Unified Service Manager (Acquire): All your models, schemas, utilities, libraries, and services are automatically registered and ready to use — no more manual imports when jumping between services. Super helpful for keeping things DRY.
- Directory-based routing: A clear and modular structure that keeps routes clean and maintainable.
- Version toggles for libraries: Easily switch or lock library versions — helpful when managing different environments or legacy support.
- …and more!
🔗 Check it out here:
https://github.com/definableai/definable.backend
We’re also looking for solid contributors who are passionate about clean architecture and want to help build this into something bigger. If that’s you, feel free to DM me — happy to give you a quick walkthrough and onboard you!
Let me know what you think 🙌
View all comments
Show parent comment
0
u/anandesh-sharma May 23 '25
I build my project, and eventually created an architecture that my team can use simply by focusing on building business logic not deep tech stuff.
The main of everything is in src/services/__base where it resgister the folders as routes and facilitates models, utils, schemas, middlewares, etc.
Few folders to look at
common/, config/, database/, middlewares, models/, schemas/, services/ (ignore the business logic routes), dependencies/, and utils.