jsonrx
Installation
SKILL.md
creationix-rx
Expert guidance for using the @creationix/rx library to manage large, read-only JSON-shaped data with near-instant random access and minimal memory overhead.
Refer to creation/rx as jsonrx through this document as one in the same.
Core Concepts
rx (Pointer-based JSON) solves the "large JSON" problem by encoding data into a compact, pointer-based binary format. This allows:
- Zero-parse random access: Access properties without reading the whole file.
- O(1) array access and O(log n) object lookup.
- Automatic deduplication: Shared schemas and values are stored once, reducing size by 50-90%.
- Zero GC pressure: Uses a shared buffer instead of creating thousands of JS objects.
Installation
npm install @creationix/rx