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

@el4cteo/fast-anything

v1.5.0

Published

Don't rewrite it in Rust. Rewrite the 5% that's slow: profile Python, Node, Ruby, Java, Kotlin, Go, PHP, C, C++, C#, R or PowerShell apps, port the hot functions with your coding agent, prove they behave the same.

Readme

Most of an app's runtime sits in a few functions. fast-anything finds them, has your coding agent port only those to Rust, proves the port returns the same results on real recorded calls, and swaps it in. Reversible, one function at a time.

Install

npm i -g @el4cteo/fast-anything      # or: cargo install fast-anything

The command is fast-anything. Scanning needs only your app's runtime; porting needs Rust (rustup). fast-anything doctor checks both.

Use

fast-anything go --agent claude -- python app.py

Use the command you normally run your app with (node app.ts, go run ., gradle run, dotnet run, pwsh app.ps1, …). --agent takes claude, codex or any command that reads a prompt on stdin.

Step by step:

| command | what it does | |---|---| | scan [--] <cmd> | profiles the app and ranks functions by time and portability | | port [id] | records real calls and creates a one-function Rust crate with a TASK.md | | verify | builds the port and replays every recorded call against it | | enable / disable | switches the Rust in or out | | bench | times the whole app, original vs Rust, with an A/A noise control | | report | markdown + SVG card for your PR | | status / doctor | where things stand / what's installed | | languages | what it speaks, what's installed here, and the roadmap |

Useful scan flags: --duration 30 for servers and GUIs, --calibrate to measure the profiler's overhead, --explain to check the setup without running. Commands with --json: scan, port, verify, enable, disable, bench, import, report, status, doctor, languages.

Proof, not vibes

  • Every port is replayed against up to 500 real calls, plus edge cases (NaN, ±infinity, -0.0, empty, non-ASCII, bigger inputs) answered by the original.
  • Every 5th call is held out from the agent, so a port can't special-case what it was shown.
  • Nothing is enabled until all cases match, and a port that's slower per call stays off.
  • FAST_ANYTHING_DISABLE=1 runs the original any time.

Results

Real runs on an i5-10500, Windows 11 (C and C++: a GitHub Actions Linux runner). Reproduce them from examples/.

| app | before | after | |---|---|---| | Python fuzzy dedupe | 4.91s | 42ms, 116× | | PHP fuzzy dedupe | 2.94s | 53ms, 55× | | Go fuzzy dedupe | 3.02s | 144ms, 21× | | TypeScript fuzzy dedupe | 3.11s | 155ms, 20× | | Ruby fuzzy dedupe | 3.13s | 228ms, 14× | | PowerShell fuzzy dedupe | 6.85s | 493ms, 14× | | C# fuzzy dedupe | 4.03s | 312ms, 13× | | C mandelbrot | 431ms | 127ms, 3.4× | | Java fuzzy dedupe | 3.50s | 1.18s, 3× (11× on the function; the rest is JVM startup) | | C++ fuzzy dedupe | 3.02s | 1.09s, 2.7× |

Note on reproducing these numbers: generated ports are multithreaded (they use available_parallelism), so whole-app speedups scale with the machine's thread count. The table above is from a 12-thread i5-10500. An independent reproduction of the Python fuzzy dedupe example on a 16-thread i7-11700 (Docker/Linux, Python 3.11, reference port) measured 5.23s → 16ms (337×, median of 5 rounds, A/A noise +2.0%), with all 33 replay cases matching the original.

It ports the outermost loop it can, so the app crosses into Rust once instead of millions of times.

Languages

| language | how it's run | |---|---| | Python 3.10+ | python app.py (PyO3) | | JavaScript / TypeScript | node 22+, bun, deno run -A (napi-rs) | | Ruby 3.3+ | ruby app.rb | | Java 22+ | java App.java, Maven, Gradle | | Kotlin/JVM | Gradle, src/main/kotlin, JDK 22+ | | Go 1.22+ | go run . | | PHP 8.1+ | php app.php (FFI extension) | | C / C++ | gcc, clang, icx/icpx | | C# / .NET 8+ | dotnet run -c Release | | R 4.0+ | Rscript app.R | | PowerShell 7+ / Windows PowerShell 5.1 | pwsh app.ps1, powershell -File app.ps1 |

Python and JS/TS use native bindings; the rest call the port through one C entry point, with no headers or extra tools. It ports top-level, deterministic functions that take plain data (numbers, strings, lists, maps, arrays). scan says why anything else can't move yet. What's next, and why some languages aren't coming: docs/LANGUAGES.md.

Android

Android apps run on ART, so they're profiled on the device instead:

fast-anything scan --android com.example.app --duration 10

It ranks the app's own methods with simpleperf over adb (debuggable or profileable build). Device measurements (import gfxinfo, perfetto, simpleperf, json) go in the report in their own section. Ranking only: Android code isn't ported, and ART times are never compared with host ones.

Agents

  • Claude Code: /plugin marketplace add EL4CTEO/fast-anything, then /plugin install fast-anything@fast-anything
  • Codex: codex plugin marketplace add EL4CTEO/fast-anything
  • MCP server (any client): claude mcp add fast-anything -- fast-anything mcp
  • Skill: skills/fast-anything teaches any agent the loop

Contributors

Everyone who sent a pull request or reported an issue is in CONTRIBUTORS.md.

Sponsors

fast-anything is free and open source. If it saves you time, sponsoring keeps it maintained.

License

Licensed under either of Apache License 2.0 or MIT, at your option.