npm.io
0.1.7 • Published 2 weeks ago

@atproto/lex-data

Licence
MIT
Version
0.1.7
Deps
3
Size
232 kB
Vulns
0
Weekly
0
Stars
9.6K

@atproto/lex-data

Core types and utilities for the AT Protocol data model: LexValue and friends, CIDs, bytes, 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 and as CBOR by @atproto/lex-cbor.

This is a building block of @atproto/lex, which re-exports it — prefer depending on that package.

License

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

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.

Keywords