ruffle-rs/ruffle
GamesPlay legacy Flash games and animations by emulating SWF and ActionScript in the browser, on desktop, or on Android.
What Ruffle does
Ruffle is a Flash Player emulator written in Rust. It parses SWF files and runs ActionScript 1, 2 and 3 content, targeting both desktop applications and the web through WebAssembly. The goal is to keep old Flash games, animations, and interactive sites usable after Adobe Flash Player was retired.
The repository covers the full stack: the core emulator and common code, an SWF/ActionScript parser, the desktop client built on wgpu-rs, the web client and browser extension built with wasm-bindgen, rendering and video decoding backends, plus utility binaries for scanning and exporting SWFs. ActionScript 1–3 support is described as fairly complete but not finished, so imperfect content and missing features should be expected.
Try it quickly
- Web demo: open the Ruffle demo, click "Select File", and load a SWF from your machine.
- Desktop or browser builds: nightly builds are published for desktop and web, with browser extensions for Firefox and Chrome, a Flathub package, and an Arch AUR package.
- Build the desktop app from source: install the stable Rust toolchain and a JVM (
javaonPATH). On Ubuntu/Debian, install the Linux build dependencies first (pkg-config libasound2-dev libudev-dev libfontconfig-dev libfreetype6-dev libssl-dev default-jre-headless g++). Then run:
cargo run --release --package=ruffle_desktop
To open a specific file, pass its path:
cargo run --release --package=ruffle_desktop -- path/to/file.swf
On macOS, the desktop build can also be installed from the Homebrew tap with brew install --HEAD ruffle-rs/ruffle/ruffle; because it is HEAD-only, updates require brew upgrade --fetch-HEAD ruffle.
Utility tools
Two command-line binaries ship with the repository. The scanner bulk-parses a folder of SWFs and writes a CSV report, which is useful for checking compatibility against a collection:
cargo run --release --package=ruffle_scanner -- scan folder/with/swfs/ results.csv
The exporter renders a SWF to PNG screenshots. It currently requires hardware acceleration but can run headless:
cargo run --release --package=exporter -- path/to/file.swf path/to/screenshots --frames 5
Requirements and limitations
- Building requires the latest stable Rust and Java; Linux builds need the listed system libraries for audio, input, fonts, and TLS.
- ActionScript 1–3 support is incomplete, and issues should be reported in the issue tracker.
- The web client and extension are built separately via the web directory instructions; the Android app lives in a separate
ruffle-androidproject. - The project is dual-licensed under Apache-2.0 or MIT, with third-party licenses listed in
LICENSE.md.
HotRepo's take
Ruffle is an established project with nearly 19,000 stars, and it has been discussed on Hacker News repeatedly since 2019, which reflects sustained interest in keeping Flash content reachable. In a January 2025 thread, a commenter described using the standalone application to browse a collection of over a terabyte of old Flash files ((10)). The most recent daily snapshot (2026-11-19, Rust language list) shows a modest gain of 5 stars and a best position of 14 on that day's Rust list, so the repository is not in a rapid-growth phase, but it remains actively tracked. The recurring discussion threads ((3)) and the long-running project history suggest the value is in preservation and compatibility rather than novelty.
Written by AI from the project's README, updated . The project's own docs are the source of truth.