FastHTML is a full-stack Python web framework designed for building interactive web applications using pure Python. It functions as an HTMX integration framework and a Python HTML domain-specific language, allowing developers to generate HTML structures using native objects and functions instead of external templating files.
The framework is distinguished by its native support for real-time bidirectional communication via WebSockets and Server-Sent Events, enabling server-side updates to be pushed to the browser without full page reloads. It further integrates identity management through OAuth provider configurations and secure session tracking.
The project covers a broad range of capabilities, including type-hinted database CRUD operations, decorator-based request routing, and middleware for request interception. Its rendering system supports the generation of SVGs, markdown, and custom HTML components, while the developer experience is rounded out by live reloading and the ability to execute applications within interactive notebook environments.
The framework includes tooling for linking projects and deploying applications to cloud hosting platforms.