AlexEne/twiggy

Twiggy🌱 is a code size profiler

1,429

stars

642

commits

Rust

primary language

Feb 18, 2026

updated

rustwasm.github.io/twiggy
profiler
size-optimization
wasm
Browse cluster: Ghost blogging platform themes and tools

README

Twiggy🌱

A code size profiler for Wasm

Guide | Contributing | Chat

Built with 🦀🕸 by The Rust and WebAssembly Working Group

About

Twiggy is a code size profiler for Wasm. It analyzes a binary's call graph to answer questions like:

  • Why was this function included in the binary in the first place? Who calls it?

  • What is the retained size of this function? I.e. how much space would be saved if I removed it and all the functions that become dead code after its removal.

Use Twiggy to make your binaries slim!

Install Twiggy

Ensure that you have the Rust toolchain installed, then run:

cargo install twiggy

Learn More!

Read the Twiggy guide!

Contributors

(top 30 of 33)

fitzgen

178 commits

data-pup

98 commits

AlexEne/twiggy

Twiggy🌱 is a code size profiler

1,429

stars

642

commits

Rust

primary language

Feb 18, 2026

updated

rustwasm.github.io/twiggy
profiler
size-optimization
wasm
Browse cluster: Ghost blogging platform themes and tools

README

Twiggy🌱

A code size profiler for Wasm

Guide | Contributing | Chat

Built with 🦀🕸 by The Rust and WebAssembly Working Group

About

Twiggy is a code size profiler for Wasm. It analyzes a binary's call graph to answer questions like:

  • Why was this function included in the binary in the first place? Who calls it?

  • What is the retained size of this function? I.e. how much space would be saved if I removed it and all the functions that become dead code after its removal.

Use Twiggy to make your binaries slim!

Install Twiggy

Ensure that you have the Rust toolchain installed, then run:

cargo install twiggy

Learn More!

Read the Twiggy guide!

Contributors

(top 30 of 33)

fitzgen

178 commits

data-pup

98 commits

Languages

Rust

77.6%

JavaScript

8.6%

CSS

7.0%

Handlebars

5.1%

WebAssembly

1.3%