Examples Gallery
Explore 150+ working examples organized by feature. Each example is a complete, runnable .q file demonstrating Quantum Framework capabilities.
0Examples
0Categories
3Difficulty Levels
Browse by Category
Quick Reference
| Category | Description | Examples |
|---|---|---|
| State Management | Variables with q:set, data binding | 30 |
| Loops | Iteration with q:loop | 7 |
| Conditionals | Logic with q:if/q:else | 9 |
| Functions | Reusable code with q:function | 16 |
| Database Queries | SQL with q:query | 16 |
| Forms & Actions | User input handling | 8 |
| Authentication | Login, roles, protected routes | 4 |
| AI Agents | LLM integration with q:agent | 6 |
| UI & Theming | Components, themes, animations | 10 |
| Games | 2D games with qg:scene | 9 |
| Data Import | CSV, JSON, XML loading | 7 |
| Advanced | Multi-feature applications | 28 |
Running Examples
Command Line
bash
# Run any example
quantum run examples/hello.q
# With debug output
quantum run examples/test-set-simple.q --debug
# Start web server for web apps
quantum startFrom Source
All examples are available in the examples/ directory on GitHub.
Difficulty Levels
- Beginner - Simple examples with 1-2 features, under 50 lines
- Intermediate - Moderate complexity, 3-5 features, 50-150 lines
- Advanced - Complex applications with multiple features, 150+ lines
Next Steps
- New to Quantum? Start with State Management examples
- Building web apps? Check Forms & Actions
- Interested in AI? Explore AI Agents
- Want to see it all? Browse Advanced examples