Tea Examples
Learn Tea through practical examples. Each example includes complete, runnable code with explanations of key concepts.
Filter by difficulty:
Hello World
BeginnerYour first Tea program - the classic Hello World example
CLI Applications
BeginnerBuild command-line tools with argument parsing and user input
JSON Parsing
BeginnerParse and manipulate JSON data with Tea's built-in JSON module
File System Operations
IntermediateRead, write, and manipulate files and directories
Generic Functions
IntermediateWrite reusable, type-safe code with generics
Web Server
AdvancedBuild a simple HTTP server with routing and middleware
Concurrent Processing
AdvancedUse Tea's concurrency features for parallel processing
Data Structures
IntermediateImplement common data structures like stacks, queues, and trees
Want to contribute an example?
We're always looking for more examples to help the community learn Tea. If you have an interesting use case or pattern, we'd love to see it!