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

@fanalis/repo

v0.1.0

Published

Repo inspection — framework detection, route enumeration, source-walk, package analysis.

Readme

@fanalis/repo

source-pass modules. read the user's filesystem; analyse without rendering.

what's here

13 deterministic scanners, all bounded + sandboxed (no reads outside repoRoot):

  • framework.ts — detect next/vite/astro/sveltekit/remix/nuxt + package manager + lockfile + dev port
  • routes.ts — enumerate page + api routes per framework
  • deps.ts — unused deps, runtime-vs-dev mislisting, missing deps
  • secrets.ts — 21 patterns: github tokens, openai keys, aws keys, .env leaks
  • npm-audit.ts — shells out to user's pm (pnpm/npm/yarn) for vulns
  • bundle.ts — chunk-size analysis from .next / dist
  • ast.ts — 99 regex+guard rules over .ts/.tsx/.js/.jsx; brace-balanced scanner for useEffect/await-in-loop
  • ts-strictness.ts — JSONC parser for tsconfig; flags missing noUncheckedIndexedAccess etc
  • unused-exports.ts — collects exports + import sites across the tree, surfaces dead exports
  • images.tspublic/, static/, assets/: oversized/wrong-format
  • css.ts!important density, vendor-prefix overuse, tailwind dynamic-class JIT breaks
  • dep-graph.ts — Tarjan SCC over the import graph (with tsconfig path alias resolution); cycles + hot files + god files
  • design-system.ts — tailwind theme.extend coverage vs arbitrary-value hotspots; CSS-var inventory
  • supply-chain.ts — package.json policy + lockfile sanity (~35% of Socket-style coverage)
  • package-inspect.ts — walks node_modules/<pkg>/, runs Amalfi 2022 triad detection (install + env + network); flags eval/dyn-require/obfuscation/native binaries/trivial-with-power (~12 of Socket's 70 alerts)

perf

source pass on the fanalis repo itself: ~280 ms cold, ~110 ms warm (mtime cache on ast + dep-graph). pkg-inspect is the heaviest at ~200 ms.

caveats

  • safeRead() refuses to resolve outside repoRoot. counted in the file-read audit surfaced by the CLI.
  • ast.ts and dep-graph.ts share scan-cache.ts — invalidated by mtime + rule-hash. delete ~/.cache/fanalis/scan-cache/ to force cold scan.
  • analysePackageInspect requires node_modules/ to exist. if the user hasn't installed, returns an empty result silently.
  • analyseSupplyChain is reframed honest: "package.json policy + lockfile sanity check", NOT full supply-chain detection. typosquat heuristic uses trigram-jaccard ≥ 0.55 against a 3,491-name corpus from npm's search api; misses distant-position swaps like lodahs→lodash. SOTA is Socket.dev / Phylum.

not in scope

  • tarball inspection (would need to fetch from registry)
  • registry cross-ref (online-only signals: recently-published, unstable-ownership, new-author)
  • behavioural diff between published versions

post-v1.