> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/trailbaseio/trailbase/llms.txt
> Use this file to discover all available pages before exploring further.

# TrailBase

> An open, sub-millisecond, single-executable Firebase alternative with type-safe APIs, built-in WebAssembly runtime, realtime subscriptions, auth, and admin UI.

<div style={{ backgroundColor: '#F3F9FC', padding: '48px 0', marginTop: '-32px', marginLeft: '-32px', marginRight: '-32px' }}>
  <div style={{ maxWidth: '1200px', margin: '0 auto', padding: '0 32px' }}>
    <div style={{ textAlign: 'center', marginBottom: '48px' }}>
      <h1 style={{ fontSize: '48px', fontWeight: 700, color: '#1A1A1A', marginBottom: '16px' }}>
        Build faster with TrailBase
      </h1>

      <p style={{ fontSize: '20px', color: '#1A1A1A', marginBottom: '32px' }}>
        A single-executable backend for your mobile, web, or desktop application with sub-millisecond performance
      </p>

      <div style={{ display: 'flex', gap: '16px', justifyContent: 'center', flexWrap: 'wrap' }}>
        <a
          href="/quickstart"
          style={{ 
      backgroundColor: '#006ba6', 
      color: '#ffffff', 
      padding: '12px 32px', 
      borderRadius: '24px', 
      textDecoration: 'none',
      fontWeight: 600,
      display: 'inline-block'
    }}
        >
          Get Started
        </a>

        <a
          href="https://demo.trailbase.io/_/admin"
          style={{ 
      backgroundColor: 'transparent', 
      color: '#000000', 
      padding: '12px 32px', 
      borderRadius: '24px', 
      textDecoration: 'none',
      fontWeight: 600,
      border: '2px solid #000000',
      display: 'inline-block'
    }}
        >
          Try Demo
        </a>
      </div>
    </div>
  </div>
</div>

## Why TrailBase?

TrailBase simplifies backend development by combining essential services into a single, performant executable. No more managing separate services for auth, database, APIs, and realtime updates.

<CardGroup cols={3}>
  <Card title="Sub-millisecond Performance" icon="gauge-high">
    Built on Rust, Axum, and SQLite for blazing fast response times that eliminate the need for dedicated caches
  </Card>

  <Card title="Type-Safe APIs" icon="shield-check">
    Automatically generated REST APIs with JSON Schema validation and TypeScript types
  </Card>

  <Card title="Realtime Subscriptions" icon="bolt">
    WebSocket-based realtime data sync for live updates across all connected clients
  </Card>

  <Card title="Built-in Authentication" icon="lock">
    Complete auth system with OAuth providers, user management, and session handling
  </Card>

  <Card title="WebAssembly Runtime" icon="microchip">
    Extend functionality with custom endpoints and server-side rendering using WASM
  </Card>

  <Card title="Admin Dashboard" icon="chart-line">
    Visual interface for managing data, users, and configuration without writing code
  </Card>
</CardGroup>

## Quick Start

Get TrailBase running in under a minute:

<CodeGroup>
  ```bash Linux & MacOS theme={null}
  curl -sSL https://trailbase.io/install.sh | bash
  ```

  ```bash Windows theme={null}
  iwr https://trailbase.io/install.ps1 | iex
  ```

  ```bash Docker theme={null}
  docker run -p 4000:4000 trailbase/trailbase /app/trail run
  ```
</CodeGroup>

Then start the server:

```bash theme={null}
trail run
```

Visit [http://localhost:4000/\_/admin/](http://localhost:4000/_/admin/) to access the admin dashboard.

## Key Features

<CardGroup cols={2}>
  <Card title="Single Executable" icon="cube" href="/concepts/architecture">
    Deploy a complete backend as one binary with no dependencies or shared library issues
  </Card>

  <Card title="SQLite Database" icon="database" href="/concepts/data-model">
    Powerful relational database with vector search and geospatial support built-in
  </Card>

  <Card title="8 Client SDKs" icon="code" href="/sdks/typescript">
    Official libraries for TypeScript, Dart, Python, Rust, C#, Swift, Kotlin, and Go
  </Card>

  <Card title="Database Migrations" icon="arrow-up-right-dots" href="/guides/migrations">
    Version-controlled schema changes with automatic validation and rollback support
  </Card>

  <Card title="File Uploads" icon="cloud-arrow-up" href="/guides/file-uploads">
    Built-in file upload handling with object storage integration
  </Card>

  <Card title="Background Jobs" icon="clock" href="/advanced/jobs-scheduler">
    Schedule and run background tasks with cron-like syntax
  </Card>
</CardGroup>

## Use Cases

TrailBase is perfect for building:

* **Mobile Apps**: Native iOS and Android apps with Flutter or Swift/Kotlin
* **Web Applications**: Full-stack web apps with React, Vue, or vanilla JavaScript
* **Desktop Applications**: Cross-platform desktop apps with Electron or Tauri
* **Prototypes**: Rapid MVP development with minimal setup
* **Internal Tools**: Admin dashboards and internal services
* **IoT Applications**: Edge computing with minimal resource footprint

## Community & Support

<CardGroup cols={2}>
  <Card title="Documentation" icon="book-open" href="/introduction">
    Comprehensive guides and API reference
  </Card>

  <Card title="GitHub" icon="github" href="https://github.com/trailbaseio/trailbase">
    Star us on GitHub and contribute to the project
  </Card>

  <Card title="FAQ" icon="circle-question" href="/resources/faq">
    Common questions and answers
  </Card>

  <Card title="Benchmarks" icon="chart-bar" href="/resources/benchmarks">
    Performance comparisons with other backends
  </Card>
</CardGroup>
