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

semcon-js

v0.4.0

Published

JavaScript/TypeScript library to interact with Semantic Containers (successor of vaultifier)

Readme

Semcon-JS

A JavaScript/TypeScript library to interact with Semantic Containers — the successor of vaultifier.

  • Node ≥ 22 (developed and tested with Node 24), works in browsers as well
  • CommonJS build, usable with both require() and import
  • Minimal dependencies: canonicalize (RFC 8785) and oidc-client
  • Built-in crypto module for DRI/hashlink calculation — no dependency on the unmaintained hashlink/esm packages anymore

Install

npm install semcon-js

Example

import { Semcon } from 'semcon-js';

async function main() {
  // connect data container
  const semcon = new Semcon('https://playground2.data-container.net');
  await semcon.initialize();

  // check if the connection is valid
  const isValid = await semcon.isValid();
  console.log(`connection is ${isValid ? 'valid' : 'invalid'}`);

  // read a record
  const item = await semcon.getItem({ id: 110 });
  console.log('data:', item);
}

main().catch(console.error);

Crypto / DRI calculation

The crypto module provides canonicalization and hashlink (DRI) generation, byte-identical to what vaultifier produced (verified by golden-vector tests):

import { crypto } from 'semcon-js';

const canonical = crypto.canonicalize({ b: 1, a: 'test' });
// -> '{"a":"test","b":1}'

const dri = await crypto.generateHashlink({ b: 1, a: 'test' });
// -> 'zQmeRZcydaJnWLqbkhpE5eYJS2xZa47WAyqAkET47tXNdnx'

Migrating from vaultifier

All Vault* names are available as deprecated aliases (VaultifierSemcon, VaultMinMetaSemconMinMeta, VaultPostItemSemconPostItem, ...), so existing code keeps compiling. The aliases will be removed in a future major version — please migrate to the Semcon* names.

Notable differences to vaultifier:

  • Network calls use native fetch (no axios). post()/put() JSON-encode the passed data themselves — pass plain objects, not pre-stringified JSON.
  • The E2E-encryption helpers (encrypt/decrypt, libsodium) were not carried over.
  • generateHashlink(data) no longer accepts the unused urls/meta parameters (they never influenced the returned value).

Development

npm install
npm run build      # tsc -> dist/
npm test           # vitest (includes DRI golden-vector tests)

License

Apache 2.0 License - OwnYourData.eu