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

@veil-protocol/sdk

v0.2.0

Published

Complete privacy infrastructure SDK for Solana - Identity, shielded balances, private voting, stealth multisig, private staking

Readme

@veil-protocol/sdk

Complete privacy infrastructure SDK for Solana. Build privacy-first applications with ZK proofs, shielded balances, and private transactions.

Installation

npm install @veil-protocol/sdk @solana/web3.js

Features

| Module | Description | Cryptography | |--------|-------------|--------------| | Identity | ZK authentication, no PII on-chain | Poseidon hash | | Shielded | Hidden balances & amounts | Pedersen commitments | | Recovery | Social recovery with hidden guardians | Shamir secret sharing | | Transfer | Private transactions | Commitment schemes | | DEX | Dark pool swaps | Order book privacy | | Tokens | Confidential token balances | Balance encryption |

Quick Start

import { VeilIdentity, ShieldedBalance, RecoveryManager } from '@veil-protocol/sdk';
import { Connection, Keypair } from '@solana/web3.js';

const connection = new Connection('https://api.devnet.solana.com');
const wallet = Keypair.generate();

// 1. Create private identity (no email/password on-chain)
const identity = new VeilIdentity(connection);
const { commitment, proof } = await identity.register(wallet, 'secret-passphrase');

// 2. Shield your balance
const shielded = new ShieldedBalance(connection);
const hiddenBalance = shielded.createCommitment(1000000, wallet.publicKey);

// 3. Set up social recovery (guardians never know they're guardians)
const recovery = new RecoveryManager(connection);
const shares = await recovery.setupRecovery(wallet, [
  guardian1.publicKey,
  guardian2.publicKey,
  guardian3.publicKey,
], 2); // 2-of-3 threshold

Modular Imports

// Import only what you need
import { VeilIdentity } from '@veil-protocol/sdk/identity';
import { ShieldedBalance } from '@veil-protocol/sdk/shielded';
import { RecoveryManager } from '@veil-protocol/sdk/recovery';
import { PrivateTransfer } from '@veil-protocol/sdk/transfer';
import { DarkPool } from '@veil-protocol/sdk/dex';
import { ConfidentialToken } from '@veil-protocol/sdk/tokens';

Privacy Guarantees

| What's Hidden | How | |---------------|-----| | Your identity | Poseidon hash of credentials | | Account balances | Pedersen commitments | | Recovery guardians | Shamir shares, guardians unaware | | Transaction amounts | Commitment schemes | | Voting choices | Commit-reveal pattern |

Network Configuration

// Devnet for development
const connection = new Connection('https://api.devnet.solana.com');

// Mainnet for production
const connection = new Connection('https://api.mainnet-beta.solana.com');

// With Helius RPC (recommended)
const connection = new Connection('https://devnet.helius-rpc.com/?api-key=YOUR_KEY');

ShadowPay Integration

For mainnet private payments, use with @radr/shadowwire:

import { ShadowWire } from '@radr/shadowwire';

// ShadowPay runs on mainnet for real private transfers
const shadowwire = new ShadowWire({
  rpc: 'https://api.mainnet-beta.solana.com',
});

CLI Scaffolding

Create a new privacy-first project:

npx create-veil-app my-app

API Reference

VeilIdentity

class VeilIdentity {
  register(wallet: Keypair, passphrase: string): Promise<{ commitment: Uint8Array, proof: Uint8Array }>;
  verify(commitment: Uint8Array, proof: Uint8Array): Promise<boolean>;
  generateProof(passphrase: string): Uint8Array;
}

ShieldedBalance

class ShieldedBalance {
  createCommitment(amount: number, owner: PublicKey): Commitment;
  verifyCommitment(commitment: Commitment, amount: number): boolean;
  addCommitments(a: Commitment, b: Commitment): Commitment;
}

RecoveryManager

class RecoveryManager {
  setupRecovery(wallet: Keypair, guardians: PublicKey[], threshold: number): Promise<Share[]>;
  initiateRecovery(guardianShares: Share[]): Promise<Keypair>;
}

License

MIT © Veil Protocol