Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Deploy a FastHTML app to Vercel with zero configuration using this boilerplate.
The FastHTML Boilerplate is a Vercel deployment template that takes a FastHTML project and deploys it to Vercel with zero configuration.
The FastHTML Boilerplate is a starting point for building and deploying FastHTML applications on Vercel. It is part of Vercel's framework boilerplates collection. The template provides a minimal FastHTML project structure that you can clone, extend, and deploy. FastHTML is a Python framework for creating HTML applications using HTMX and ASGI. This boilerplate handles the configuration needed for Vercel, so you can focus on writing application code.
python main.py to start a development server at http://0.0.0.0:5001 with automatic reloading on code changes.requirements.txt file holds project dependencies, installed with pip install -r requirements.txt.vercel --prod) or through Vercel's Git integration with a simple git push.https://fasthtml-template.vercel.app.main.py to see how HTMX attributes and ASGI routing work.To run locally, install dependencies with pip install -r requirements.txt, then start the server with python main.py. The server listens on port 5001 and reloads automatically. For production deployment, either install the Vercel CLI and run vercel --prod, or connect the repository to Vercel and push changes via Git.
The template itself is open source and free, hosted in Vercel's public example repositories. Deploying it to Vercel may incur costs depending on your Vercel plan, but the boilerplate requires no paid license.
It includes a minimal FastHTML application with a main.py file, a requirements.txt file for dependencies, and Vercel configuration needed for deployment.
You can use the "Deploy with Vercel" button, the Vercel CLI with vercel --prod, or connect the GitHub repository to Vercel's Git integration and push changes.
The template has a live demo at https://fasthtml-template.vercel.app.
