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

fangorn-sdk

v0.0.3

Published

A zero-knowledge conditional access control framework

Readme

Fangorn

Intent-Bound Data.

This is currently a pragmatic initial version of our vision. Expect this repo to undergo radical changes over the coming months.

Usage

Fangorn allows wallets to create private data "vaults" that are password protected. Data can be accessed by providing a zero-knowledge proof, limiting information published onchain about which data was accessed. While this initial version leaks the user address and the id of the vault, it hides the content identifier of actual data accessed.

Setup

To build this project, navigate to the root directory and run pnpm i.

Encryption

Fangorn allows encrypted data to be added to a 'vault' protected by a user-defined password. First, a user creates a vault

// initialize a new fangorn client against the default testnet configuration (base sepolia)
const fangorn = await Fangorn.init(delegatorAccount, jwt, gateway);

// create a new vault bound to a password
const vaultName = "myvault-001";
const password = "test";
const vaultId = await fangorn.createVault(vaultName, password);

// upload files to the vault
let filedata = [
	{ tag: "test0", data: "content0", extension: ".txt", fileType: "text/plain" },
	{ tag: "test1", data: "content1", extension: ".png", fileType: "image/png" },
];
await fangorn.upload(vaultId, filedata);

// easily add more files to the vault
let filedata = [
	{ tag: "test2", data: "content2", extension: ".mp4", fileType: "video/mp4" },
];
await fangorn.upload(vaultId, filedata);

// overwrite a vault
let filedata = [
	{
		tag: "test3",
		data: "content3",
		extension: ".js",
		fileType: "text/javascript",
	},
];
await fangorn.upload(vaultId, filedata, true);

Decryption

Decryption works by providing a vault id, tag, and the valid password to unlock the data. Proof generation is handled by the Fangorn SDK.

// The tag associated with the data we want to decrypt
const taxTag = "tax-2025";
const password = "test";

const fangornDelegatee = await Fangorn.init(delegateeAccount, jwt, gateway);
// try to recover plaintext
const plaintext = await fangornDelegatee.decryptFile(vaultId, taxTag, password);

console.log("we got the plaintext " + plaintext);

Testing

Setup

The e2e test suite requires various environment variables that must be manually configured.

Testnet tokens (ETH on Base Sepolia) can be obtained from Coinbase's official faucet https://portal.cdp.coinbase.com/

  1. cp .env.example .env
  2. Fill in the ENVs:
    • DELEGATOR_ETH_PRIVATE_KEY: The private key of the delegator account
      • Needs to have a balance of test ETH to send transactions
    • DELEGATEE_ETH_PRIVATE_KEY: The private key of the delegatee account
      • Needs to have a balance of test ETH to send transactions
    • CHAIN_RPC_URL: The RPC URL of the ERC20 chain
      • Expected to be Base sepolia testnet: https://base-sepolia-public.nodies.app
      • It does not currently support other networks (would require modifying the lit action, which we will do in the future)
    • PINATA_JWT: The JWT for Pinata
      • Can be obtained from: https://app.pinata.cloud/developers/api-keys
    • PINATA_GATEWAY: The gateway for Pinata
      • Can use your own gateway or the default 'https://gateway.pinata.cloud'
    • LIT_ACTION_CID: The CID of the lit action for access control checks
      • Can be deployed by the test script, else use "QmcDkeo7YnJbuyYnXfxcnB65UCkjFhLDG5qa3hknMmrDmQ"
    • VERIFIER_CONTRACT_ADDR: The Barretenberg verifier contract address
      • Can be deployed by the test script, else use "0xb88e05a06bb2a2a424c1740515b5a46c0d181639"
    • ZK_GATE_ADDR: The ZkGate.sol contract address
      • Can be deployed by the test script, else use "0xec2b41e50ca1b9fc3262b9fd6ad9744c64f135a6"

Running the tests

pnpm test

The tests will:

  1. Build and deploy the solidity verifier to base sepolia (unless it is defined in .env)
  2. Upload the Lit Action to IPFS (unless it is defined in .env)