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

fund-agent

v0.0.1

Published

Initialize git config nostr.privkey with funds from a voucher

Downloads

114

Readme

fund-agent

Initialize git config nostr.privkey with funds from a TXO voucher.

Install

npm install -g fund-agent

Or use directly with npx:

npx fund-agent

Usage

CLI

# Initialize from default faucet (~/.gitmark/faucet.txt)
npx fund-agent

# Initialize from voucher file
npx fund-agent /path/to/voucher.txt

# Initialize from voucher URI
npx fund-agent "txo:tbtc4:abc123:0?amount=5000000&key=deadbeef..."

# Generate key only (no funding)
npx fund-agent --no-fund

# Use global git config
npx fund-agent --global

# Dry run (show plan without broadcasting)
npx fund-agent --dry-run

Programmatic

import { fundAgent, generateKeypair, parseVoucher } from 'fund-agent';

// Fund from voucher
const result = await fundAgent({
  voucher: '~/.gitmark/faucet.txt',
  global: true,
});

console.log(result.publicKey);  // Your new public key
console.log(result.txid);       // Funding transaction ID

// Generate keypair only
const { privateKey, publicKey } = generateKeypair();

// Parse a voucher URI
const voucher = parseVoucher('txo:tbtc4:abc:0?amount=1000000&key=xyz');
console.log(voucher.amount);  // 1000000

API

fundAgent(options)

Fund an agent wallet from a voucher.

Options:

  • voucher - Voucher URI or file path
  • global - Use global git config (default: false)
  • force - Overwrite existing key (default: false)

Returns:

  • privateKey - Generated private key
  • publicKey - Derived public key
  • txid - Funding transaction ID
  • amount - Funded amount in satoshis
  • funded - Whether funding was performed

generateKeypair()

Generate a new secp256k1 keypair.

parseVoucher(uri)

Parse a TXO voucher URI.

createVoucher(options)

Create a TXO voucher URI.

gitConfig(key, value, global)

Get or set git config values.

Voucher Format

txo:<chain>:<txid>:<vout>?amount=<sats>&key=<privkey>

Example:

txo:tbtc4:abc123def456:0?amount=5000000&key=0123456789abcdef...

Files Created

  • git config nostr.privkey - Your private key
  • .well-known/txo/txo.json - Your TXO (spendable output)

Networks

  • tbtc4 - Bitcoin Testnet4 (default)
  • btc - Bitcoin Mainnet
  • signet - Bitcoin Signet

Related

License

MIT