pip install hyperadmin
HyperAdmin is a framework for building administrative interfaces on top of FastAPI. It uses Pydantic for data validation and HTMX for dynamic UIs with minimal JavaScript.
Quick example
from fastapi import FastAPI
from sqlalchemy.ext.asyncio import create_async_engine
from sqlmodel import SQLModel, Field
from hyperadmin import Admin
from hyperadmin.core.registry import site
class Product(SQLModel, table=True):
id: int | None = Field(default=None, primary_key=True)
name: str
price: float
engine = create_async_engine("sqlite+aiosqlite:///app.db")
app = FastAPI()
admin = Admin(app, engine=engine)
site.register(Product)
admin.mount("/admin")
Where to go next
- Getting Started — Install and build your first admin
- Tutorial — Step-by-step walkthrough
- Examples — Two runnable apps (simple CRUD + Bookkeeping ERP)
- Frontend — Templates, CSS tokens, widgets, HTMX patterns
- API Reference — Full class and method documentation
- Contributing — Development setup and contribution workflow
- Roadmap — What's shipped and what's coming next
Key features
- Pydantic-native — define admin interfaces directly from your models
- FastAPI integration — mounts seamlessly into any FastAPI app
- HTMX-powered — rich interactive UI without complex JavaScript
- SQLModel & SQLAlchemy — works out of the box with both ORMs
- Automatic CRUD — list, detail, create, and update views generated automatically
- Extensible — override templates, customize views, and add custom actions
Next: Getting Started