VERSION 2.0 PRODUCTION

Magic MVC Framework

Enterprise-grade Python MVC framework with pluggable controllers, sandboxed execution, and production-ready operations tooling

V2.0.0
Latest Version
100%
Production Ready
< 50ms
Response Time View benchmarks
10k+ RPS
Horizontally Scalable Tested on 8 pods

Try It Live

Experience the power of Magic MVC right in your browser

curl -X POST https://magic.threadsync.io/api/v1/controllers/execute \ -H "Content-Type: application/json" \ -H "X-Request-ID: $(uuidgen)" \ -d '{"controller": "default", "params": {"input": "Hello Magic!"}}'
import requests import uuid response = requests.post( "https://magic.threadsync.io/api/v1/controllers/execute", headers={ "Content-Type": "application/json", "X-Request-ID": str(uuid.uuid4()) }, json={ "controller": "default", "params": {"input": "Hello Magic!"} } )
const response = await fetch('/api/v1/controllers/execute', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-Request-ID': crypto.randomUUID() }, body: JSON.stringify({ controller: 'default', params: { input: 'Hello Magic!' } }) });
Click "Run Controller" to execute the default controller...

V2 Features & Capabilities

Everything you need for enterprise-grade applications

Pluggable Controllers

Drop in new controllers without touching infrastructure

  • Hot-reload capable
  • Sandboxed execution
  • Resource limits (CPU/Memory)
  • Allow-list security

Production Security

Enterprise-grade security out of the box

  • Container hardening
  • TLS/HSTS configuration
  • JWT & API key auth
  • CORS & payload limits

Razor-like Templates

Powerful Jinja2 templating system

  • Dynamic HTML generation
  • Component reusability
  • Template inheritance
  • Auto-escaping security

Database-First ORM

SQLAlchemy with repository pattern

  • Auto-migrations with Alembic
  • Connection pooling
  • Transaction support
  • Query optimization

Operations Ready

Built for production from day one

  • Prometheus metrics
  • Health/readiness checks
  • Request tracing (X-Request-ID)
  • Structured JSON logging

Zero-Downtime Deploy

Automated deployment workflow

  • Blue-green deployment
  • Automated DB backups
  • Rollback capability
  • Health monitoring

Production Architecture

Battle-tested components working in harmony

Nginx
Reverse Proxy & Static Files
FastAPI
API Layer (Uvicorn)
Controllers
Pluggable Python Modules
PostgreSQL
Primary Database
Redis
Cache & Queue
Monitoring
Prometheus & Grafana

V2 API Examples

Real-world examples using the Magic MVC V2 framework

GET /api/v1/health/ready
Description

Check if the application is ready to serve requests (database connected, controllers loaded)

Response
{ "status": "ready", "timestamp": 1758772617.569, "checks": { "database": "ok", "controllers": 3, "redis": "ok" } }
POST /api/v1/controllers/execute
Description

Execute a pluggable controller with sandboxed execution and resource limits

Headers
X-API-Key: your-admin-api-key X-Request-ID: 550e8400-e29b-41d4-a716-446655440000 Content-Type: application/json
Request Body
{ "controller": "data_processor", "params": { "action": "transform", "input_data": [1, 2, 3, 4, 5], "operation": "square" } }
Response
{ "success": true, "request_id": "550e8400-e29b-41d4-a716-446655440000", "controller": "data_processor", "result": { "output": [1, 4, 9, 16, 25], "processing_time": 0.045 }, "metadata": { "execution_time": 0.052, "memory_used_mb": 12.3 } }

Ready to Deploy?

Choose your deployment option

V2 Production

Fully hardened with ops tooling

Size: 55KB
Download Production
SHA256: b6e7400e0f81715...

V2 Complete

All features for development

Size: 47KB
Download Complete
SHA256: 23cb0ccb647fe55...

Documentation

Comprehensive guides

View All Docs

Verify Downloads

# Verify checksum sha256sum Magic-MVC-V2-Production.tar.gz # Should equal: b6e7400e0f81715072fb8480682efc5ab7cabaf4313da87210078fad5a4191a6 # All checksums available at /deploy/checksums.sha256