Popcorn: Run Elixir in WASM
Published on: 2025-07-02 15:14:28
Run Elixir in WASM
Popcorn is a library that enables execution of Elixir code within web browsers. Compiled Elixir code is executed in the client-side AtomVM runtime. Popcorn offers APIs for interactions between Elixir and JavaScript, handling serialization and communication, as well as ensuring browser responsiveness. We prepared three live examples using Popcorn, check them out!
You will find Popcorn API in "API" section and read how it all works in "Under the hood" section.
Popcorn in action
A simple Elixir REPL, compiling code dynamically in WASM. Elixir docs "Getting started" guide with interactive snippets. Game of life, representing every cell as a process.
Getting started
Note This library is work in progress. API is unstable and some things don't work. You can read more in "Limitations" section. Popcorn connects your JS and Elixir code by sending messages and directly executing JS from Elixir. To do that, you need to setup both JS and Elixir. Add Popcorn as a dependency
... Read full article.