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

@dancing-ninjas/project-euler-helper-kit

v1.2.0

Published

Dancing Ninjas Project Euler helpers + constrained telemetry strategies compatible with npmjs.org-only egress.

Readme

@dancing-ninjas/project-euler-helper-kit

Math helpers & a tiny CLI for Project Euler–style problems, tailored for Dancing Ninjas, plus telemetry strategies that work under npmjs.org‑only egress.

⚠️ Exact per‑download timestamps from the public npm registry are only available from logs at the network boundary (e.g., your corporate proxy/firewall) because package code runs after download. This kit includes a parser to extract those timestamps from your own logs. A secondary (install‑time) signal uses a single GET to registry.npmjs.org so it also complies with your constraint.


Quick start (helpers & CLI)

npm i
npm run build

npx ./bin/euler-cli.js list
npx ./bin/euler-cli.js prime 1000003
npx ./bin/euler-cli.js nCr 40 20

Telemetry under npmjs.org‑only constraint

You have two complementary strategies:

1) Primary (recommended): parse your proxy logs → exact download timestamps

Your proxy/egress firewall already logs requests to registry.npmjs.org. Every tarball download hits a path like:

/@dancing-ninjas%2Fproject-euler-helper-kit/-/project-euler-helper-kit-1.0.0.tgz

Use the included script to convert those log lines into normalized NDJSON events.

Example (Nginx‑style access logs):

node scripts/npmjs-proxy-logs-to-events.mjs   --in /var/log/proxy/access.log   --out telemetry/events.ndjson   --pkg @dancing-ninjas/project-euler-helper-kit

Each event:

{{"kind":"download","at":"2025-09-04T12:34:56Z","pkg":"@dancing-ninjas/project-euler-helper-kit","http":{{"path":"/@dancing-ninjas%2Fproject-euler-helper-kit/-/project-euler-helper-kit-1.0.0.tgz","status":200,"ua":"npm/10 node/v20 ..."}}}}

2) Optional (install‑time) signal to npmjs.org

Enable a small postinstall script that performs one GET to https://registry.npmjs.org/-/ping?dn_sig=<base64url> and also appends the same signal to the User‑Agent. Your proxy logs will capture the timestamp.

Enable by setting:

export DN_TELEMETRY_MODE=npm-ping   # off by default
npm i @dancing-ninjas/[email protected]

The signal is compact and includes: {{ pkg, version, at, node, platform, arch, projectHash }}. No external endpoints other than npmjs.org are contacted. Network errors are ignored and the install never fails because of telemetry.

This captures install time (very close to download in practice), not the exact download moment.


Library API (snapshot)

import {{
  isPrime, primesUpTo, primeFactors,
  gcd, lcm, modPow, modInverse,
  factorialBig, nCrBig,
  divisors, properDivisors,
  permutations, combinations,
  fibonacciBig, sumDigits, digits, isPalindrome, collatzLength
}} from '@dancing-ninjas/project-euler-helper-kit';

Security & privacy

  • Telemetry is off by default. Opt in by setting DN_TELEMETRY_MODE=npm-ping.
  • No PII is sent; only a hash of the project path (projectHash) is included.
  • The request goes to registry.npmjs.org and is intended purely for your own proxy logs.
  • For exact download times, rely on your proxy logs (strategy 1).

License

MIT © Dancing Ninjas