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

@heleket-payment/sdk

v0.1.0

Published

Reference Node.js SDK for the Heleket cryptocurrency payment API. Typed in TypeScript, ships dual .js + .d.ts.

Readme

Heleket Node.js integration (reference)

A production-grade reference SDK for the Heleket cryptocurrency payment API. Written in TypeScript, published as @heleket-payment/sdk with both .js (ESM) and .d.ts outputs — works equally well from TypeScript and pure-JavaScript projects.

Covers the full documented surface (payments, payouts, balance, services, exchange rates), ships with node:test unit tests, runnable examples, byte-fidelity webhook verification, debug mode wired into your choice of logger, a heleket-webhook-inspect CLI, and a Docker harness.

Zero runtime dependencies — only the Node.js standard library (node:crypto, globalThis.fetch, node:http).

Quickstart

import { HeleketPayment } from '@heleket-payment/sdk';

const client = new HeleketPayment(merchantId, paymentKey);

const invoice = await client.createInvoice({
  amount: '15.00',
  currency: 'USD',
  order_id: 'order-42',
});

console.log(invoice.url); // → https://pay.heleket.com/pay/<uuid>

Install

npm install @heleket-payment/sdk

Requirements: Node 20 LTS+ (built-in fetch, node:test).

Documentation

Full reference lives in docs/:

What's in the box

src/                     TypeScript source — single source of truth
src/webhook/             Webhook signature verification (importable as @heleket-payment/sdk/webhook)
test/                    node:test unit tests + FakeTransport for offline testing
examples/                Twelve runnable scripts covering every endpoint
bin/                     heleket-webhook-inspect — CLI for verifying webhook payloads
docker/                  Multi-stage Dockerfile (node:20-alpine)
docs/                    Full module documentation
AGENTS.md                Architecture tour for AI agents (and humans in a hurry)

Common tasks

make install              # npm install
make build                # tsc → dist/
make test                 # build + node --test
make lint                 # ESLint
make format-check         # Prettier dry-run
make qa                   # All quality gates
make example-invoice      # Create a real invoice (needs .env)
make example-webhook      # Run the webhook listener on :8000
make docker-shell         # Drop into a containerized Node 20 shell
make help                 # Full target list

Security notes (read this)

  • Use verifyRaw for production webhooks. verify(decodedPayload) is a convenience but cannot recover PHP-style slash escapes that Heleket sends. See docs/06-webhooks.md.
  • De-duplicate replays. Use a (uuid, status) key in your DB before doing side-effect work — pattern documented in docs/06-webhooks.md.
  • Whitelist Heleket's webhook source IP 31.133.220.8 at your reverse proxy or firewall.
  • Two separate API keys — payments and payouts. Mixing them breaks webhook verification.
  • The SDK never logs API keys. Debug-mode output via slog-style entries includes URL, method, body, status — but the sign header and API key are explicitly excluded.

Releasing

  • Bump the version in both package.json and src/version.ts (the latter feeds the User-Agent).
  • Update CHANGELOG.md and, for breaking changes, UPGRADING.md.
  • Tag the release vX.Y.Z and push the tag. .github/workflows/publish.yml verifies the tag matches package.json, builds, and publishes @heleket-payment/sdk to npm with provenance (requires the NPM_TOKEN repository secret).

License

MIT — see LICENSE.