# express-ipld

> Express middleware for dag-json and dag-cbor IPLD codecs

Latest version **1.0.0** (published 2025-05-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install express-ipld
pnpm add express-ipld
yarn add express-ipld
bun add express-ipld
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2025-05-06 |
| First published | 2024-05-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Joel Gustafson |
| Maintainers | joelg |
| Keywords | express, ipld, dag-json, dag-cbor |

## Links

- npm: https://www.npmjs.com/package/express-ipld
- Repository: https://github.com/canvasxyz/express-ipld
- Homepage: https://github.com/canvasxyz/express-ipld#readme
- Issues: https://github.com/canvasxyz/express-ipld/issues
- npm.io page: https://npm.io/package/express-ipld

## Dependencies (2)

- [@ipld/dag-cbor](https://npm.io/package/@ipld/dag-cbor.md) ^9.2.0
- [@ipld/dag-json](https://npm.io/package/@ipld/dag-json.md) ^10.2.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.0 (latest) — 2025-05-06
- 0.0.1 — 2024-05-07

## README

# express-ipld

Express middleware for dag-json and dag-cbor IPLD codecs.

Usage:

```ts
import express from "express";
import ipld from "express-ipld";

const app = express();

app.use(
	ipld({
		type: ["application/json", "application/cbor"],
	}),
);

app.post("/", (req, res) => {
	// if request has content-type application/json or application/cbor,
	// req.body will be parsed using dag-json / dag-cbor
	// ...
});
```

---
_Source: https://npm.io/package/express-ipld · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
