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

# Introduction

> Kit brings the DX of Laravel to Rust - type-safe, performant web apps with the velocity you love

## What is Kit?

Kit is a Laravel-inspired web framework for Rust that combines:

* **Laravel's DX** - Familiar patterns like controllers, routes, middleware, and Eloquent-style models
* **Rust's Performance** - Native speed with zero-cost abstractions
* **Type Safety** - Catch errors at compile time, not runtime
* **Modern Frontend** - First-class Inertia.js + React integration

## Quick Start

Get started in under 5 minutes:

<Card title="Quickstart Guide" icon="rocket" href="/quickstart">
  Create your first Kit application step by step.
</Card>

## Core Features

<Columns cols={2}>
  <Card title="Routing" icon="route" href="/core/routing">
    Laravel-style routing with the `routes!` macro.
  </Card>

  <Card title="Controllers" icon="code" href="/core/controllers">
    Request handlers with dependency injection.
  </Card>

  <Card title="Database" icon="database" href="/database/overview">
    SeaORM with migrations and Model traits.
  </Card>

  <Card title="Inertia.js" icon="browser" href="/frontend/overview">
    Build SPAs without writing an API.
  </Card>
</Columns>

## Tutorials

Learn by building:

<Columns cols={2}>
  <Card title="Build a JSON API" icon="code" href="/tutorials/json-api">
    Create a complete REST API for todos.
  </Card>

  <Card title="Build with Inertia" icon="layer-group" href="/tutorials/inertia-crud">
    Full-stack todo app with React.
  </Card>
</Columns>

## Why Kit?

| Feature                 | Benefit                                  |
| ----------------------- | ---------------------------------------- |
| **Familiar Patterns**   | If you know Laravel, you'll feel at home |
| **Compile-Time Safety** | Catch bugs before they reach production  |
| **Native Performance**  | Rust's speed without the complexity      |
| **Full-Stack**          | Backend + React frontend in one project  |
| **Code Generation**     | CLI tools to scaffold common patterns    |

## Example

A simple controller in Kit:

```rust theme={null}
use kit::{Request, Response, json_response};

pub async fn index(_req: Request) -> Response {
    json_response!({
        "message": "Hello from Kit!"
    })
}
```

With Inertia for a full-stack experience:

```rust theme={null}
use kit::{Request, Response, inertia_response, InertiaProps};

#[derive(InertiaProps)]
pub struct HomeProps {
    pub title: String,
}

pub async fn index(_req: Request) -> Response {
    inertia_response!("Home", HomeProps {
        title: "Welcome to Kit!".to_string(),
    })
}
```

## Get Started

<Card title="Installation" icon="download" href="/quickstart">
  Install Kit and create your first project.
</Card>
