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 🙏

© 2026 – Pkg Stats / Ryan Hefner

scon-wasm

v1.0.0

Published

SCON — Schema-Compact Object Notation: WASM-accelerated encode/decode for browser and Node.js

Readme

scon-wasm

SCON — Schema-Compact Object Notation: WASM module

Rust tape decoder compiled to WebAssembly for browser and Node.js. Used automatically by scon-notation when available.

npm License: MIT

With scon-notation (recommended)

npm install scon-notation

scon-notation includes scon-wasm as optional dependency — WASM loads automatically.

Standalone in browser (no npm, no build)

<script type="module">
import init, {
  scon_encode,
  scon_to_json,
  scon_minify,
  scon_expand
} from 'https://cdn.jsdelivr.net/npm/scon-wasm@1/scon_wasm.js';

await init();

// Encode JS object to SCON string
const scon = scon_encode({ name: 'test', version: 1 });
console.log(scon);

// Decode SCON string to JS object
const obj = JSON.parse(scon_to_json(scon));
console.log(obj);

// Minify / Expand
const mini = scon_minify(scon);
const expanded = scon_expand(mini, 1);
</script>

Copy, paste, works. No build step, no package manager.

Standalone in Node.js

import init, { scon_encode, scon_to_json } from 'scon-wasm';
await init();

const scon = scon_encode({ users: [{ name: 'Alice' }, { name: 'Bob' }] });
const obj = JSON.parse(scon_to_json(scon));

API

| Function | Description | |----------|-------------| | scon_encode(obj) | JS object to SCON string | | scon_encode_indent(obj, n) | JS object to SCON string with custom indent | | scon_to_json(scon) | SCON string to JSON string (parse with JSON.parse) | | scon_minify(scon) | SCON string to minified single-line | | scon_expand(mini, indent) | Minified SCON to indented format |

Performance

The WASM module uses the Rust single-pass tape decoder — same engine that beats simd-json on 2/3 benchmark datasets.

Full methodology: DOI 10.5281/zenodo.14733092

Also available

License

MIT