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

@nostr-paywall/collectors

v0.1.3

Published

이벤트 단위 유료 nostr 릴레이 — 레일별 수납 어댑터(Cashu). 민트 수수료 부팅 게이트 포함.

Readme

@nostr-paywall/collectors

유료 nostr 릴레이의 수납 어댑터. 실제로 돈을 만지는 유일한 층이다.

import { CashuCollector, assertZeroFeeMints } from '@nostr-paywall/collectors';

const collector = new CashuCollector({ allowedMints: ['https://mint.example'] });
await collector.init();                     // 부팅 게이트 — 아래 참조

const v = await collector.validate(envelope, ctx);   // 돈을 건드리지 않는다
if (v.ok) await collector.collect(envelope, ctx);    // 여기서만 움직인다

validate 와 collect 를 나눈 게 핵심이다. 결제 외 모든 거부 사유를 먼저 걸러낸 뒤에만 돈을 건드릴 수 있게 순서가 타입 수준에서 강제된다.

⚠️ 민트는 input_fee_ppk == 0 이어야 한다

NUT-02 상 fees = ceil(sum(input_fee_ppk)/1000) 이고 sum(inputs) - fees == sum(outputs) 다. ppk=100 이면 입력 1~10개당 1 sat 이라 1 sat 결제는 swap 자체가 성립하지 않는다. init() 이 이걸 검사해서 아니면 던진다 — 설정 실수 하나로 모든 수납이 조용히 0원이 되는 걸 막는다.

설계 문서: https://github.com/tajava2006/nostr-paywall

PoC. mainnet 미검증.