GitHub radar
Speed up your app by rewriting only its slow functions in Rust
fast-anything finds the few functions in your app that take most of the run time and has your AI coding agent rewrite only those in Rust, a fast programming language. The rest of your code stays the same, and the app can run noticeably faster.
A command-line tool, meaning a program you control by typing commands in a text window. It times your app, gives the slowest functions to an agent to port to Rust, and switches the new version on only after it proves the results match.
When it helps
Useful when your Python, Node, Go, Java, PHP or other supported app spends a long time computing, for example matching similar names in a long list. Not needed if the app is already fast or mostly waits on the network or a database.
Pros
- Only the slow functions change; the rest of your code stays
- Each port is checked against up to 500 real recorded calls
- Switch it off any time with FAST_ANYTHING_DISABLE=1
- Works with Claude Code, Codex and other agents
Cons
- Requires an installed Rust toolchain and an AI coding agent
- Ports only functions taking plain data: numbers, text, lists
- The 116× speedup comes from the authors' own examples
How to set it up — step by step
- 1Install Rust through rustup from rustup.rs if you do not have it yet.
- 2Install the tool with npm i -g @el4cteo/fast-anything or cargo install fast-anything.
- 3Run fast-anything doctor to check Rust, your app's runtime and your agents.
- 4Open Claude Code or Codex in your project folder.
- 5Send the agent the text from the block below.
- 6Check the before-and-after timing table; if something looks wrong, set FAST_ANYTHING_DISABLE=1.
Text for your agent
Copy this and send it to your agent — Claude Code, Codex, any of them:
Speed up my app with https://github.com/EL4CTEO/fast-anything: install the tool following the README, run fast-anything go --agent claude with the command that starts my app, and show me the before and after timings. Ask me if Rust or anything else has to be installed.
Runs on a regular laptop, no graphics card needed. You need Rust installed, the runtime of your own app (for example Python 3.10 or newer) and an agent such as Claude Code or Codex.
Open on GitHub▌ More finds