# @passport-next/http-types

> Shared, dependency-free HTTP type contracts.

Latest version **0.2.0** (published 2026-08-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @passport-next/http-types
pnpm add @passport-next/http-types
yarn add @passport-next/http-types
bun add @passport-next/http-types
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2026-08-13 |
| First published | 2026-08-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 2.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | adamhathcock, guyellis, brettz9, rwkyqwertee |
| Keywords | connect, http, passport, types |

## Links

- npm: https://www.npmjs.com/package/@passport-next/http-types
- Repository: https://github.com/passport-next/http-types
- Homepage: https://github.com/passport-next/http-types#readme
- Issues: https://github.com/passport-next/http-types/issues
- npm.io page: https://npm.io/package/@passport-next/http-types

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2026-08-13
- 0.1.0 — 2026-08-13

## README

# @passport-next/http-types

Dependency-free, augmentable HTTP type contracts.

Used by Passport Next packages but meant to be agnostic to them.

## Install

```sh
pnpm i @passport-next/http-types
```

## Usage

```ts
import type {
  ConnectRequest,
  Middleware,
} from '@passport-next/http-types';
```

Applications can extend the common request contract with module augmentation:

```ts
import '@passport-next/http-types';

declare module '@passport-next/http-types' {
  interface Request {
    tenantId?: string;
  }
}
```

`Request` is framework-neutral. `ConnectRequest` adds the required, object-based header collection supplied by Node/Connect-style requests.

---
_Source: https://npm.io/package/@passport-next/http-types · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
