PitchHut logo
FastAPI Matrix Admin
A striking admin panel for FastAPI with terminal-style aesthetics.
Pitch

FastAPI Matrix Admin combines stunning cyberpunk design with robust features like auto-discovery and full CRUD functionality. Perfect for developers looking for a visually appealing and functional admin panel without the overhead of Node.js, this modern toolkit leverages Pydantic v2 and Shadcn UI for an efficient setup.

Description

FastAPI Matrix Admin is a modern admin panel designed for FastAPI applications that combines stunning terminal-style cyberpunk aesthetics with robust, production-ready features. This admin panel is built with zero Node.js dependencies, allowing developers to manage their applications with ease and efficiency.

Key Features:

  • Unique Matrix Aesthetic: Enjoy a distinctive terminal-style interface featuring monospace fonts, a captivating green/black theme, and neon glow effects, giving your backend a cool, modern look.
  • Zero Node.js Required: The solution is implemented entirely in Python, eliminating the need for npm, webpack, or any build steps. Dependencies can be installed directly using pip.
  • One-Line Auto-Discovery: Register SQLAlchemy models effortlessly with a single line of code. The admin panel automatically detects and configures models, freeing developers from tedious setup.
  • Full CRUD Functionality: Experience seamless Create, Read, Update, and Delete operations, enhanced by smooth animations and responsive design.
  • Production-Ready Security Features: Built with async SQLAlchemy 2.0, Pydantic v2 validation, CSP middleware, CSRF protection, and URL signing for improved security.

Easy Integration:

The setup is straightforward. Here’s an example of how to get started:

from fastapi import FastAPI
from sqlalchemy.ext.asyncio import create_async_engine
from fastapi_matrix_admin import MatrixAdmin

app = FastAPI()
engine = create_async_engine("postgresql+asyncpg://...")

admin = MatrixAdmin(app, engine=engine, secret_key="your-secret")
admin.auto_discover(Base)  # Auto-register all models
# Access the admin panel at /admin

Aesthetically Pleasing User Interface:

The admin panel features a variety of modern UI designs:

  • Smooth Animations: Enjoy fluid transitions and interactions.
  • Glassmorphism: Beautiful blur effects and translucent cards that enhance overall user experience.
  • Fully Responsive: The layout is optimized for mobile, tablet, and desktop usage.

Comprehensive Documentation:

Detailed documentation is available to guide users through configuration options, model registration, auto-discovery features, and more, ensuring a smooth user experience:

admin = MatrixAdmin(
    app,                    # FastAPI application
    engine=engine,          # Async SQLAlchemy engine
    secret_key="your-secret-key",  # Minimum 16 characters
    prefix="/admin",       # URL prefix
    add_csp_middleware=True,  # Enable Content Security Policy
)

Try It Out:

A live demo is available to showcase the capabilities of FastAPI Matrix Admin. Users can explore the features and visuals firsthand before implementing the tool in their applications.

Discover the full potential of FastAPI with Matrix Admin, where aesthetics meet high-performing functionality.

0 comments

No comments yet.

Sign in to be the first to comment.