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

cifer-sdk

v0.4.1

Published

CIFER SDK - Post-Quantum Cryptographic Infrastructure

Readme

cifer-sdk

The official JavaScript/TypeScript SDK for CIFER (Cryptographic Infrastructure for Encrypted Records).

CIFER provides quantum-resistant encryption for blockchain applications using ML-KEM-768 key encapsulation and AES-GCM symmetric encryption.

Features

  • 🔐 Quantum-resistant encryption via ML-KEM-768 (NIST post-quantum standard)
  • 🌐 Multi-chain support with automatic discovery
  • 💼 Wallet agnostic - works with any EIP-1193 provider (MetaMask, WalletConnect, Coinbase, etc.)
  • 📦 Zero wallet dependencies - bring your own wallet stack (ethers, viem, wagmi, or vanilla JS)
  • 🔄 Transaction intent pattern - you control transaction execution
  • 📁 File encryption with async job system for files of any size
  • ⛓️ On-chain commitments with log-based retrieval and integrity verification
  • 🏃 High-level flows for common operations
  • ✉️ Web2 Support - Use email + password registration with session-based authentication (no wallet needed)

Web3 and Web2 Support

CIFER SDK supports both Web3 and Web2 authentication methods:

  • Web3: Use blockchain wallets (MetaMask, WalletConnect, Coinbase, or any EIP-1193 wallet) for authentication and transaction signing
  • Web2: Use email + password registration with session-based authentication. Perfect for traditional web apps and server-side applications that don't require blockchain wallets

Both authentication methods use the same Blackbox encryption pipeline, ensuring consistent quantum-resistant security regardless of your authentication choice.

Installation

npm install cifer-sdk
# or
yarn add cifer-sdk
# or
pnpm add cifer-sdk

Documentation

Full documentation, guides, and API reference are available at sdk.cifer-security.com.

Examples

| Example | Description | Link | | --- | --- | --- | | Next.js + EIP-1193 | Browser wallet integration with any EIP-1193 provider (MetaMask, WalletConnect, etc.) | View on GitHub | | Node.js + RPC | Server-side usage with direct RPC calls and external transaction executor | View on GitHub | | Wallet Integrations | Multi-wallet demo with MetaMask, Thirdweb, and WalletConnect | View on GitHub | | Secrets Manager | Next.js app for managing secrets — create, delegate, transfer with Thirdweb | View on GitHub | | Web2 Integration | Email + password auth — demonstrates all Web2 SDK functions (no wallet needed) | View on GitHub |

Core Concepts

Discovery

The SDK uses automatic discovery to fetch chain configurations from the blackbox API. You can get supported chains, contract addresses, and RPC URLs for each chain. Chain configurations can be overridden if needed.

Wallet Abstraction

The SDK uses a minimal SignerAdapter interface that works with any wallet. Built-in adapters are provided for EIP-1193 providers, and you can create custom signers for any wallet implementation.

Transaction Intent Pattern

The SDK returns transaction intents instead of executing transactions directly. This gives you full control over transaction execution using your preferred method (ethers, wagmi, viem, or direct RPC calls).

Namespaces

keyManagement

Interact with the SecretsController contract to create secrets, check readiness, manage delegates, transfer ownership, and query secret states.

blackbox

Encrypt and decrypt data via the blackbox API. Supports both small payloads (< 16KB) and large files through an async job system.

commitments

Work with on-chain encrypted commitments. Read metadata, fetch encrypted data from logs, verify integrity, and build store transactions.

flows

High-level orchestrated operations that combine multiple SDK functions for common workflows like creating secrets and waiting for readiness, encrypting and preparing commit transactions, and retrieving and decrypting from logs.

web2

Web2-specific functions for email + password authentication, session management, and all encryption/decryption operations without requiring a blockchain wallet.

Error Handling

All SDK errors extend CiferError with typed subclasses. Errors include programmatic error codes, human-readable messages, and error chaining for debugging.

TypeScript Support

The SDK is written in TypeScript with full type exports and comprehensive JSDoc comments.

License

MIT

Contributing

Contributions are welcome! Please read our contributing guidelines first.

Support