API

FastHTML's own source notebooks: the implementation of each module, with examples and tests.

TitleDescription
CoreThe FastHTML subclass of Starlette.
Componentsft_html and ft_hx functions to add some conveniences to ft, along with a full set of basic HTML components, and functions to work with forms and FT conversion
Component extensionsSimple extensions to standard HTML components, such as adding sensible defaults
Javascript examplesBasic external Javascript lib wrappers
Pico.css componentsBasic components for generating Pico CSS tags
SVGSimple SVG FT elements
Jupyter compatibilityUse FastHTML in Jupyter notebooks
OAuthBasic scaffolding for handling OAuth
Command Line ToolsRailway deployment CLI helpers (railway_link, railway_deploy)
Basic Auth MiddlewareHTTP Basic Authentication middleware and logout helper for FastHTML apps
FastAppThe fast_app convenience wrapper for creating FastHTML apps and optional SQLite tables
ProxyStreaming HTTP responses, bidirectional WebSocket forwarding, and prefix proxy routes
ToasterSession-backed toast notifications with HTMX injection for FastHTML apps
ViteVite+ asset headers and development server integration for FastHTML