Ludic Framework

A type-safe HTML template engine for Python. Build dynamic web pages using Python components with a React-like approach - no template syntax required.

Get StartedView Examples
from ludic.catalog.layouts import Box
from ludic.catalog.typography import Link
from ludic.web import LudicApp

app = LudicApp()

@app.get("/")
async def index() -> Box:
    """Homepage endpoint greeting visitors."""
    return Box(
        f"Welcome to {Link("Ludic", to="/")}!",
    )
Made with Ludic and HTMX and 🐍 • DiscordGitHub • Running on Leapcell