import { Cards, Card } from 'fumadocs-ui/components/card';
import { Callout } from 'fumadocs-ui/components/callout';

QueryPilot is a SQL proxy built for modern workloads. It accelerates query processing with automatic caching and enforces policies on agentic traffic with Guard, keeping your database focused on serving your application. Applications keep their existing drivers, SQL, and credentials; they change only the host and port they connect to.

<Callout type="info">
  **GA v1 ships the Router and the Accelerator.** Guard is an upcoming feature; its documentation is included here ahead of availability.
</Callout>

<Cards>
  <Card title="What is QueryPilot?" href="/querypilot/what-is-querypilot" description="The four components, how they compose, and what is supported in GA v1." />

  <Card title="Getting started" href="/querypilot/getting-started" description="Run the Router from the Docker image and proxy your first query." />

  <Card title="Deployment" href="/querypilot/deployment" description="Docker Compose, Kubernetes, and Helm deployments." />

  <Card title="Tutorials" href="/demos/querypilot/read-write-split" description="Step-by-step guides for read/write splitting, caching, and policy enforcement." />
</Cards>

## Components

<Cards>
  <Card title="Router" href="/querypilot/router" description="The SQL proxy: wire protocols, connection pooling, query routing and translation, plugin host." />

  <Card title="Accelerator" href="/querypilot/accelerator" description="Discovers hot queries and manages Readyset caches and the rules that route traffic to them." />

  <Card title="Guard" href="/querypilot/guard" description="Upcoming. Policy enforcement for every query: trust levels, YAML policies, and a full audit trail." />
</Cards>

## Reference

<Cards>
  <Card title="Configuration" href="/querypilot/reference/router-configuration" description="Every key in querypilot.toml." />

  <Card title="APIs" href="/querypilot/reference/admin-api" description="The admin REST API and plugin APIs." />

  <Card title="Metrics" href="/querypilot/reference/metrics" description="All Prometheus series exported by the platform." />

  <Card title="Operations" href="/querypilot/operations" description="Config reload, graceful shutdown, monitoring, and runbook entries." />
</Cards>
