Overview
Examples Gallery
Section titled “Examples Gallery”Complete Jac applications to study, learn from, and build upon. Each example includes full source code, explanations, and step-by-step guidance.
Featured Examples
Section titled “Featured Examples”LittleX - Social Media Platform
Section titled “LittleX - Social Media Platform”Build a Twitter-like app in 200 lines of code.
| Difficulty | Intermediate |
| Features | Nodes, walkers, edges, graph traversal, jac start |
| Learn | How to model social relationships as graphs |
EmailBuddy - AI Email Assistant
Section titled “EmailBuddy - AI Email Assistant”An intelligent email assistant powered by LLMs.
| Difficulty | Intermediate |
| Features | by llm, structured outputs, tool calling |
| Learn | How to build agentic AI applications |
RAG Chatbot - Document Q&A
Section titled “RAG Chatbot - Document Q&A”A multimodal chatbot with document search and retrieval.
| Difficulty | Advanced |
| Features | MCP tools, vector search, retrieval-augmented generation |
| Learn | How to build knowledge-based AI systems |
RPG Level Generator
Section titled “RPG Level Generator”AI-powered procedural game level generation.
| Difficulty | Advanced |
| Features | by llm, structured data types, game logic |
| Learn | How to use AI for creative content generation |
Start RPG Generator Tutorial →
More Examples
Section titled “More Examples”Agentic AI Applications
Section titled “Agentic AI Applications”| Example | Description |
|---|---|
| Friendzone Lite | Social AI agent with ReAct pattern |
| Aider Genius Lite | AI coding assistant |
| Task Manager Lite | AI task management |
Game Examples
Section titled “Game Examples”| Example | Description |
|---|---|
| Fantasy Trading Game | AI-driven trading simulation |
Running Examples
Section titled “Running Examples”From Source
Section titled “From Source”# Clone the repositorygit clone https://github.com/Jaseci-Labs/jaseci.gitcd jaseci/examples
# Run an examplejac example_name/main.jacAs API Server
Section titled “As API Server”# Start the example as an APIjac start example_name/main.jac
# View API documentationopen http://localhost:8000/docsRunning Tests
Section titled “Running Tests”# Test an examplejac test example_name/main.jac
# Test all examples in directoryjac test -d examples/Example Structure
Section titled “Example Structure”Each example follows this structure:
example_name/├── main.jac # Main application code├── main.impl.jac # Implementation details (optional)├── main.test.jac # Tests├── README.md # Documentation└── requirements.txt # Python dependencies (if needed)Contributing Examples
Section titled “Contributing Examples”Want to share your Jac project?
- Create a working example with tests
- Write a tutorial explaining the key concepts
- Submit a pull request
See the Contributing Guide for details.
Reference Examples
Section titled “Reference Examples”The Jac repository includes comprehensive reference examples for every language feature:
jac/examples/reference/├── basic_syntax/ # Variables, functions, control flow├── data_types/ # Collections, enums, types├── osp_features/ # Nodes, edges, walkers├── ai_integration/ # by llm, semantic strings└── advanced/ # Concurrency, generatorsEach reference example includes:
- Working
.jacsource code - Markdown documentation
- Python equivalent for comparison