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

proof-of-intent

v0.1.5

Published

TypeScript SDK for the Proof of Intent Protocol — intent signing, delegation, and scope-enforced execution on EVM chains

Readme

proof-of-intent

TypeScript SDK for the Proof-of-Intent Protocol — on-chain intent registration, cryptographic delegation, and scope-enforced execution on Ethereum Sepolia. Uses ethers v6.

Install

npm install proof-of-intent

Environment variables

# Required: your wallet private key (Sepolia testnet only)
PRIVATE_KEY=0x...

# Optional: only needed if you call compileIntent()
CLAUDE_API_KEY=sk-ant-...

Five-line quickstart

import { ContractClient, usdc, inHours, UNISWAP_V3 } from 'proof-of-intent';

// Instantiate — all contract addresses default to deployed Sepolia contracts
const client = new ContractClient({ privateKey: process.env.PRIVATE_KEY! });

// Register an intent (build + EIP-712 sign + on-chain register in one call)
const intentId = await client.createIntent({
  tokenIn:          '0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238', // Sepolia USDC
  maxAmountIn:      usdc(100),      // 100 USDC
  minAmountOut:     1n,
  allowedProtocols: ['Uniswap-V3'],
  deadline:         inHours(1),
});
console.log('intent registered:', intentId);

// Delegate execution rights to an agent address
import { buildScope } from 'proof-of-intent';
const delegationId = await client.delegateFromRoot(
  intentId,
  buildScope({ maxAmountIn: usdc(100), minAmountOut: 1n, allowedProtocols: ['Uniswap-V3'], deadline: inHours(1) }),
  client.wallet.address,   // delegate to self for demo
);
console.log('delegation created:', delegationId);

Helpers

import { usdc, weth, inMinutes, inHours, UNISWAP_V3 } from 'proof-of-intent';

usdc(500)          // → 500_000_000n   (500 USDC in raw units)
weth(0.15)         // → 150_000_000_000_000_000n
inMinutes(60)      // → Unix timestamp 60 minutes from now (bigint)
inHours(1)         // → Unix timestamp 1 hour from now (bigint)
UNISWAP_V3         // → '0x1cc...'  (bytes32 protocol ID as hex string)

Overriding defaults

const client = new ContractClient({
  privateKey: process.env.PRIVATE_KEY!,
  rpcUrl:     'https://my-node.example.com',
  chainId:    11155111,
  // intentRegistryAddress, delegationRegistryAddress, executionGateAddress...
});

Building from source

npm install
npm run build   # produces dist/ with .js and .d.ts

Contributors