# @atproto/lex-data

> Core utilities for AT Lexicons

Latest version **0.1.7** (published 2026-08-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @atproto/lex-data
pnpm add @atproto/lex-data
yarn add @atproto/lex-data
bun add @atproto/lex-data
```

## Health

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

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

Warnings: low downloads; no types; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.1.7 |
| Published | 2026-08-03 |
| First published | 2025-11-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=22 |
| Dependencies | 3 |
| Unpacked size | 231.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 9631 |
| Maintainers | dholms, pfrazee, devinivy, estrattonbailey, matthieu-bluesky |
| Keywords | atproto, lexicon, utilities |

## Links

- npm: https://www.npmjs.com/package/@atproto/lex-data
- Repository: https://github.com/bluesky-social/atproto
- Homepage: https://atproto.com
- npm.io page: https://npm.io/package/@atproto/lex-data

## Dependencies (3)

- [tslib](https://npm.io/package/tslib.md) ^2.8.1
- [multiformats](https://npm.io/package/multiformats.md) ^13.0.0
- [unicode-segmenter](https://npm.io/package/unicode-segmenter.md) ^0.14.0

## Alternatives

- [@fortawesome/react-fontawesome](https://npm.io/package/@fortawesome/react-fontawesome.md) — 2.2M weekly downloads
- [roboto-fontface](https://npm.io/package/roboto-fontface.md) — 196.0K weekly downloads
- [@react-native-vector-icons/common](https://npm.io/package/@react-native-vector-icons/common.md) — 150.4K weekly downloads
- [@procore/core-icons](https://npm.io/package/@procore/core-icons.md) — 4.6K weekly downloads
- [@react-md/material-icons](https://npm.io/package/@react-md/material-icons.md) — 1.6K weekly downloads

## Recent versions

- 0.1.7 (latest) — 2026-08-03
- 0.0.0-spaces-alpha-20260913191958 (alpha) — 2026-09-13
- 0.1.0-next.0 (next) — 2026-05-18
- 0.0.0-spaces-alpha-20260910230440 — 2026-09-10
- 0.0.0-spaces-alpha-20260910223605 — 2026-09-10
- 0.0.0-spaces-alpha-20260910222405 — 2026-09-10
- 0.0.0-spaces-alpha-20260910214032 — 2026-09-10
- 0.1.6 — 2026-07-31
- 0.1.5 — 2026-07-07
- 0.1.4 — 2026-07-01
- 0.1.3 — 2026-06-25
- 0.1.2 — 2026-06-16
- 0.1.1 — 2026-05-20
- 0.1.0 — 2026-05-19
- 0.0.15 — 2026-04-09
- … 15 more at https://npm.io/package/@atproto/lex-data/versions

## README

# @atproto/lex-data

- [Changelog](./CHANGELOG.md)
- [`@atproto/lex` documentation](https://github.com/bluesky-social/atproto/blob/main/packages/lex/lex/README.md)

Core types and utilities for the AT Protocol [data model](https://atproto.com/specs/data-model): `LexValue` and friends, CIDs, bytes, [blob](https://atproto.com/specs/blob) references, and string-length helpers.

The data model extends JSON with two additional structures — CIDs (content-addressed links) and raw bytes — which are encoded as JSON by [`@atproto/lex-json`](https://github.com/bluesky-social/atproto/tree/main/packages/lex/lex-json) and as CBOR by [`@atproto/lex-cbor`](https://github.com/bluesky-social/atproto/tree/main/packages/lex/lex-cbor).

This is a building block of [`@atproto/lex`](https://github.com/bluesky-social/atproto/tree/main/packages/lex/lex), which re-exports it — prefer depending on that package.

## License

This project is dual-licensed under MIT and Apache 2.0 terms:

- MIT license ([LICENSE-MIT.txt](https://github.com/bluesky-social/atproto/blob/main/LICENSE-MIT.txt) or http://opensource.org/licenses/MIT)
- Apache License, Version 2.0, ([LICENSE-APACHE.txt](https://github.com/bluesky-social/atproto/blob/main/LICENSE-APACHE.txt) or http://www.apache.org/licenses/LICENSE-2.0)

Downstream projects and end users may chose either license individually, or both together, at their discretion. The motivation for this dual-licensing is the additional software patent assurance provided by Apache 2.0.

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