Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

run

> 开发工具
Open source

Universal multi-language runner and smart REPL written in Rust.

932 stars0 likes2 views
WebsiteGitHub

About

Universal multi-language runner and smart REPL written in Rust.

run

Polyglot command runner & smart REPL that lets you script, compile, and iterate in 25+ languages without touching another CLI.





































Website
•
Docs Overview

Built in Rust for developers who live in multiple runtimes. run gives you a consistent CLI, persistent REPLs, and batteries-included examples for your favorite languages.


What's New in 0.10

  • Custom language aliases — run alias add, run alias remove, persisted in ~/.config/run-kit/aliases.toml. See the aliases docs.
  • run fmt / run share now detect all 25 languages by file extension (Kotlin, Swift, Dart, etc.), not just a subset.
  • Run 2.0 CI — v2 feature builds and tests run in GitHub Actions.
  • WASI target alignment — wasm32-wasip1 used consistently across build, deploy, and registry metadata.
  • Toolchain lockfile — run.lock.toml placeholder hashes removed; run run v2 toolchain sync to populate.

What's New in 0.9

  • Toolchain-aware blake3 build cache under the platform cache directory with run cache --stats and run cache --clear.
  • New workflow commands: run doctor, run fmt , run snippet , run watch , and run share .
  • Scriptable execution via --json and predictable timeout behavior via --timeout with exit code 124.
  • Per-language REPL history, safer reset behavior, and hardened child-process shutdown.
  • C++ precompiled-header cache invalidation now tracks the exact compiler identity, so Clang/Xcode upgrades no longer poison inline, stdin, or REPL runs.
  • run --help now lists all workflow subcommands directly.

Run 2.0 (Experimental)

Run 2.0 adds WASI 0.2 component support for cross-language composition, instant startup, and edge deployment.

bash
run v2 --help

Quick Links:

  • Run 2.0 Examples
  • Migration Guide
  • Registry Server

See Run 2.0 Documentation below for details.


Table of contents

  • Website and Docs
  • Overview
    • Who is this for?
    • Why was run created?
    • Why Rust?
  • Quickstart
  • Installation
  • How it works
  • Supported languages
    • Complete Language Aliases Reference
  • Command Variations - Flexible Syntax
  • Command-Line Flags Reference
  • When to Use --lang
  • Main Function Flexibility
  • Examples
  • REPL
    • Interactive REPL - Line by Line or Paste All
    • Variable Persistence & Language Switching
    • REPL Commands
  • Stdin Piping Examples
  • Language-Specific Notes
  • Run 2.0 - WASI Component Runtime
  • License

Website and Docs

The official website and full documentation are available here:

  • Website: https://run.esubalew.et/
  • Docs Overview: https://run.esubalew.et/docs/overview
  • Docs source: https://github.com/esubaalew/run-docs

Use these links to explore features, language guides, and detailed examples.


Overview - Universal Multi-Language Runner

A powerful command-line tool for executing code in 25 programming languages

What is run?

run is a universal multi-language runner and smart REPL (Read-Eval-Print Loop) written in Rust. It provides a unified interface for executing code across 25 programming languages without the hassle of managing multiple compilers, interpreters, or build tools.

Whether you're a beginner learning your first programming language or an experienced polyglot developer, run streamlines your workflow by providing consistent commands and behavior across all supported languages.

Who is this for?

  • Beginners: Learn programming without worrying about complex setup procedures. Just install run and start coding in any language.
  • Students: Quickly test code snippets and experiment with different programming paradigms across multiple languages.
  • Developers: Prototype ideas rapidly, test algorithms, and switch between languages seamlessly without context switching.
  • DevOps Engineers: Write and test automation scripts in various languages from a single tool.
  • Educators: Teach programming concepts across multiple languages with a consistent interface.

Why was run created?

Traditional development workflows require installing and configuring separate tools for each programming language. This creates several problems:

  • Time-consuming setup: Installing compilers, interpreters, package managers, and configuring environments for each language.
  • Inconsistent interfaces: Each language has different commands and flags for compilation and execution.
  • Cognitive overhead: Remembering different commands and workflows for each language.
  • Barrier to entry: Beginners struggle with setup before writing their first line of code.

run solves these problems by providing a single, unified interface that handles all the complexity behind the scenes. You focus on writing code, and run takes care of the rest.

Why Rust?

run is built with Rust for several compelling reasons:

  • Performance: Rust's zero-cost abstractions and efficient memory management ensure run starts instantly and executes with minimal overhead.
  • Reliability: Rust's strong type system and ownership model prevent common bugs like null pointer dereferences and data races, making run stable and crash-resistant.
  • Cross-platform: Rust compiles to native code for Windows, macOS, and Linux, providing consistent behavior across all platforms.
  • Memory safety: No garbage collector means predictable performance without unexpected pauses.
  • Modern tooling: Cargo (Rust's package manager) makes building and distributing run straightforward.
  • Future-proof: Rust's growing ecosystem and industry adoption ensure long-term maintainability.

Quickstart

…

Installation

All release assets are published on the GitHub Releases page, including macOS builds for both Apple Silicon (arm64) and Intel (x86_64). Pick the method that fits your platform:

Cargo (Rust)

bash
cargo install run-kit

Installs the run binary from the run-kit crate. Updating? Run cargo install run-kit --force.

bash
# Or build from source
git clone https://github.com/Esubaalew/run.git
cd run
cargo install --path .

This builds the run binary using your active Rust toolchain. The project targets Rust 1.70 or newer.

Homebrew (macOS)

bash
brew install --formula https://github.com/Esubaalew/run/releases/latest/download/homebrew-run.rb

This formula is published as a standalone file on each release; it isn't part of the default Homebrew taps.

Debian / Ubuntu

bash
ARCH=${ARCH:-amd64}
DEB_FILE=$(curl -s https://api.github.com/repos/Esubaalew/run/releases/latest \
  | grep -oE "run_[0-9.]+_${ARCH}\\.deb" | head -n 1)
curl -LO "https://github.com/Esubaalew/run/releases/latest/download/${DEB_FILE}"
curl -LO "https://github.com/Esubaalew/run/releases/latest/download/${DEB_FILE}.sha256"
sha256sum --check "${DEB_FILE}.sha256"
sudo apt install "./${DEB_FILE}"

Windows (Scoop)

powershell
scoop install https://github.com/Esubaalew/run/releases/latest/download/run-scoop.json

Install script (macOS / Linux)

bash
curl -fsSLO https://raw.githubusercontent.com/Esubaalew/run/master/scripts/install.sh
chmod +x install.sh
./install.sh --add-path

Pass --version v0.2.0, --prefix /usr/local/bin, or --repo yourname/run to customize the install.

Verify installation:

bash
run --version

How it works

run shells out to real toolchains under the hood. Each LanguageEngine implements a small trait that knows how to:

  1. Detect whether the toolchain is available (e.g. python3, go, rustc).
  2. Prepare a temporary workspace (compilation for compiled languages, transient scripts for interpreters).
  3. Execute snippets, files, or stdin streams and surface stdout/stderr consistently.
  4. Manage session state for the interactive REPL (persistent modules, stateful scripts, or regenerated translation units).

This architecture keeps the core lightweight while making it easy to add new runtimes or swap implementations.


Supported languages

run supports 25 programming languages out of the box:

Category Languages & aliases Toolchain expectations
Scripting & shells Bash (bash), Python (py, python), Ruby (rb, ruby), PHP (php), Perl (perl), Groovy (groovy, grv), Lua (lua), R (r), Elixir (ex, elixir) Matching interpreter on PATH
Web & typed scripting JavaScript (js, node), TypeScript (ts, deno), Dart (dart), Kotlin (kt, kotlin) node, deno, dart, kotlinc + JRE
Systems & compiled C (c), C++ (cpp, cxx), Rust (rs, rust), Go (go), Swift (swift), Zig (zig), Nim (nim), Haskell (hs, haskell), Crystal (cr, crystal), C# (cs, csharp), Java (java), Julia (jl, julia) Respective compiler / toolchain

Complete Language Aliases Reference

Alias Description Badge
python, py, py3, python3 Python programming language
javascript, js, node, nodejs JavaScript (Node.js runtime)
typescript, ts, ts-node, deno TypeScript with type checking
rust, rs Rust systems programming language
go, golang Go programming language
c, gcc, clang C programming language
cpp, c++, g++ C++ programming language
java Java programming language
csharp, cs, dotnet C# (.NET)
ruby, rb, irb Ruby programming language
bash, sh, shell, zsh Bash shell scripting
lua, luajit Lua scripting language
perl, pl Perl programming language
groovy, grv, groovysh Groovy on the JVM
php, php-cli PHP scripting language
haskell, hs, ghci Haskell functional language
elixir, ex, exs, iex Elixir functional language
julia, jl Julia scientific computing
dart, dartlang, flutter Dart language (Flutter)
swift, swiftlang Swift programming language
kotlin, kt, kts Kotlin (JVM/Native)
r, rscript, cran R statistical computing
crystal, cr, crystal-lang Crystal language
zig, ziglang Zig systems language
nim, nimlang Nim programming language

Command Variations - Flexible Syntax

run supports multiple command formats:

bash
# Full syntax
run --lang rust --code "fn main() { println!(\"hello\")

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustclicrateopen-sourcerepl

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具