# Lux by Example

Learn Lux through annotated example programs. Each example is self-contained and demonstrates a specific concept or pattern.

Click any example to see the full code with explanations.

### Hello World

Your first Lux program. Learn about the main function and Console effect.

View example →

### Effects Basics

Understand how effects make side effects explicit in type signatures.

View example →

### Pattern Matching

Destructure data with exhaustive pattern matching.

View example →

### HTTP Server

Build a simple web server with effect-tracked I/O.

View example →

### JSON Processing

Parse and generate JSON data with type safety.

View example →

### Concurrency

Spawn tasks and communicate via channels.

View example →