Mojo 1.0 · minimal by design
Web APIs at Mojo speed.
A tiny, readable web framework for handlers, HTML templates, nested includes, and Markdown — built in Mojo.
View on GitHub →
make build && ./dist/basicapi-siteGET /health200
{"status":"ok","framework":"BasicAPI","language":"Mojo"}Small core. Useful defaults.
BasicAPI gives Mojo projects method-aware request handlers, typed responses, nested HTML templates, and Markdown includes without a heavy dependency graph.
- GET, POST, PUT, and DELETE routing
- Text, HTML, JSON, redirects, and custom status codes
- Variables such as
{value}in HTML templates - Recursive
include("partial.html")composition - Markdown rendered by
include("article.md")
One idea, end to end
Define routes, return a Response, and let the tiny transport handle HTTP. Templates and Markdown are rendered in Mojo; Python is used only as a standard-library socket bridge while Mojo networking evolves.