# @xmtp/content-type-primitives

> Primitives for building custom XMTP content types

Latest version **3.0.1** (published 2026-01-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install @xmtp/content-type-primitives
pnpm add @xmtp/content-type-primitives
yarn add @xmtp/content-type-primitives
bun add @xmtp/content-type-primitives
```

## Health

**Score 70/100 (B)** — status: stable.

Positive: has types; esm support; no vulnerabilities; has provenance; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.0.1 |
| Published | 2026-01-29 |
| First published | 2024-06-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 10.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 306 |
| Author | XMTP Labs |
| Maintainers | xmtp-eng-robot, galligan, nick-xmtp |
| Keywords | xmtp, messaging, web3, js, ts, javascript, typescript, content-types |

## Links

- npm: https://www.npmjs.com/package/@xmtp/content-type-primitives
- Repository: https://github.com/xmtp/xmtp-js
- Issues: https://github.com/xmtp/xmtp-js/issues
- npm.io page: https://npm.io/package/@xmtp/content-type-primitives

## Dependencies (1)

- [@xmtp/node-bindings](https://npm.io/package/@xmtp/node-bindings.md) 1.9.1

## 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

- 3.0.1 (latest) — 2026-01-29
- 3.0.0-rc1 (prerelease) — 2025-12-18
- 3.0.0 — 2026-01-06
- 2.0.3 — 2025-11-23
- 2.0.2 — 2025-04-15
- 2.0.1 — 2025-03-21
- 2.0.0 — 2024-12-10
- 1.0.3 — 2024-11-19
- 1.0.2 — 2024-10-17
- 1.0.1 — 2024-06-13
- 1.0.0 — 2024-06-13

## README

# Content type primitives

This package provides primitives for building custom XMTP content types.

## Install the package

```bash
# npm
npm i @xmtp/content-type-primitives

# yarn
yarn add @xmtp/content-type-primitives

# pnpm
pnpm i @xmtp/content-type-primitives
```

## Developing

Run `yarn dev` to build the content type primitives and watch for changes, which will trigger a rebuild.

For more information on contributing to this repository, see our [contributing guidelines](../../CONTRIBUTING.md).

---
_Source: https://npm.io/package/@xmtp/content-type-primitives · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
