npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@izumi-framework/json-sick

v0.5.12

Published

SICK (Structured Interchange and Compression Kit) - High-performance binary JSON encoding format

Downloads

328

Readme

@izumi-framework/json-sick

SICK - High-performance binary storage for JSON-like data structures.

Visit the SICK GitHub repository for more information.

Installation

npm install @izumi-framework/json-sick

Usage

const {
  decodeSickUint8Array,
  encodeObjToSickUint8Array,
  encodeObjsToSickUint8Array,
  encodeJSONStringsToSickUint8Array,
  encodeJSONBytesToSickUint8Array
} = require('@izumi-framework/json-sick');

// Encode a single object
const encoded = encodeObjToSickUint8Array("data", { a: 2, b: { c: 3 } });

// Encode multiple objects
const multiEncoded = encodeObjsToSickUint8Array({
  data: { a: 2 },
  data1: { b: 3 }
});

// Decode
const decoded = decodeSickUint8Array(encoded);
console.log(decoded); // { data: { a: 2, b: { c: 3 } } }

One-liner:

npm install @izumi-framework/json-sick && node -e "
  const { encodeObjToSickUint8Array, decodeSickUint8Array } = require('@izumi-framework/json-sick');
  const encoded = encodeObjToSickUint8Array('data', { a: 2, b: { c: 3 } });
  console.log(decodeSickUint8Array(encoded));
  "

API

decodeSickUint8Array(uint8Array: Uint8Array): {[key: string]: any}

Accepts an instance of Uint8Array, returns a dictionary where keys are root names and values are JSON.

encodeObjToSickUint8Array(rootName: string, obj: any): Uint8Array

Accepts a rootName and a JS object (all values should be valid JSON), returns a SICK-encoded binary Uint8Array.

encodeObjsToSickUint8Array(objs: {[key: string]: any}): Uint8Array

Accepts dictionary where keys are root names and values are JS objects (all values should be valid JSON), returns a SICK-encoded binary Uint8Array.

encodeJSONStringsToSickUint8Array(objs: {[key: string]: string}): Uint8Array

Accepts dictionary where keys are root names and values are strings that parse into a valid JSON object (e.g. results of JSON.stringify), returns a SICK-encoded binary Uint8Array.

encodeJSONBytesToSickUint8Array(objs: {[key: string]: Uint8Array}): Uint8Array

Accepts dictionary where keys are root names and values are Uint8Arrays containing valid UTF-8 text that parse into JSON, returns a SICK-encoded binary Uint8Array.

sickCursorFromUint8Array(uint8Array: Uint8Array, rootId: string): TopCursor

Accepts an instance of Uint8Array and the rootId, returns a cursor to navigate through the structure.

ebaReaderFromUint8Array(uint8Array: Uint8Array, rootId: string): EBAReader

Accepts an instance of Uint8Array and the rootId, returns a reader, which has query method, with jq like requests.

License

BSD-2-Clause