Monglo Logo

Monglo

MongoDB Admin That's Actually Magical ✨

Framework-agnostic MongoDB admin library with intelligent relationship detection, zero configuration, and beautiful auto-generated UI.

v0.1.1

FastAPI Example

Build a production-ready admin panel in just 10 lines of FastAPI code.
Note: Currently supports FastAPI only. Django, Flask, and Starlette coming soon!

Python • FastAPI Example
from fastapi import FastAPI
from motor.motor_asyncio import AsyncIOMotorClient
from monglo import MongloEngine
from monglo.ui_helpers.fastapi import create_ui_router

# Connect to MongoDB
client = AsyncIOMotorClient("mongodb://localhost:27017")

# Create FastAPI app
app = FastAPI()

# Initialize Monglo
engine = MongloEngine(database=client.mydb, auto_discover=True)

@app.on_event("startup")
async def startup():
    await engine.initialize()
    app.include_router(create_ui_router(engine))

# That's it! 🎉
# Visit http://localhost:8000/admin
Full FastAPI Tutorial →
Why Monglo?

Built for developers who want to focus on their application,
not spend days building admin interfaces.

🔮

Auto-Discovery

Automatically detects all collections, schemas, and field types. Zero configuration required.

🔗

Smart Relationships

Intelligent detection of ObjectId references, DBRefs, and naming conventions. Navigate relationships with ease.

Framework Agnostic

Works with FastAPI (now), Django & Flask (coming soon). Clean adapter pattern for any framework.

📊

Dual Views

Table view for browsing & filtering. Document view for detailed inspection. Switch seamlessly between both.

🎨

Beautiful UI

Modern, responsive interface with dark mode. Professional aesthetics out of the box.

🚀

Production Ready

Built on Motor for async operations. Proper error handling. Battle-tested and ready to deploy.

The Problem Monglo Solved

❌ Before Monglo

  • ✗ Hundreds of lines of boilerplate
  • ✗ Manual template creation
  • ✗ Complex routing setup
  • ✗ Custom serialization logic
  • ✗ Manual relationship mapping
  • ✗ Days of development time

✓ With Monglo

  • ✓ 10 lines of code
  • ✓ Zero configuration
  • ✓ Auto-generated everything
  • ✓ Intelligent auto-discovery
  • ✓ Smart relationship detection
  • ✓ 5 minutes to production
380 lines → 10 lines 📉
Framework Support

Start with FastAPI today. More frameworks coming soon.

AVAILABLE

FastAPI

Async-first with auto docs

Start Tutorial →
v0.2.0

Django

URLConf integration

v0.2.0

Flask

Blueprint integration

v0.3.0

Starlette

Minimal ASGI framework

Ready to Build Something Amazing?

Get started in less than 5 minutes. No credit card required.

Install Monglo Now View on GitHub