Skip to content

open-flash/swf-parser

Repository files navigation

Open Flash logo

SWF Parser

GitHub repository

SWF parser implemented in Rust and Typescript (Node and browser). Converts bytes to swf-types movies.

Implementation Package Checks Documentation
Rust crates.io crate Rust checks status docs.rs/swf-parser
TypeScript npm package TypeScript checks status Source Code ¯\_(ツ)_/¯

This library is part of the Open Flash project.

Usage

Goal

The goal is to provide a complete SWF parser. The initial implementation requires the movie to be fully buffered before parsing but incremental parsing (for streams) is planned. This parser should be easily embeddable: it is intended for SWF players, analysis tools or any other project having to manipulate SWF files.

Status

Ready for use.

The Rust and Typescript implementations are kept in sync. They both have complete support for SWF file format specification. Help is welcome to improve ergonomics and performance of the parser.

Contributing

Each implementation lives in its own directory (rs or ts). The commands must be executed from these "project roots", not from the "repo root".

Check the implementation-specific guides:

You can also use the library and report any issues you encounter on the Github issues page.