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

@noidmejs/atomkit-http

v0.4.0

Published

Declarative HTTP/backend connector: call any API by config (all verbs, headers, query, body, auth, retries, cache, transforms). Secrets stay server-only via a proxy with an SSRF host allow-list + per-redirect-hop re-validation.

Readme

@noidmejs/atomkit-http

Declarative HTTP / backend connector. Call any API by config — every verb, headers, query, body, auth, retries, cache, response transforms — and keep secrets server-only behind a proxy with an SSRF host allow-list.

npm i @noidmejs/atomkit-http

Define a source

const listUsers = {
  id: 'listUsers',
  method: 'GET',
  url: 'https://api.example.com/users',
  query: { q: '{{params.q}}' },
  auth: { type: 'bearer', token: '{{secret.API_TOKEN}}' },
  retry: { attempts: 3, backoffMs: 300 }, // GET/HEAD/OPTIONS only, unless you opt in
  cache: { ttlMs: 30000 },
  timeoutMs: 10000,   // default; never unbounded
  maxBytes: 5_000_000, // default response cap
  expose: true,        // REQUIRED to be reachable via handleRequest — default false
  transform: 'data.items',
};

Server: the proxy (secrets never reach the client)

import { createProxy } from '@noidmejs/atomkit-http';

const proxy = createProxy({
  sources: { listUsers },
  secrets: { API_TOKEN: process.env.API_TOKEN! },
  allowHosts: ['api.example.com'], // SSRF guard: where a request may GO
  authorize: async (req, sourceId, params) => isLoggedIn(req), // WHO may trigger it
});

// Next route handler / Cloudflare Worker:
export const POST = (req: Request) => proxy.handleRequest(req);

The client POSTs { sourceId, params }; the proxy injects secrets, enforces the host allow-list, calls the API, and returns the (transformed) JSON. Tokens stay on the server.

handleRequest authenticates nobody. The allow-list governs where a request goes, never who may trigger it, and every call spends your server's secret-authenticated upstream quota with caller-chosen params. A source is therefore unreachable unless it sets expose: true, and any source returning personal data needs authorize (or host auth in front of the route) plus rate limiting, which this package does not provide.

Client: run a public source directly

import { runSource } from '@noidmejs/atomkit-http';
const res = await runSource(publicSource, { params: { q: 'hi' } });
// res: { ok, status, data, error }

Config

DataSource: method, url, headers, query, body, auth (bearer / basic / apiKey), timeoutMs, retry, cache, transform (JSON path). {{params.x}} interpolates caller params; {{secret.X}} resolves server-side only, in the proxy.

Security status (v0.2 — read this)

Server-only secrets + a hostname allow-list SSRF tier that now re-validates every redirect hop (an allow-listed host can't 30x-escape to a private IP), strips credentials on cross-host redirects, redacts upstream errors to the client (full detail → your onError sink), and proto-guarded templating. See SECURITY.md.

It is not yet pen-tested, and it does not pin DNS/IPs — a hostname you allow-list (or redirect to) whose DNS resolves to a private IP is still reached. Do not expose it to untrusted multi-tenant input without adding IP-pinning and a security review. Report vulnerabilities via a GitHub Security Advisory.

MIT © noidmejs