fasthtml

Installation
SKILL.md

FastHTML

Follow current FastHTML conventions, not FastAPI, Django, or SPA conventions. Keep code small, HTML-first, and signature-driven.

Start Here

  1. Match the repo's existing style first.
  2. Default to from fasthtml.common import * unless the repo already uses explicit imports.
  3. Default to app, rt = fast_app() and @rt handlers unless the repo already uses FastHTML() or verb-specific decorators.
  4. Prefer index() for /, function-name routes for the rest, and route function references instead of hard-coded URLs.
  5. Keep route handlers as plain functions with accurate annotations. FastHTML inspects signatures at runtime.

Default Build Pattern

Use this shape unless the local app clearly uses another pattern:

from fasthtml.common import *
Installs
7
First Seen
Jun 4, 2026