Show HN: Next.js-like Python web framework, built for Htmx with FastAPI
a day ago
- #python
- #web-development
- #fastapi
- Holm is a web development framework that brings Next.js developer experience to Python, built on FastAPI, htmy, and FastHX.
- Key features include file-system based routing, JSX-like syntax with async support, first-class HTMX support, and no JavaScript dependencies.
- Pre-requisite knowledge includes basic understanding of FastAPI, htmy, HTML, and CSS.
- Installation is available via PyPI, with support for Linux, macOS, and Windows (WSL).
- Application structure follows file-system based routing similar to Next.js, with automatic route and layout composition.
- Security features like CSRF prevention are not provided out of the box, but third-party solutions are welcome.
- AI assistance is available through Context7, with good results expected due to similarities with Next.js and React.
- Performance impact is minimal, with no overhead for JSON APIs and negligible impact for web applications.
- Development setup includes tools like uv, poethepoet, mypy, ruff, pytest, and mkdocs-material.
- Contributions are welcome in various forms including discussion, documentation, development, and testing.
- Comparison with other frameworks highlights Holm's lack of JavaScript dependencies and its unique features like file-system routing and async support.