Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL

EL4CTEO/fast-anything

Developer Tools

Profiles Python, Node, Ruby, Java, Go, PHP, C and C++ apps, ports only hot functions to Rust with a coding agent, and verifies identical behavior before enabling them.

This repo is an agent skill pack · 1 skillsSkill list and install →
102
9
Rust
MIT
new today

What It Does

fast-anything targets the small fraction of code that dominates runtime instead of rewriting an entire application in Rust. It profiles an app, ranks functions by time spent and portability, generates a one-function Rust crate for a selected candidate, and records real calls from the running program. A coding agent produces the Rust port using a generated TASK.md, and the tool replays recorded calls plus derived edge cases against both implementations. A port is only enabled when values match (floats within 1e-9) and the original's errors are reproduced; a correct but slower port is also rejected.

The project supports Python 3.10+ through PyO3, Node 22+ through napi-rs, and Ruby, Java, Go, PHP, C and C++ through a shared C/JSON bridge. Typical users are application developers with a few expensive functions and coding-agent users who want a guided porting loop.

Quick Start

Install the CLI from npm or crates.io, and make sure a Rust toolchain is available because ports are compiled locally:

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

Run the full loop against your app with an agent:

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

The same form accepts Node, Ruby, Java, Go, PHP and C/C++ invocations. If you prefer manual control, the commands are scan, port, verify, enable, disable, bench and report; doctor checks Rust, runtimes and agents. Without --agent, hand the generated TASK.md to any tool that reads a prompt on stdin. FAST_ANYTHING_DISABLE=1 runs the original code at any time. For Claude Code, the plugin can be installed from the marketplace and used as /fast-anything:fast python app.py; an MCP server with eight tools is also built into the binary. The skill file documents the agent loop.

Constraints

Ports are limited to top-level, deterministic functions that take plain data such as numbers, strings, lists, dicts and typed arrays. Java and PHP ports are static methods or functions; Go needs plain functions; C and C++ need free functions or static methods. scan reports why other functions cannot move yet. Ruby, Java, Go, PHP, C and C++ rely on the C bridge and need no headers or bindings, while PHP requires the FFI extension. The repository is MIT licensed. Benchmark numbers in the README come from specific hardware and example apps, so they are not a guarantee for your workload.

HotRepo's take

The project's first recorded day on the new Rust list—2026-11-22, covering growth from 2026-11-21—shows 102 stars and 9 forks gained. That is enough to establish a small audience for the idea of porting only hot functions, but there is no longer time series, no GitHub daily rank, and no discussion record to judge adoption or benchmark reproducibility. The verifiable-behavior design is the project's most concrete technical claim; the performance figures remain self-reported examples until reproduced on the same hardware.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.