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

# Gateway Examples

> Browse examples and patterns for using ngrok's Gateway including API gateway patterns, multicloud failover, and integrations.

Whether you need an API gateway, multicloud failover, or want to integrate ngrok with your stack, these examples help you compose endpoints and Traffic Policy to orchestrate traffic for common jobs to be done and problems to be solve. Wire it up, secure it, and *ship it already*.

### Fundamentals

<Columns cols={2}>
  <Card title="Front Door Pattern" icon="house" href="/gateway/examples/front-door-pattern">
    The front door pattern is a great way to improve the user experience of your services.
  </Card>

  <Card title="Multiplex" icon="rectangle-history" href="/gateway/examples/multiplex">
    Multiplex is a great way to improve the user experience of your services.
  </Card>

  <Card title="Custom Error Pages" icon="bug" href="/gateway/examples/custom-error-pages">
    Custom error pages are a great way to improve the user experience of your services.
  </Card>
</Columns>

### Gateway shapes

<Columns cols={2}>
  <Card title="PaaS Alternative Gateway" icon="truck" href="/gateway/examples/paas-alternative-gateway">
    Get the polish of managed platforms like Heroku or Vercel while maintaining full control over your infrastructure with load balancing, security, and observability.
  </Card>

  <Card title="Agent-Assisted Gateway" icon="truck" href="/gateway/examples/agent-assisted-gateway">
    Transform your local development environment into a production-ready testbed with real authentication, traffic transformation, and public accessibility for AI-assisted development.
  </Card>

  <Card title="Microservices API Gateway" icon="truck" href="/gateway/examples/microservices-gateway">
    Coordinate ingress traffic for microservices without a full service mesh, using ngrok to handle north-south traffic patterns with authentication and routing.
  </Card>

  <Card title="Webhook Gateway" icon="truck" href="/gateway/examples/webhook-gateway">
    Centralize webhook validation and routing from third-party providers like Stripe, Twilio, and Slack to secure your integrations and eliminate repetitive implementation.
  </Card>

  <Card title="Database Gateway" icon="truck" href="/gateway/examples/database-gateway">
    Securely expose databases to external clients with strict authentication, rate limiting, and query transformation to prevent runaway costs and data leaks.
  </Card>

  <Card title="Ephemeral Workloads" icon="clock" href="/gateway/examples/ephemeral-workloads">
    Expose deploy previews and CI test environments on secure, short-lived URLs with dynamic routing and authentication.
  </Card>
</Columns>

### Other

<Columns cols={2}>
  <Card title="Blue Green Deployments" icon="truck" href="/gateway/examples/blue-green-deployments">
    Blue-green deployments make your release processes safer and less prone to errors.
  </Card>

  <Card title="Canary Deployments" icon="bird" href="/gateway/examples/canary-deployments">
    Canary deployments are a trusted method for rolling out new features or major versions of your services.
  </Card>

  <Card title="IP Restrictions and Basic Auth" icon="lock" href="/gateway/examples/ip-restrictions-basic-auth">
    IP restrictions and basic auth are a great way to improve the security of your services.
  </Card>

  <Card title="Lock Admin Dashboards" icon="lock" href="/gateway/examples/lock-admin-dashboards">
    Lock admin dashboards are a great way to improve the security of your services.
  </Card>

  <Card title="Maintenance Mode" icon="triangle-exclamation" href="/gateway/examples/maintenance-mode">
    Maintenance mode is a great way to improve the user experience of your services.
  </Card>

  <Card title="Minecraft" icon="pickaxe" href="/gateway/examples/minecraft">
    Minecraft is a great way to improve the user experience of your services.
  </Card>

  <Card title="N8N" icon="diagram-subtask" href="/gateway/examples/n8n">
    N8N is a great way to improve the user experience of your services.
  </Card>

  <Card title="Offload Analytics" icon="chart-simple" href="/gateway/examples/offload-analytics">
    Offload analytics are a great way to improve the user experience of your services.
  </Card>

  <Card title="Ollama" icon="paw" href="/gateway/examples/ollama">
    Ollama is a great way to improve the user experience of your services.
  </Card>

  <Card title="Pre-Tier Requests" icon="chart-simple" href="/gateway/examples/pre-tier-requests">
    Pre-tier requests are a great way to improve the user experience of your services.
  </Card>

  <Card title="Rewrite Headers and Redirects" icon="route" href="/gateway/examples/rewrite-headers-redirects">
    Rewrite headers and redirects are a great way to improve the user experience of your services.
  </Card>

  <Card title="Route API App Traffic by User Agent" icon="user" href="/gateway/examples/route-api-app-traffic-user-agent">
    Route API app traffic by user agent is a great way to improve the user experience of your services.
  </Card>

  <Card title="Route by Geography" icon="earth-americas" href="/gateway/examples/route-by-geography">
    Route by geography is a great way to improve the user experience of your services.
  </Card>

  <Card title="Route by OIDC" icon="openid" href="/gateway/examples/route-by-oidc">
    Route by OIDC is a great way to improve the user experience of your services.
  </Card>

  <Card title="Secure Developer Environments" icon="shield-check" href="/gateway/examples/secure-developer-environments">
    Secure developer environments is a great way to improve the user experience of your services.
  </Card>

  <Card title="Validate Requests Identity" icon="id-card" href="/gateway/examples/validate-requests-identity">
    Validate requests identity is a great way to improve the user experience of your services.
  </Card>

  <Card title="Wordpress" icon="wordpress" href="/gateway/examples/wordpress">
    Wordpress is a great way to improve the user experience of your services.
  </Card>
</Columns>
