Hello World
Your first Zenith app in under 20 lines View Example →
Reading API documentation alone rarely provides the complete picture. You need to see how concepts work together in practice, understand common patterns, and learn from real implementations.
If you want to get productive fast:
Hello World
Your first Zenith app in under 20 lines View Example →
DX
See Zenith’s features in action View Example →
One-liner Features
Add complex features with single commands View Example →
Learn to build production-ready APIs:
Basic Routing
RESTful endpoints with validation View Example →
Blog API
Complete CRUD API with database View Example →
File Upload
Handle file uploads and downloads View Example →
Build interactive applications:
WebSocket Chat
Real-time chat with rooms View Example →
Chat Application
Complete chat system with persistence View Example →
Build complete applications:
Full-Stack SPA
Serve React/Vue/Angular with API View Example →
We automatically generate documentation from our example files to ensure they’re always up-to-date:
Browse All Auto-Generated Examples →
# Clone the repositorygit clone https://github.com/nijaru/zenithcd zenith
# Install Zenithpip install -e .
# Run any examplepython examples/00-hello-world.py# Create virtual environmentpython -m venv venvsource venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependenciespip install zenithweb
# Run examplepython examples/03-modern-developer-experience.pyMost examples follow this pattern:
from zenith import Zenith
app = Zenith() # Zero-config setup
@app.get("/")async def root(): return {"message": "Hello World"}
if __name__ == "__main__": import uvicorn uvicorn.run(app, host="0.0.0.0", port=8000)Many examples include test code:
# Run the examplepython examples/16-testing-patterns.py
# In another terminal, test the APIcurl http://localhost:8000/We welcome new examples! When creating examples:
After exploring examples:
Examples are the fastest way to learn Zenith. Start with Hello World and build your way up!