This repository contains a collection of example applications built using FastHTML, demonstrating various features and use cases. Here are some of the highlighted apps:
An interactive implementation of Conway's Game of Life, showcasing real-time updates and multi-client synchronization through WebSockets.
Key features:
- Interactive Game of Life grid
- Real-time updates across multiple clients
- WebSocket integration for live synchronization
A simple yet functional Todo list application demonstrating dynamic updates and database integration.
Key features:
- Add, edit, and delete todo items
- Mark todos as complete
- Real-time updates without page reloads
- SQLite database integration
A simple chatbot, showcasing custom styling with DaisyUI for the chat message bubbles. Includes different approaches to handling chat message updates.
Sending user drawings to a multi-modal AI model for continuous captioning.
The remaining examples are a collection of smaller demos and utilities showcasing various features of FastHTML. These are proof-of-concepts and demos rather than full-fledged applications, but should still show some useful patterns and techniques you can use in your own projects.
Each app is contained in its own directory. To run an app:
- Navigate to the app's directory
- Install the required dependencies (usually with
pip install -r requirements.txt
) - Run the app using the command specified in the app's README (typically
uvicorn main:app
orpython main.py
)
Contributions are welcome! Please feel free to submit a Pull Request.
These examples were created to showcase the capabilities of FastHTML, a Python framework for building dynamic web applications.