Framework

FastHTML – HTML-first Python web framework

FastHTML is a web framework for creating interactive applications using an HTML-first approach. It combines familiar web technologies with a concise programming interface, allowing developers to construct web pages and application components directly in Python.

The framework emphasizes server-rendered HTML rather than complex client-side application architectures. It uses HTMX to update sections of a page in response to user interactions, reducing the need to write custom JavaScript.

FastHTML builds on established technologies including Starlette and Uvicorn. Its design gives developers direct control over HTML and HTTP while providing abstractions that simplify common web development tasks.

This is free and open source software.

Key Features

  • HTML-first architecture for building server-rendered web applications.
  • HTMX integration enables interactive interfaces through partial HTML updates.
  • Python functions represent HTML elements and reusable interface components.
  • Decorator-based routing for handling HTTP requests.
  • Automatic conversion of FastTags component trees into HTML responses.
  • Support for reusable components combining HTML elements and application logic.
  • Built on Starlette with ASGI support through Uvicorn.
  • Beforeware provides request processing functionality before route handlers execute.
  • Support for forms, request parameters, cookies, and session management.
  • WebSocket support for real-time client-server communication.
  • Automatic handling of complete HTML pages and partial responses.
  • Compatible with conventional CSS frameworks and JavaScript libraries.
  • Optional integration with SQLite databases through Fastlite.
  • Support for custom HTTP responses, headers, and middleware.
  • Can incorporate existing web components without requiring a client-side JavaScript framework.

Website: github.com/AnswerDotAI/fasthtml
Support:
Developer: Answer.AI, Jeremy Howard and contributors
License: Apache License 2.0

FastHTML is written in Python. Learn Python with our recommended free books and free tutorials.


Related Software

Python Frameworks
DjangoHigh-level web application framework
DashBuild analytical web applications without JavaScript
TornadoFramework, scalable web server, and asynchronous networking library
TurboGearsFramework based on the ObjectDispatch paradigm
MasoniteDev tool with all the features needed for rapid development
RobynPython web framework designed for high performance
ReflexLibrary to build full-stack web apps in pure Python
FrappeLow-code, metadata-driven web application framework
ZopeObject-oriented web application server
EmmettFull-stack Python web framework
PY4WEBSuccessor to web2py
CubicWebSemantic web framework
ReahlPython-only web framework
django-hotsauceRapid web application development and testing
Jam.pyWeb front-end application generator
GrokWeb framework based on Zope Toolkit technology
web2pyFull-featured, full-stack framework for rapid development

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted