> ## Documentation Index
> Fetch the complete documentation index at: https://docs.go-mizu.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Welcome to Mizu

> A lightweight, composable web framework for Go

<img src="https://mintcdn.com/mizu-ba007bb4/Z_gC0LmLAjrVGxxK/logo.png?fit=max&auto=format&n=Z_gC0LmLAjrVGxxK&q=85&s=74c7a2f614f1f9f31ed4901115b5060c" alt="Mizu Logo" width="80" height="80" data-path="logo.png" />

# Welcome to Mizu

Mizu is a lightweight, composable web framework for Go that builds on the standard library's `net/http` package. Like water (水, "mizu" in Japanese), it flows naturally with Go's conventions while adding just enough structure to make web development enjoyable.

## Get Started in 30 Seconds

```go theme={null}
package main

import "github.com/go-mizu/mizu"

func main() {
    app := mizu.New()

    app.Get("/", func(c *mizu.Ctx) error {
        return c.JSON(200, map[string]string{
            "message": "Hello, Mizu!",
        })
    })

    app.Listen(":3000")
}
```

```bash theme={null}
go get github.com/go-mizu/mizu
go run main.go
# Visit http://localhost:3000
```

## Why Mizu?

<CardGroup cols={3}>
  <Card title="Built on net/http" icon="cube">
    No magic, no reflection, no code generation. Mizu uses Go 1.22+ ServeMux patterns and standard interfaces.
  </Card>

  <Card title="Composable Middleware" icon="layer-group">
    Production-ready middlewares for authentication, caching, rate limiting, and more.
  </Card>

  <Card title="Just Enough Structure" icon="code">
    Thin abstractions over the standard library. Learn it once, use it everywhere.
  </Card>
</CardGroup>

## Next Steps

<CardGroup cols={2}>
  <Card title="Installation" icon="download" href="/guides/installation">
    Set up Mizu in your project.
  </Card>

  <Card title="Quick Start" icon="rocket" href="/guides/quick-start">
    Build your first app in 5 minutes.
  </Card>

  <Card title="Core Concepts" icon="book-open" href="/guides/concepts/overview">
    Learn how App, Router, Handler, and Context work together.
  </Card>

  <Card title="Tutorials" icon="code" href="/guides/first-api">
    Step-by-step guides to build real applications.
  </Card>
</CardGroup>

## What Can You Build?

| Use Case           | Description                                           |
| ------------------ | ----------------------------------------------------- |
| **REST APIs**      | Build type-safe APIs with automatic validation        |
| **Websites**       | Server-rendered pages with templates and static files |
| **Real-time Apps** | SSE support for live updates                          |
| **Microservices**  | Lightweight services with health checks               |
| **Full-Stack**     | Go backend + React/Vue/Svelte frontend                |

## Requirements

* **Go 1.22** or later (for enhanced ServeMux patterns)
* Any operating system (Linux, macOS, Windows)

## Join the Community

<CardGroup cols={2}>
  <Card title="Discord" icon="discord" href="https://discord.gg/8QpMsNBB8n">
    Chat with the community and get help.
  </Card>

  <Card title="GitHub" icon="github" href="https://github.com/go-mizu/mizu">
    Star the repo, report issues, contribute code.
  </Card>
</CardGroup>
