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

@parad0x_labs/liquefy-receipts

v0.1.0

Published

Columnar compression + bilateral netting + AES-256-GCM for x402 receipt batches. 1000 receipts → 1 on-chain anchor tx. Used in Parad0x Labs DNA x402.

Downloads

184

Readme

@dna-x402/liquefy-receipts

Columnar compression + bilateral netting + AES-256-GCM encryption for x402 AI agent payment receipt batches.

1,000 receipts → 1 on-chain Solana tx. 62× compression. Private amounts.

Part of the DNA x402 stack — the x402 payment rail for AI agents on Solana.

Install

npm install @dna-x402/liquefy-receipts

Quick start

import {
  compressReceipts,
  decompressReceipts,
  netReceipts,
  buildReceiptRoot,
  verifyReceiptInBatch,
  buildAnchorIxData,
  generateKey,
  encryptBlob,
} from "@dna-x402/liquefy-receipts";

// Net bilateral flows (1000 receipts → a handful of settlements)
const nets = netReceipts(receipts);

// Compress 62× (columnar, based on Liquefy Columnar Gun v1)
const compressed = compressReceipts(receipts);

// Encrypt (AES-256-GCM — only parties see amounts)
const key  = await generateKey();
const blob = await encryptBlob(compressed, key);

// Build Merkle root (streaming, O(log N) memory — any batch → 32 bytes)
const root = buildReceiptRoot(receipts);

// Verify any receipt is in the batch
const proof    = new MerkleTree(receipts).proof(42);
const verified = verifyReceiptInBatch(receipts[42], proof);

// Anchor instruction for receipt_anchor program (live on Solana mainnet)
const ixData = buildAnchorIxData({
  batchBytes: compressed,
  receiptCount: receipts.length,
  epochId: Math.floor(Date.now() / 86_400_000),
  encrypted: false,
});

What it does

| Feature | Detail | |---|---| | Columnar compression | 62× on structured JSON (Liquefy Columnar Gun v1 algorithm) | | Bilateral netting | 1M agent receipts → ~4,950 net settlements before anchor | | AES-256-GCM | Private amounts — only transacting parties see values | | Streaming Merkle | O(log N) memory — 36B receipts → 32 bytes on-chain | | Inclusion proofs | Anyone can verify any receipt is in the batch | | Anchor instruction | Builds instruction for receipt_anchor (Solana mainnet 6HSRGivd...) |

Compression algorithm

Based on Liquefy Columnar Gun v1:

  • Transpose array-of-receipts into columns
  • Delta encode numerics (amounts, timestamps)
  • Dictionary encode low-cardinality strings (receivers, program IDs)
  • Deflate each column independently
  • Same receiver 1000× → stored once

On-chain programs (Solana mainnet)

| Program | Address | |---|---| | receipt_anchor | 6HSRGivdYR5D7yTDy1TFMCM8h3LzXxRtKU1RA3RnCMRN |

License

MIT — Parad0x Labs