T
Tea
DocsExamplesReferencePlayground
GitHub

Tea Examples

Learn Tea through practical examples. Each example includes complete, runnable code with explanations of key concepts.

Filter by difficulty:

Hello World

Beginner

Your first Tea program - the classic Hello World example

CLI Applications

Beginner

Build command-line tools with argument parsing and user input

JSON Parsing

Beginner

Parse and manipulate JSON data with Tea's built-in JSON module

File System Operations

Intermediate

Read, write, and manipulate files and directories

Generic Functions

Intermediate

Write reusable, type-safe code with generics

Web Server

Advanced

Build a simple HTTP server with routing and middleware

Concurrent Processing

Advanced

Use Tea's concurrency features for parallel processing

Data Structures

Intermediate

Implement 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!

Contributing GuideView on GitHub
© 2025 Tea Language. Open source under MIT License.