Mojoflow
AI-Native Full-Stack Framework for Mojo
A production-grade, modular full-stack framework built for the Mojo programming language. Designed from the ground up for AI-native development — LLM integration, agent workflows, and task orchestration are first-class citizens.
CLI
mojoflow create / dev / build / deploy
UI
Declarative DSL compiles to React/HTML
AI
LLM · Agents · Prompts · Orchestration
Server
HTTP · Router · Middleware · Logging
Core
Types · Config · Errors · Utilities
Project
from mojoflow.server import App
var app = App()
@app.get("/hello")
fn hello(req) -> Response:
return Response.json(
'{"msg": "Hello Mojo!"}'
)
app.listen(8080)
Built for the AI Era
Each layer is independently composable and designed for AI-native development from the ground up.
AI-Native Primitives
Built-in LLM client (OpenAI, Anthropic, local), agent execution with think→act→observe loops, prompt templates, and DAG-based task orchestration.
High-Performance HTTP Server
Pure-Mojo async server using POSIX syscalls directly. Fiber-based concurrency with epoll event loop for massive throughput.
Declarative UI DSL
Write UI components in Mojo using a declarative DSL that compiles to React/HTML. Props, children, event handlers — all in Mojo syntax.
Full CLI Toolchain
Scaffold projects, run dev servers, build production bundles, and deploy — all from the mojoflow CLI.
Agent Orchestration
Pipeline-based task execution with automatic dependency resolution. Chain AI tasks together using {{placeholder}} substitution.
Blazing Performance
Leverages Mojo's systems-level speed with Python-level ergonomics. Designed for MAX Engine and hardware acceleration.
Modular Architecture
Each layer depends only on the layers below it. The Core layer has zero external dependencies.
CLI
UI
AI
Server
Core
Developer Experience
From project creation to production — clean syntax, helpful errors, fast iteration.
Project Scaffolding
Generate a complete project structure with a single command. Includes server, AI, UI, and CLI boilerplate.
Hot Reload Dev Server
Built-in development server with live reload. Changes to .mojo files recompile and restart instantly.
Production Build
Optimized bundling for production deployment. Includes tree-shaking, minification, and dependency resolution.
Build the Future with Mojo
Mojoflow is open source and ready to use. Build AI-native applications with the speed of Mojo and the ergonomics of Python — all in one unified framework.