hello world
Example 00: hello world
Learn Zenith framework through practical, working examples. Each example builds on previous concepts while introducing new features.
hello world
Example 00: hello world
basic routing
Example 01: basic routing
pydantic validation
Example 02: pydantic validation
modern developer experience
Example 03: modern developer experience
one liner features
Example 04: one liner features
context system
Example 05: context system
file upload
Example 06: file upload
websocket chat
Example 07: websocket chat
rate limiting
Example 08: rate limiting
cors middleware
Example 10: cors middleware
security middleware
Example 12: security middleware
router grouping
Example 13: router grouping
background tasks
Example 14: background tasks
advanced background processing
Example 15: advanced background processing
testing patterns
Example 16: testing patterns
performance monitoring
Example 17: performance monitoring
database sessions
Example 18: database sessions
seamless integration
Example 19: seamless integration
fullstack spa
Example 20: fullstack spa
proper middleware architecture
Example 21: proper middleware architecture
server sent events
Example 22: server sent events
server sent events advanced
Example 23: server sent events advanced
All examples are available in the GitHub repository:
# Clone and run any examplegit clone https://github.com/nijaru/zenith.gitcd zenithexport SECRET_KEY="your-secret-key-at-least-32-characters-long"uv run python examples/[example-name].pyThis page is auto-generated from the examples directory. Each example page shows the complete source code and explanation.