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

@ramp-kit/server

v0.1.4

Published

Zero-dependency production backend for @ramp-kit/core: server-side API-key proxy with strict endpoint allowlist, plus Etherfuse/Manteca webhook signature verification (HMAC-SHA256, RFC 8785 canonicalization)

Downloads

65

Readme

@ramp-kit/server

Zero-dependency production backend for @ramp-kit/core. Two jobs:

  1. API-key proxy — your ramp provider key lives on this server, never in the browser. The frontend reaches only a strict allowlist of ramp endpoints; everything privileged is blocked.
  2. Webhook receiver — verifies provider signatures and turns deliveries into typed events.

Plain Node (node:http, node:crypto) — no framework, no dependencies. Node ≥ 20.

Install

npm install @ramp-kit/server

Standalone server

import { createRampServer } from "@ramp-kit/server";

createRampServer({
  proxy: {
    apiKey: process.env.ETHERFUSE_API_KEY!,
    environment: "production",       // sandbox | production
    // pathPrefix: "/etherfuse",     // default
    // allowSimulation: true,        // sandbox-only; hard-blocked in production
  },
  webhooks: {
    etherfuseSecret: process.env.ETHERFUSE_WEBHOOK_SECRET!,
    onEvent: (type, entity) => {
      // order_updated | swap_updated | customer_updated | kyc_updated | …
      queue.push({ type, entity });
    },
  },
}).listen(8787);

The frontend then targets the proxy instead of the provider:

new EtherfuseProvider({ apiKey: "", baseUrl: "https://api.myapp.com/etherfuse" });

Or mount the handlers in an existing Node server: createRampProxy(config) and createEtherfuseWebhookHandler(config) are plain (req, res) => Promise<boolean> handlers.

Endpoint allowlist

Only what a ramp frontend legitimately needs is forwarded:

| Allowed | Blocked (403) | | --- | --- | | GET /ramp/me, /ramp/assets, /ramp/bank-accounts, /ramp/order/:id | Organization management | | POST /ramp/quote, /ramp/order, /ramp/wallet | Partner statements, fees | | POST /ramp/order/:id/cancel, /ramp/order/:id/regenerate_tx | Webhook management | | POST /ramp/order/fiat_received (sandbox + opt-in only) | Everything else |

Webhook signature verification

  • EtherfuseX-Signature: sha256={hex}: HMAC-SHA256 over the RFC 8785-canonicalized JSON body, keyed with the base64 secret returned once by POST /ramp/webhook. Constant-time comparison; the handler acks 2xx immediately (Etherfuse retries only 3× with 5s intervals) and dispatches the event afterwards.
  • MantecaverifyMantecaSignature(rawBody, header, secret) for their shared-secret HMAC (header name confirmed during Manteca onboarding).

canonicalize() (RFC 8785 subset) is exported for reuse.

Handle events idempotently

Deliveries can arrive out of order. Key your processing on resource id + status, and drive logic from the payload's status field — not arrival order.

Full documentation and demo apps live in the latam-ramp-kit repository. AI tooling (MCP server + agent skill) is available — see @ramp-kit/mcp.

MIT © Armando Cruz