GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - AnswerDotAI/fasthtml-example: Example fasthtml applications demonstrating a range of web programming techniques

BranchesTags
Open more actions menu

Latest commit

 

History

281 Commits
281 Commits

Folders and files

NameName
Last commit message
Last commit date
00_game_of_life
00_game_of_life
 
 
01_todo_app
01_todo_app
 
 
02_chatbot
02_chatbot
 
 
03_pictionary
03_pictionary
 
 
04_sse
04_sse
 
 
3d-component
3d-component
 
 
annotate_text
annotate_text
 
 
chess_app
chess_app
 
 
cli_oauth_example
cli_oauth_example
 
 
code_editor
code_editor
 
 
code_highlight_and_copy
code_highlight_and_copy
 
 
data_spot_check
data_spot_check
 
 
devtools
devtools
 
 
doodle
doodle
 
 
e_commerce
e_commerce
 
 
echo
echo
 
 
file_upload_form_example
file_upload_form_example
 
 
h2f
h2f
 
 
hacker_news_reskin
hacker_news_reskin
 
 
helloworld
helloworld
 
 
htmx
htmx
 
 
image_app_session_credits
image_app_session_credits
 
 
image_app_simple
image_app_simple
 
 
image_classification_app
image_classification_app
 
 
infinite_scroll
infinite_scroll
 
 
oauth_example
oauth_example
 
 
passkey
passkey
 
 
story
story
 
 
todos1
todos1
 
 
todos2-hf
todos2-hf
 
 
todos2
todos2
 
 
xtermjs
xtermjs
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
deploy.sh
deploy.sh
 
 
deploying-to-pythonanywhere.md
deploying-to-pythonanywhere.md
 
 
shoelace.py
shoelace.py
 
 

Repository files navigation

FastHTML Example Apps

This repository contains a collection of example applications built using FastHTML, demonstrating various features and use cases. Here are some of the highlighted apps:

1. Game of Life

An interactive implementation of Conway's Game of Life, showcasing real-time updates and multi-client synchronization through WebSockets.

Game of Life Animation

Key features:

  • Interactive Game of Life grid
  • Real-time updates across multiple clients
  • WebSocket integration for live synchronization

View Game of Life App

2. Todo App

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

View Todo App

3. Chatbot

Chatbot Screenshot

A simple chatbot, showcasing custom styling with DaisyUI for the chat message bubbles. Includes different approaches to handling chat message updates.

View Chatbot App

4. Pictionary

Pictionary Screenshot

Sending user drawings to a multi-modal AI model for continuous captioning.

View Pictionary App

Additional Examples

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.

Running the Apps

Each app is contained in its own directory. To run an app:

  1. Navigate to the app's directory
  2. Install the required dependencies (usually with pip install -r requirements.txt)
  3. Run the app using the command specified in the app's README (typically uvicorn main:app or python main.py)

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License

Acknowledgements

These examples were created to showcase the capabilities of FastHTML, a Python framework for building dynamic web applications.

About

Example fasthtml applications demonstrating a range of web programming techniques

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

865 stars

Watchers

17 watching

Forks

133 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.