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

@msdis/shield

v0.2.0

Published

DIS — Defensive Integration Shield. Central, framework-agnostic cryptographic security platform (KDF, AEAD, vault & file encryption, key management, versioned formats, migrations). Powered by DIS — Defensive Integration Shield.

Readme

DIS — Defensive Integration Shield

Powered by DIS — Defensive Integration Shield

DIS is a central, framework-agnostic cryptographic security platform. It is the single place where encryption, key management, secure data formats, KDFs, versioning, and future migrations live — so that consuming applications (Singra Vault, Singra Premium, and future projects) hold no direct crypto logic and depend only on stable, versioned public APIs.

DIS does not invent cryptography. It composes audited, established primitives:

| Concern | Primitive | Source | | --- | --- | --- | | Password KDF | Argon2id (versioned params) | hash-wasm | | Authenticated encryption | AES-256-GCM (96-bit IV, 128-bit tag) | WebCrypto SubtleCrypto | | Key separation / wrapping | HKDF-SHA-256 + AES-GCM | WebCrypto | | Random | CSPRNG | WebCrypto getRandomValues | | Post-quantum (optional) | ML-KEM-768 hybrid | @noble/post-quantum |

Status

This is the foundation release (0.1.0). The pure, portable primitives (encoding, random, secure memory, KDF, AEAD, vault-entry encryption, key wrapping/rotation, chunked file encryption, integrity, format versioning, migration framework) are implemented and tested. The post-quantum hybrid sharing layer and the application cutover are tracked in docs/migration-plan.md.

Branding

DIS exports a DIS_BRANDING string constant for applications that want to display a "Powered by DIS — Defensive Integration Shield" badge. This is optional; the branding requirements live in docs/licensing.md.

import { DIS_BRANDING } from '@dis/shield';
// 'Powered by DIS — Defensive Integration Shield'

Install

npm install @dis/shield
# Optional, only if you use the post-quantum sharing module:
npm install @noble/post-quantum

Requires Node >=20.19.0 or a browser with WebCrypto.

Usage

import {
  deriveMasterKey,
  encryptVaultEntry,
  decryptVaultEntry,
  createWrappedUserKey,
  rotateEncryptionKeys,
} from '@dis/shield';

const salt = '...'; // base64, stored per account
const kek = await deriveMasterKey(masterPassword, salt); // Argon2id -> AES-GCM key

const sealed = await encryptVaultEntry({ password: 's3cret' }, kek, entryId);
const data = await decryptVaultEntry(sealed, kek, entryId);

Narrow imports are tree-shakeable:

import { encryptBytes } from '@dis/shield/aead';
import { deriveRawKey } from '@dis/shield/kdf';

Modules

| Entry point | Responsibility | | --- | --- | | @dis/shield/core | Errors, encoding, constants, crypto-provider abstraction | | @dis/shield/random | Secure random bytes / UUIDs | | @dis/shield/secure-memory | SecureBuffer for key material | | @dis/shield/kdf | Argon2id, versioned parameters, HKDF strengthening | | @dis/shield/aead | AES-256-GCM encrypt/decrypt with AAD | | @dis/shield/format-versioning | Versioned, prefix-tagged envelopes | | @dis/shield/vault-encryption | Vault-entry sealing (entry-id AAD binding) | | @dis/shield/file-encryption | Chunked attachment encryption + manifests | | @dis/shield/key-management | Content-key wrap / unwrap / rotation | | @dis/shield/post-quantum | ML-KEM-768 + RSA-4096 hybrid key wrapping (sharing / emergency access) | | @dis/shield/integrity | SHA-256, constant-time compare, verification | | @dis/shield/migrations | Ordered, explicit payload migrations |

Security

See docs/ for the architecture overview, threat model, trust-boundary analysis, crypto review, and migration plan. Security properties are only claimed where they are backed by code, tests, or documentation. Anything unverified is labelled not verified.

License

PolyForm Noncommercial 1.0.0 — source-available, free for noncommercial use. Not free for commercial use. See docs/licensing.md for the rationale, trademark/branding rules, and commercial dual-licensing.