# HTTP

URL: https://tailrace.dev/docs/reference/http

> Reference for @tailrace/http - shared OpenAI-compat body, SSE, and 422 helpers.



`@tailrace/http` provides the shared OpenAI-compatible pipeline used by Hono, Express, Fastify,
NestJS, and Encore adapters. No host peers.

## Install [#install]

```bash
pnpm add @tailrace/core @tailrace/http
```

## Key exports [#key-exports]

| Export                                            | Description                     |
| ------------------------------------------------- | ------------------------------- |
| `runOpenAiCompatRequestCheck`                     | Check/rewrite chat request body |
| `runOpenAiCompatJsonResponseCheck`                | Check/rewrite completion JSON   |
| `createOpenAiCompatSseTransform`                  | SSE carry-buffer transform      |
| `policyViolationBody` / `POLICY_VIOLATION_STATUS` | 422 body builder                |

Prefer a host package unless you are building a custom adapter:
[Hono](/docs/reference/hono) · [Express](/docs/reference/express) · [Fastify](/docs/reference/fastify) ·
[NestJS](/docs/reference/nestjs) · [Encore](/docs/reference/encore).

Spec: repo `docs/integrations.md` §9.
