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

@umis/core

v0.1.0-alpha.1

Published

UMIS profile, types, crypto providers, JWS, SD-JWT VC codec, frames and events.

Readme

@umis/core

@umis/core is the base that every other UMIS SDK package builds on, so you install it with any of them. It holds the constants and types of the UMIS profile v1, the crypto providers, compact JWS, the SD-JWT VC codec, the authority and delegation rules, QR and BLE frames, presentation requests and the decision journal. It runs in browsers, React Native and Node and imports no Node built-in.

npm install @umis/core

| Area | Exports | | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Profile | PROFILE_ID, VCT, TYP, ALG, DISCLOSABLE_CLAIMS, CHANNELS, RISK_CLASSES, CLASS_CAPS, LIMITS, FRAME_PREFIX, UMIS_BLE_V1 and the types of the profile | | Errors | REASON_CODES, isReasonCode and UmisError, the only error the SDK throws | | Crypto | webCryptoProvider, getDefaultCrypto, setDefaultCrypto, randomBytes, randomId, plus nobleCryptoProvider and the test-only keyFromSeed from @umis/core/noble | | Keys | generateSigner, importSigner, webCryptoSigner, asEcPublicJwk, jwkThumbprint for RFC 7638 thumbprints, keyFingerprint, publicJwkEquals | | JWS | signJws, verifyJws, decodeJwsUnverified | | SD-JWT VC | issueCredential, presentCredential, parseSdJwt, verifyIssuerSignature, verifyKeyBinding, decodeCredential, checkCredentialTimes | | Authority | matchAuthority, checkDelegation, isNarrowerItem, periodWindow, ledgerKey | | Frames and requests | encodeFrame and decodeFrame for QR text, encodeFrameBytes and decodeFrameBytes for BLE, frameKindOf, classifyQr, signPresentationRequest, decodePresentationRequest | | Decision journal | createMemoryJournal, verifyJournal, chainHash, canonicalJson for the JSON Canonicalization Scheme of RFC 8785, signEvent, verifyEvent | | Bytes and URIs | Base45 of RFC 9285, base64url, hex, varint, UTF-8, parseQuery, formEncode, splitUri, wellKnownUrl |

Crypto providers

Every signature and hash goes through a CryptoProvider. By default this is the runtime’s WebCrypto. For runtimes without WebCrypto, such as Expo Go, the @umis/core/noble entry offers nobleCryptoProvider. It is built on @noble/curves and @noble/hashes. Make it the default once at start-up with setDefaultCrypto(nobleCryptoProvider({ getRandomValues })), or let setupCrypto of @umis/wallet-rn choose. Both providers accept ES256 signatures with s in either half of the curve order, so never derive an identifier from signature bytes. Invariant I-15 of the security model explains why.

import { generateSigner, signJws, verifyJws } from '@umis/core';

const signer = await generateSigner({ kid: 'station-1' });
const token = await signJws({ header: { typ: 'umis-event+jwt' }, payload: { hello: 'world' }, signer });
const { payload } = await verifyJws(token, { typ: 'umis-event+jwt', key: signer.publicJwk });

verifyJws accepts only ES256 and only the exact typ you pass. It refuses crit and any header member it does not know.

Frames

A QR frame starts with FRAME_PREFIX[kind], continues with the Base45 text of the deflated container and ends with a . terminator. It holds at most 4 296 characters. Over BLE the same container travels as bytes after a one-byte kind. Decoders refuse a longer QR text before decoding it, and they cap the inflated size at 16 384 bytes. The UMIS profile v1 specifies the format.

See also the UMIS SDK, the profile, the security model and the API reference.

Licence

Copyright 2026 Ishtvan Komonii. Licensed under the Apache License 2.0.