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

# Integration Overview

> Choose the right ApiTraffic integration for your framework

## Supported Frameworks

ApiTraffic provides native integrations for popular Node.js frameworks. Each integration is designed to work seamlessly with your existing application architecture.

<CardGroup cols={2}>
  <Card title="Express.js" icon="node-js" href="/integrations/express">
    The most popular Node.js web framework
  </Card>

  <Card title="Fastify" icon="bolt" href="/integrations/fastify">
    Fast and low overhead web framework
  </Card>

  <Card title="Hapi.js" icon="server" href="/integrations/hapi">
    Rich framework for building applications and services
  </Card>

  <Card title="Koa.js" icon="leaf" href="/integrations/koa">
    Next generation web framework for Node.js
  </Card>
</CardGroup>

## CMS Integrations

<Card title="Strapi" icon="database" href="/integrations/strapi">
  Open-source headless CMS integration
</Card>

## Installation

All integrations are available via npm:

<CodeGroup>
  ```bash Express theme={null}
  npm install @apitraffic/express
  ```

  ```bash Fastify theme={null}
  npm install @apitraffic/fastify
  ```

  ```bash Hapi theme={null}
  npm install @apitraffic/hapi
  ```

  ```bash Koa theme={null}
  npm install @apitraffic/koa
  ```
</CodeGroup>

## Common Configuration

All integrations share the same configuration options:

```javascript theme={null}
{
  token: 'your-api-token',           // Required: Your ApiTraffic API token
  bucket: 'your-bucket-id',          // Required: Your bucket identifier
  ingestHost: 'ingest.apitraffic.io', // Optional: Custom ingest endpoint
  apiHost: 'api.apitraffic.io',       // Optional: Custom API endpoint
  interceptOutbound: true,            // Optional: Monitor outbound requests
  debug: false                        // Optional: Enable debug logging
}
```

## Environment Variables

You can also configure using environment variables:

```bash theme={null}
API_TRAFFIC_TOKEN=your-api-token
API_TRAFFIC_BUCKET=your-bucket-id
API_TRAFFIC_INGEST_HOST=ingest.apitraffic.io
API_TRAFFIC_API_HOST=api.apitraffic.io
API_TRAFFIC_INTERCEPT_OUTBOUND=true
API_TRAFFIC_DEBUG=false
```

## Features

All integrations provide:

* **Request/Response Monitoring** - Automatic capture of HTTP requests and responses
* **Outbound Request Tracking** - Monitor external API calls your application makes
* **Error Tracking** - Capture and analyze application errors
* **Performance Metrics** - Response times, throughput, and performance insights
* **Custom Tagging** - Add custom metadata to requests for better organization
* **Data Redaction** - Automatically redact sensitive information

## Getting Started

1. Choose your framework integration
2. Install the package
3. Add the middleware/plugin to your application
4. Configure with your API credentials
5. Start monitoring your API traffic

<Note>
  Need help choosing? Express.js is the most widely used and has the most comprehensive documentation and examples.
</Note>
