fast-anything
App : A product you use directly
Finds the few functions that eat your app's time, has your agent rewrite them in Rust and proves the result is identical.
The sensible approach to agent-driven optimization: only touch the slow 5%, replay up to 500 real calls, and enable nothing until everything matches. The gains shown are the author's own on their examples; the tool is reversible function by function.
Security reflects where data goes, requested permissions and incidents on record at the verification date. It is not a guarantee of zero risk: check the deployment mode and the connections you enable.
What it does, concretely
In most apps, the bulk of the runtime sits in a few functions. Rewriting a whole program in a faster language is slow and risky. fast-anything starts from the idea that you only need to deal with the 5% that really slows everything down.
The tool runs your app with its profiler and ranks functions by the time they use and how easy they are to port. It then records real calls and asks your coding agent (Claude Code, Codex or any command that reads a prompt) to write a Rust version of the function. That version is replayed against up to 500 recorded calls, plus edge cases (NaN, infinities, -0.0, empty inputs, non-ASCII characters, bigger inputs). Nothing is enabled until every result matches.
It is aimed at developers with a slow app in Python, JavaScript/TypeScript, Ruby, Java, Kotlin, Go, PHP, C, C++, C# or R who already use a coding agent. The author's figures range from 2.7× to 116× on fuzzy dedupe and Mandelbrot examples, measured on their own machine.
It is not a fit if you have no code to profile and no coding agent, or if your slowness comes from functions that do not work on plain data (numbers, strings, lists, maps). The tool only ports top-level, deterministic functions. On Android, it only ranks the slowest methods and does not port them.
What it offers
- ·Profiles your app by running it and ranks functions by time used and how easy they are to port (scan command).
- ·Records real calls and creates a one-function Rust crate with a TASK.md file for the agent (port command).
- ·Replays up to 500 real calls and edge cases against the Rust version, with every 5th call held out from the agent so it cannot just copy what it saw (verify command).
- ·Enables nothing until all cases match, and keeps a port that is slower per call switched off (enable and disable commands).
- ·Times the whole app, original against Rust, with an A/A noise control (bench command).
- ·Produces a markdown report with an SVG card to attach to a pull request (report command).
- ·Works with Python, JavaScript/TypeScript, Ruby, Java, Kotlin, Go, PHP, C, C++, C# and R, and with Claude Code, Codex, an MCP server or any command that reads a prompt.
- ·Also ranks the methods of an Android app through simpleperf and adb, without porting them.
In practice
- Price
- Free
- Commercial use
- Commercial use: yes
- Available on
- cli, npm, cargo
- Licence
- MIT
- FR interface
- No
Security and data
- Rating
- Security: one caveat, see the card
- Your data
- Data stays local
- Maintenance
- Active
- Last release
- 29 November 2026
Links and repository checked on 29 November 2026 · added on 28 November 2026
How to install fast-anything
npm i -g @el4cteo/fast-anything