software-mansion/popcorn
35.2
Weak · 13 November 2026
30.9k
lines of production code
Elixir
with TypeScript, JavaScript
7
measurements over time
What this system is
Features
Add Docker build for local-lv-burrito
A new Dockerfile and .dockerignore have been added to the docker/burrito directory to enable building and running the local-lv-burrito example as a containerized application. The build process uses a multi-stage approach, starting from a Popcorn base image to compile the Elixir/Phoenix application with Mix tasks, and finalizing in an Ubuntu Noble image with the necessary runtime dependencies.
docker/burrito · high confidence
Add Elixir example application structure
The hello-react example now includes a basic Elixir application structure, introducing an ExApp GenServer and its corresponding Application supervisor module to demonstrate the integration setup.
_examples/hello-react/ex\app · high confidence
Add ExDoc folds to hide setup code in documentation examples
The \exdoc\_folds\ package introduces a new ExDoc extension that allows developers to hide repetitive setup code within documentation examples. By wrapping code regions with \\# exdoc:fold\ and \\# exdoc:endfold\ markers, readers can expand or collapse these sections directly in the generated HTML documentation. The extension automatically strips the marker lines from the final output, ensuring the copy button always provides the complete, runnable example. It supports various comment styles and includes a 'collapse/expand all' control for better navigation of large code blocks.
_popcorn/exdoc\folds · high confidence
Add Game of Life OTP/Wasm example
Introduces a new Conway's Game of Life simulation example that runs on the OTP/BEAM WebAssembly runtime using Popcorn. The implementation features a process-based architecture where each grid cell is a GenServer coordinated by a Supervisor tree, with a UI layer that drives the DOM via the preloaded Wasm module. The example includes configuration for the Elixir formatter, a gitignore for build artifacts, and a mise.toml specifying Node 24 and pnpm 11 for the JavaScript dependencies.
examples/game-of-life · high confidence
Add Game of Life demo to the landing page
A new Game of Life simulation demo has been added to the landing page. This feature includes a complete Erlang/OTP implementation with a supervision tree, grid management, and cell logic, alongside a UI component that bridges the BEAM runtime to the web via Popcorn.JS. Users can now interact with the simulation on the landing page, toggling cells, running/pausing the simulation, and selecting preset patterns.
landing-page/game-of-life · high confidence
Add Local Live View comparison example
A new demo project, \examples/local-lv-compare\, has been added to illustrate the behavioral differences between Phoenix Live View and Local Live View. The application renders a split-screen home page: the left side uses a standard Phoenix Live View (\DemoModalOnline\), while the right side uses a Local Live View (\DemoModalOffline\) rendered via the \\<.local\_live\_view\>\ component. The example includes a full Phoenix application structure, a dedicated Local Live View socket endpoint (\/llv\_socket\), and latency simulation enabled to highlight performance distinctions.
examples/local-lv-compare · high confidence
Add Local LiveView Burrito demo application
Introduces the \local-lv-burrito\ example app, a split-screen demo that compares a standard Phoenix LiveView burrito builder against a Local LiveView version compiled to WebAssembly. The app features a \BurritoWeb.OrderLive\ interface with controls to simulate network disconnection and latency, an \InfoModal\ explaining the demo, and a \SyncTableLive\ that mirrors the Local LiveView state back to the server via \BurritoWeb.OrderController\ and \Mirror.BurritoLive\.
examples/local-lv-burrito · high confidence
Add LocalLiveView example with AtomVM integration and tests
The local example directory now includes a complete LocalLiveView setup featuring a demo modal component that handles open/close events, along with configuration for the Popcorn runtime output and AtomVM-specific test scaffolding. This addition allows users to run and verify the LocalLiveView modal behavior on a native AtomVM runtime, ensuring parity with the browser-based implementation through dedicated ExUnit tests.
examples/local-lv-compare/local · high confidence
Add LocalLiveView form demo example
Introduces a new example application demonstrating how to integrate LocalLiveView with Phoenix LiveView. The demo features a form with validation driven by Ecto changesets, rendering both a local LiveView (stored in the browser) and a server-side LiveView (synchronized via PubSub). It illustrates a local-first data persistence pattern where the local list syncs to the server on submit and the server list syncs to the local instance on restart.
examples/local-lv-forms · high confidence
Add LocalLvCheckout example application
Introduces a new Phoenix LiveView example application demonstrating multi-step checkout flows with LocalLiveView. The project includes a router using the \live\_local\ macro, a parent LiveView coordinating URL-based step navigation, and a LocalLiveView component handling form state and validation client-side. It also provides standard Phoenix scaffolding such as layouts, core UI components, and a dark/light theme toggle.
examples/local-lv-checkout · high confidence
Add LocalThermostat example using LocalLiveView
This change introduces a new example application, LocalThermostat, which demonstrates the LocalLiveView library. The example features a Phoenix web interface with two distinct LiveViews (Thermostat and Clock) running locally, styled with Tailwind CSS and daisyUI, and includes a dark/light theme toggle. It serves as a reference implementation for integrating LocalLiveView with Phoenix.
examples/local-lv-thermostat · high confidence
Add browser-based Erlang and Elixir REPL example
The \examples/eval-in-wasm/assets\ directory now includes a complete frontend for an interactive code evaluation environment. This adds \index.html\ and \erlang.html\ pages for Elixir and Erlang respectively, along with \index.js\ to handle user interactions (code entry, evaluation, module compilation) and \style.css\ for theming. A new \build.mjs\ script uses esbuild and the Popcorn plugin to bundle the JavaScript and copy static assets to the distribution directory, enabling users to run and evaluate code directly in the browser.
examples/eval-in-wasm/assets · high confidence
Add configuration for the local-lv-burrito demo application
This change introduces the configuration files for the new local-lv-burrito demo application, establishing the environment-specific settings for development, testing, and production. It configures the Phoenix endpoint to use the Bandit adapter, sets up asset compilation with esbuild (v0.25.4) and Tailwind (v4.1.7), and integrates the LocalLiveView watcher in development mode. The configuration also defines logging formats, error rendering, and runtime environment variable handling for secrets and host settings.
examples/local-lv-burrito/config · high confidence
Add frontend vendor assets and localization files to the thermostat example
The local-lv-thermostat example now includes the necessary frontend vendor libraries and localization infrastructure. This adds bundled CSS/JS for the daisyUI component library (enabling theme support), a Tailwind plugin for Heroicons, and the topbar progress indicator script. It also introduces the initial English error message translations (errors.po) for the application's localization system.
examples/local-lv-thermostat/assets/vendor, examples/local-lv-thermostat/priv · high confidence
Add local LiveView Kanban demo with optimistic UI and drag-and-drop
This change introduces a self-contained Kanban board example within the \examples/local-lv-kanban/local\ directory, demonstrating advanced Phoenix LiveView patterns. The demo features a fully interactive board where users can add, rename, and remove columns, as well as add, remove, and drag-and-drop tasks between columns. It implements optimistic UI updates for all mutations, ensuring immediate visual feedback before server confirmation. The implementation includes a custom fractional-index ranking system (\Local.Rank\) to handle task ordering without renumbering neighbors, and utilizes LiveView components for modals and form inputs. Configuration enables treeshaking for this specific demo to optimize the resulting JavaScript bundle.
examples/local-lv-kanban/local · high confidence
Added TypeScript environment declarations for landing page
The landing page now includes a new \env.d.ts\ file that defines TypeScript types for global variables (\Popcorn\, \terminal\) and the \ImportMeta\ environment interface. This provides type safety for the landing page's integration with the \Popcorn\ runtime and ensures correct typing for environment-specific configuration during development and production builds.
landing-page/src · high confidence
Added \`mix popcorn.server\` task for Wasm development
A new Mix task, \mix popcorn.server\, has been added to the \popcorn/utils\ module. This task starts a local static file server (defaulting to port 4000 and the \dist\ directory) that automatically serves files with the necessary Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy headers required for WebAssembly with SharedArrayBuffer. The server is implemented as a separate Elixir process using \Mix.install\ to fetch Bandit and Plug, ensuring these dependencies do not need to be added to the user's project \mix.exs\.
popcorn/utils · high confidence
Added frontend vendor assets for the local-lv-compare example
The local-lv-compare example now includes bundled vendor assets to support its user interface. This adds the daisyUI theme and plugin bundles (enabling theme switching and styling), a Tailwind CSS plugin for Heroicons (providing icon utilities), and the topbar library (providing a page-load progress indicator). These files are new additions to the example's asset pipeline.
(repo-wide) · high confidence
Browser-based IEx and Erlang shells via Ghostty and Popcorn
The IEx Wasm example now provides interactive Elixir (IEx) and Erlang (erl) shells directly in the browser. The frontend uses the Ghostty terminal emulator instead of xterm, and the BEAM runtime is executed client-side using the Popcorn library. Two distinct entry points are available: index.html for Elixir and erlang.html for Erlang, each booting the appropriate shell via the Popcorn plugin. The build process is handled by a new esbuild script that bundles the JavaScript assets and copies static files to the dist directory. End-to-end functionality is verified by a Playwright test that confirms the shell is ready and can evaluate expressions.
examples/iex-wasm/assets · high confidence
Elixir Tour adds a supervised code evaluator service
The Elixir Tour now includes a background service that allows users to execute Elixir code snippets. This change introduces an Application module that starts a supervisor, which in turn launches an Evaluator GenServer. The Evaluator handles code execution requests, returning results or error messages, enabling interactive code evaluation within the tour.
_language-tour/elixir\_tour/lib/elixir\tour · high confidence
Erlang VM ported to WebAssembly via Emscripten with browser-specific runtime behavior
The Erlang VM is now buildable for WebAssembly (wasm32/wasm64) using Emscripten, enabling execution in browsers and WASI environments. This port disables features incompatible with the browser sandbox, including JIT compilation, SCTP, native sockets, distribution, dynamic loading (NIFs/drivers), OS processes, and signal handling. Crash dumps are replaced with stderr output, and a new JavaScript bridge allows the VM to communicate with the host environment for messages, errors, and TTY I/O. Module checksums now use XXH3 instead of MD5, and the build system includes a cross-compilation configuration and bootstrap trimming to reduce build size.
popcorn/patches · high confidence
Hello Popcorn example now includes dedicated asset build and test infrastructure
The hello-popcorn example now provides a complete, self-contained setup for building and testing its web assets. A new build script (build.mjs) uses esbuild and the Popcorn plugin to bundle the JavaScript entry point into a distribution folder, while the example includes an HTML page and a JavaScript initializer that boots the Popcorn runtime. Additionally, a Playwright configuration has been added to run end-to-end tests against the example's local development server, ensuring the asset pipeline and runtime integration work correctly.
examples/hello-popcorn/assets · high confidence
Initial configuration for the LocalLiveView comparison example
The \examples/local-lv-compare\ application is now fully configured with standard Phoenix environment files (\config.exs\, \dev.exs\, \prod.exs\, \runtime.exs\, \test.exs\). This setup enables live-reload functionality in development via the \LocalLiveView.Watcher\, configures asset bundling with esbuild (v0.25.4) and Tailwind (v4.1.12), and enforces SSL in production. It also sets up the mailer for local testing and configures the endpoint to use the Bandit adapter.
examples/local-lv-compare/config · high confidence
Initial configuration for the local LiveView Pong demo
This change introduces the complete configuration set for the new \local\_lv\_pong\ example application, establishing the baseline environment settings for development, testing, and production. It configures the Phoenix endpoint to use the Bandit adapter, sets up asset compilation via esbuild (v0.25.4) and Tailwind (v4.1.12), and enables LiveView live-reload patterns in development. The configuration also defines environment-specific behaviors, such as local email storage for dev/test, SSL enforcement for production, and runtime secret loading via environment variables.
examples/local-lv-pong/config · high confidence
Initial configuration for the local-lv-checkout example application
The local-lv-checkout example now includes a complete set of configuration files (config.exs, dev.exs, prod.exs, test.exs, runtime.exs) to support its operation. This setup configures the Phoenix endpoint to use the Bandit adapter, sets up LiveView with specific root tag attributes for CSS colocation, and integrates esbuild (v0.25.4) and Tailwind (v4.3.0) for asset compilation. Development mode enables code reloading and debug annotations, while production mode enforces SSL and reads secrets from environment variables.
examples/local-lv-checkout/config · high confidence
Initial configuration for the local-lv-kanban demo application
This change introduces the standard Phoenix application configuration files (config.exs, dev.exs, prod.exs, runtime.exs, test.exs) for the new local-lv-kanban example. It sets up the application with the Bandit web server adapter, configures Ecto to use a PostgreSQL database, and integrates esbuild (v0.25.4) and Tailwind (v4.1.12) for asset management. The configuration also enables Phoenix LiveView debugging features in development, sets up local email storage via Swoosh for development and testing, and configures runtime environment variable loading for production secrets and database URLs.
examples/local-lv-kanban/config · high confidence
Initial setup for the local LiveView Kanban demo
The local LiveView Kanban example application is initialized with the necessary infrastructure to run and demonstrate the feature. This includes a database migration to create the \boards\, \columns\, and \tasks\ tables, a seed script to populate the database with sample data, and static assets such as a logo and robots.txt. Additionally, internationalization support is added via new Gettext template and English locale files for standard validation error messages.
examples/local-lv-kanban/priv · high confidence
Initialize Local Live View example with Phoenix LiveView integration
The \examples/local-lv-compare/assets/js/app.js\ file has been added to establish the JavaScript entry point for the Local Live View example. This configuration initializes a Phoenix LiveSocket and connects it to a \LLVEngine\ instance, which is configured to load a WebAssembly bundle from \/assets/js/wasm/bundle.avm\. The setup also integrates colocated hooks from \phoenix-colocated/compare\_live\_views\, enables latency simulation for development, and includes standard Phoenix development tools like topbar progress indicators and live-reload editor integration.
examples/local-lv-compare/assets/js · high confidence
Initialize Local Live View thermostat example with Phoenix and LLV engine
The \examples/local-lv-thermostat/assets/js/app.js\ file has been added to establish the client-side JavaScript entry point for the thermostat example. It configures the Phoenix LiveSocket with CSRF token handling and integrates the \local\_live\_view\ engine (\LLVEngine\) alongside colocated hooks. The setup also includes a topbar progress indicator for navigation and form submissions, and enables Phoenix live-reload development features (such as server log streaming and editor navigation) when running in the development environment.
examples/local-lv-thermostat/assets/js · high confidence
Initialize Local LiveView example with Phoenix LiveView integration
The example application now includes a JavaScript entry point (\app.js\) that establishes the standard Phoenix LiveView connection and integrates the Local LiveView engine. This setup enables bidirectional communication between the browser and the BEAM-based Popcorn runtime, allowing the example to leverage LiveView's real-time capabilities alongside Local LiveView's specific features.
examples/local-lv-forms/assets/js · high confidence
Introduce Elixir code evaluation server
The Elixir language tour now includes a GenServer-based backend (ElixirTour) that handles code evaluation requests. This component manages the state of multiple editor instances, preserving variable bindings across them and executing Elixir code via the Evaluator module, returning results or errors to the frontend.
_language-tour/elixir\tour/lib · high confidence
Introduce LocalLiveView as a standalone, browser-hosted LiveView runtime
LocalLiveView is now available as a self-contained library that runs Phoenix LiveViews entirely within the browser using WebAssembly, eliminating the need for a traditional BEAM-based server. The implementation introduces a new application structure with a custom Endpoint and a Dispatcher GenServer that manages LiveView lifecycle, routing, and state via an ETS-backed store. It utilizes a Proxy LiveView to wrap individual views, handling server-side events, parameter updates, and navigation patches through a JSON-based transport layer (Serializer) that mimics LiveView's websocket protocol. This change enables developers to embed interactive LiveView components in static sites or client-side applications without maintaining a backend server.
_local-live-view/lib/local\_live\view · high confidence
Introduce LocalLiveView server infrastructure for client-side LiveViews
This change adds the server-side components required to run LocalLiveView instances, including a Phoenix socket and channel for mirror synchronization, a router macro for mounting views at routes, and server-side rendering (SSR) support. It introduces token-based security for mirror connections, a file watcher for live reload of the local project, and a supervision tree to manage the channel registry, enabling LocalLiveViews to sync state with the server and render on initial load.
local-live-view/lib/server · high confidence
Introduce Popcorn JavaScript runtime and API
This change adds the \popcorn/js\ package, providing the JavaScript API and bundler plugins (Vite, Rollup, esbuild) for running Elixir and Erlang applications in the browser via a WebAssembly runtime. Users can now initialize the VM with \Popcorn.init()\, interact with BEAM processes using \call()\, \cast()\, and \send()\, and handle events via \onEvent()\. The package includes a dedicated Web Worker for the runtime, structured error handling with typed \PopcornError\ tags, and support for configurable memory limits, terminal I/O, and asset loading.
popcorn/js · high confidence
Introduce popdoc: interactive Elixir code evaluation in ExDoc
Adds the popdoc library, an ExDoc extension that enables running Elixir code snippets directly in generated documentation. Users can now wrap code in \elixir-popcorn\ fences to create interactive blocks with a Run button, allowing them to execute code, view results, and inspect bindings or errors within the browser. The package includes a local development server (\mix popdoc.server\) that serves documentation with the necessary Cross-Origin isolation headers for WebAssembly, and supports a service worker fallback for environments like GitHub Pages where headers cannot be controlled server-side.
popdoc · high confidence
Introduces Popcorn runtime boot, JS bridge, and Req HTTP adapter
This change adds the core runtime infrastructure for the Popcorn Elixir library. It introduces \Popcorn.Application\ to manage the supervision tree and \Popcorn.Boot\ to handle VM initialization, including configuring native DNS lookups to use file-based resolution. A new \Popcorn.JS\ module provides the bridge for executing JavaScript and handling messages between the BEAM and the browser, replacing the previous \Popcorn.Wasm\ naming. Additionally, \Popcorn.Fetch\ is added to send HTTP requests via the browser's fetch API, featuring an optional adapter for the Req library that is automatically installed at startup if Req is present. Also in this area: New Mix tasks for packaging and developing Popcorn apps; Initial release of Popcorn for Elixir; Experimental tree-shaking for BEAM code.
popcorn/elixir · high confidence
Kanban demo now supports light and dark themes via daisyUI
The local-lv-kanban example assets have been updated to include a Tailwind CSS configuration with the daisyUI plugin, providing both light and dark color themes. The \app.css\ file defines these themes and integrates LiveView-specific loading states, while \app.js\ initializes the LiveView socket and the Local Live View engine. This change enables users to toggle between light and dark modes in the demo application.
examples/local-lv-kanban/assets · high confidence
Landing page UI and interactive demos
The landing page now features a complete visual overhaul with a new header, hero section, feature cards, and footer. It includes three interactive demos: an IEx REPL for running Elixir code, a Conway's Game of Life simulation, and a Pong game built with LocalLiveView. The page also includes a movie-strip style demo selector and various utility components like icons and install command copy functionality.
landing-page/src/components · high confidence
Landing page assets and configuration added
The landing page now includes essential static assets and configuration files. A new .gitignore ensures build artifacts (wasm, assets, \_astro) are not tracked. A stub cookie consent script (cookie-script.js) is provided, and visual identity assets (favicon.svg, logo-text.svg, swmansion-full-mono-m-left-top-on-light.svg) are added to support the site's appearance.
landing-page/public · high confidence
Language Tour app restructured with new UI, E2E testing, and error tracking
The language-tour application has been reorganized into a new React-based architecture featuring a custom MDX processing pipeline for dynamic lesson routing, a CodeMirror-based code editor with real-time Elixir execution via WebAssembly (Popcorn), and a redesigned UI with Tailwind CSS styling. This change also introduces Playwright-based end-to-end testing infrastructure, Google Tag Manager integration for analytics, and Sentry error tracking for monitoring code execution failures and runtime crashes.
language-tour · high confidence
Launch of the Popcorn landing page with interactive demos and SEO assets
The landing page is now live, featuring a hero section, feature highlights (Elixir/OTP support, web optimization, dependency bundling, JS/Elixir interop), use-case cards (Local LiveView, Elixir Language Tour), and interactive demos (MovieStrip, IEx, Game of Life, Pong). The site also includes generated SEO assets: a sitemap, a robots.txt file that explicitly permits AI indexing and training, and an LLM-friendly text summary.
landing-page/src/pages · high confidence
Local Live View demo app adds split-screen scroll sync and connection-aware UI
The local-lv-burrito demo now features a split-screen interface where the left (standard LiveView) and right (Local Live View) panels synchronize scrolling based on user interaction, preventing feedback loops and ghost drift on mobile. It also includes a connection status indicator and a loader that correctly handles reconnection states, ensuring the UI reflects online/offline status and re-syncs views after socket reconnection. The app uses Tailwind CSS with custom brand colors and a heroicons plugin for styling.
examples/local-lv-burrito/assets · high confidence
Local LiveView form example with AtomVM runtime support
The local example application now includes a complete form demo (\FormDemoLocal\) that validates user input using Ecto changesets and runs on the native AtomVM runtime. This allows users to test form logic, including validation errors and state transitions, offline without a browser. The example is supported by new core UI components styled with Tailwind CSS and daisyUI, along with dedicated ExUnit tests that verify the form's behavior on the AtomVM binary.
examples/local-lv-forms/local · high confidence
New CSS styles for Local LiveView example applications
Added main application CSS files for the \local-lv-compare\ and \local-lv-forms\ example apps, configuring Tailwind CSS with daisyUI themes (light and dark) and Heroicons. These styles include custom variants for LiveView states (loading, submit, change), dark mode support via data attributes, and specific UI components such as modals and ghost buttons to enhance the visual presentation of these examples.
examples/local-lv-compare/assets/css, examples/local-lv-forms/assets/css · high confidence
New Docker build infrastructure for Popcorn and landing pages
The repository now includes a complete set of Dockerfiles and Nginx configurations to build and serve the Popcorn runtime, the landing page, and the language tour. The base image (docker/base.Dockerfile) establishes a reproducible build environment using Ubuntu Noble, installing Erlang 29.0.6, Elixir 1.20.4, Node.js 22, and the Emscripten SDK via mise, and builds the Popcorn OTP/BEAM release and JavaScript package. The landing (docker/landing.Dockerfile) and language tour (docker/langtour.Dockerfile) images build their respective frontend assets and serve them via Nginx with gzip compression and Cross-Origin policies enabled.
docker · high confidence
New Hello Popcorn example for OTP/BEAM WebAssembly
Added a new example application demonstrating how to use Popcorn with the OTP/BEAM WebAssembly runtime. The example displays 'Hello from Wasm!' on the homepage and 'Hello console!' in the browser console, includes Playwright-based tests, and provides setup instructions for building the OTP package and running the server.
examples/hello-popcorn · high confidence
New Local LiveView Kanban board demo application
This location introduces a complete, deployable demo application (\local-lv-kanban\) that showcases a collaborative Kanban board built with Local LiveView. The application provides a user interface for creating, managing, and reordering boards, columns, and tasks through drag-and-drop and forms. It implements a server-authoritative collaborative model where client-side optimistic edits are validated against the database, with real-time synchronization across connected clients via Phoenix PubSub. The demo includes a landing page for board management, a detailed board view, and a dark/light theme toggle, serving as a reference implementation for Local LiveView capabilities.
examples/local-lv-kanban · high confidence
New Local LiveView Pong demo application
Added a new Pong game example in the \examples/local-lv-pong\ directory, implemented entirely with Local LiveView. The project includes a Phoenix web application structure with a LiveView socket, a theme toggle UI, and a home page that renders the game. It also provides configuration files for the \mise\ toolchain (defaulting to Erlang/OTP 26 and Elixir 1.17.3) and a \.formatter.exs\ configured for Phoenix LiveView.
examples/local-lv-pong · high confidence
New MakeupStrings lexer for highlighting embedded code in ExDoc
A new \makeup\_strings\ library has been added to provide syntax highlighting for embedded languages (such as JavaScript) within string arguments of Elixir function calls during ExDoc generation. This composite lexer wraps the standard Elixir lexer to detect specific function calls (e.g., \Popcorn.JS.run/3\) and applies a target lexer (like \makeup\_syntect\) to their string arguments, including those passed via pipes. It is configured as a development dependency and registers itself as the \elixir\ and \iex\ lexer in the Makeup registry, ensuring the target language lexer is processed at documentation build time rather than in the browser.
_popcorn/makeup\strings · high confidence
New Mix tasks for LocalLiveView installation and asset building
LocalLiveView now provides dedicated Mix tasks to streamline setup and build processes. The \mix llv.install\ task automates the integration into a Phoenix project by injecting necessary endpoint configurations (including COOP/COEP headers for Wasm security), adding the LocalLiveView socket, importing components, and generating a sample local project. The \mix llv.build\ task orchestrates the build pipeline, ensuring the LocalLiveView JavaScript bundle is compiled and the local project's Wasm runtime is packaged via Popcorn. Additionally, \mix llv.assets\ handles the incremental building of the JS bundle, caching source hashes to avoid redundant builds when dependencies or source files have not changed.
local-live-view/lib/mix · high confidence
New React + Elixir WASM example using Popcorn
The \examples/hello-react\ directory now provides a complete starter project that integrates a React frontend with an Elixir backend compiled to WebAssembly via the Popcorn library. The example uses Vite with the React plugin and includes a flat ESLint configuration for TypeScript. It features a React application (\src/App.tsx\) that initializes the Popcorn runtime to communicate with an Elixir application (\ex\_app\), which is configured to output its WASM build to \\_build/wasm\. This setup demonstrates how to embed and interact with Elixir logic within a modern React web application.
examples/hello-react · high confidence
New build plugins for Vite, esbuild, and Rollup
Added TypeScript source files for Popcorn OTP integration plugins targeting Vite, esbuild, and Rollup bundlers. These plugins automate the packaging of BEAM applications by invoking \mix popcorn.cook\, copying the resulting worker, VM runtime, and OTP assets into the build output directory, and serving them during development with the necessary Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy headers.
popcorn/js/plugins · high confidence
New eval-in-wasm example for in-browser Elixir/Erlang execution
Added a new example application that allows users to type and run Elixir or Erlang code directly in the browser via WebAssembly. The example includes the necessary Elixir project structure (formatter, gitignore, config, and application supervision tree) and a GenServer module that handles code evaluation by compiling and executing snippets using the Popcorn runtime. Users can run this example locally to test the Wasm-based code execution capabilities.
examples/eval-in-wasm · high confidence
New landing page layout with SEO, analytics, and cookie consent
The landing page now uses a new Astro layout that includes preloaded web fonts, structured data for search engines, Open Graph and Twitter meta tags, and Google Tag Manager integration. It also conditionally loads a cookie consent script in production environments.
landing-page/src/layouts · high confidence
New local LiveView checkout and navigation examples
The local example now includes a multi-step checkout flow (shipping, payment, confirmation) with client-side validation and step navigation, alongside a separate tabbed navigation demo (products, orders, profile) that persists state across tabs. These additions replace the previous custom LLV server setup with a standard Phoenix LiveView structure, including formatter and config files for the local project.
examples/local-lv-checkout/local · high confidence
Behavioural changes
2 commits (1 fix) modifying popcorn/elixir/priv
A change to existing behaviour in popcorn/elixir/priv — 2 commits (1 fix), 2 files: “Ship stdlib apps that rely on the BEAM's private API (\#911)”; “ci: fix landing (\#821)” (refs \#911, \#821).
popcorn/elixir/priv · medium confidence · unverified
3 commits (0 fixes) modifying landing-page/pong
A change to existing behaviour in landing-page/pong — 3 commits, 2 files: “Enable treeshake on beam (\#855)”; “packager. popcorn.cook opts in config (\#873)”; “landing: pong demo (\#816)” (refs \#855, \#873, \#816).
landing-page/pong · medium confidence · unverified
5 commits (0 fixes) modifying local-live-view/priv
A change to existing behaviour in local-live-view/priv — 5 commits, 5 files: “style: fix Wasm casing (WASM → Wasm) (\#774)”; “\[LocalLiveView\] LLV Generator (\#573)”; “Enable treeshake on beam (\#855)”; and 2 more (refs \#774, \#573, \#855, \#852, \#641).
local-live-view/priv · medium confidence · unverified
7 commits (0 fixes) modifying examples/local-lv-burrito/local
A change to existing behaviour in examples/local-lv-burrito/local — 7 commits, 4 files: “\[LLV\] Server-side rendering (\#822)”; “popcorn: rename Popcorn.Wasm to Popcorn.JS (\#875)”; “Remove custom LLV server (\#768)”; and 4 more (refs \#822, \#875, \#768, \#855, \#614, …).
examples/local-lv-burrito/local · medium confidence · unverified
Add Elixir configuration for JS syntax highlighting in development
A new configuration file has been added to enable syntax highlighting for JavaScript code within the \run\_js!/3\ and \run/3\ functions when running in the development environment. This change integrates the \Popcorn.JS\ module with the \makeup\_strings\ library to ensure proper visual rendering of JS snippets in documentation.
popcorn/elixir/config · high confidence
Add Playwright test configuration for WASM eval example
The eval-in-wasm example now includes a configuration file that conditionally enables Playwright's devtools mode when the PLAYWRIGHT\_DEBUG environment variable is set to true during testing, facilitating easier debugging of browser automation tests for this specific example.
examples/eval-in-wasm/config · high confidence
Game of Life example now uses a dedicated assets build and Playwright tests
The Game of Life example now bundles its JavaScript entry point using esbuild with the Popcorn plugin, serving a standalone HTML/CSS interface that initializes the OTP-based UI. This change introduces a new build pipeline (build.mjs) and a Playwright test suite (playwright.config.ts and test/game\_of\_life.spec.ts) that verifies the grid rendering, glider simulation, cell toggling, and start/stop/reset controls.
examples/game-of-life/assets · high confidence
IEx WASM example configures Popcorn runtime
The IEx WASM example now includes a configuration file that sets up the Popcorn runtime to run the IEx application, explicitly listing the logger as an additional dependency to ensure proper logging output during execution.
examples/iex-wasm/config · high confidence
Landing page adopts new design system and typography
The landing page now uses a dedicated global stylesheet that establishes a cohesive visual identity. This includes a warm, cream-based color palette with specific shades for UI elements like buttons, terminals, and data visualizations, as well as a defined set of variable fonts (Fraunces, DM Sans, Inter, IBM Plex Mono) for headings, body text, and labels. The layout is constrained to a minimum width of 320px with horizontal overflow hidden, ensuring a consistent experience across devices.
landing-page/src/styles · high confidence
Landing page rebuilt with Astro 7 and integrated demos
The landing page has been migrated to Astro 7, introducing a new build configuration that integrates Tailwind CSS and custom plugins to compile and embed interactive demos (Game of Life, Pong, and IEx) directly into the site. This change updates the development workflow, requiring pnpm for dependency management and exposing standard Astro commands (dev, build, preview) for local testing and production deployment.
landing-page · high confidence
Local Live View example adopts Tailwind CSS and daisyUI with WASM engine integration
The local-lv-checkout example assets have been restructured to use Tailwind CSS and the daisyUI component library, providing a modern, themeable UI with built-in light and dark modes. The JavaScript entry point now initializes a Local Live View engine (LLVEngine) using a WebAssembly bundle, running alongside the standard Phoenix LiveSocket. This change also includes a TypeScript configuration to support the new asset structure and vendor libraries.
examples/local-lv-checkout/assets · high confidence
Local Live View restructured as modular TypeScript with Popcorn.JS integration
The Local Live View client-side assets have been restructured into a modular TypeScript codebase, replacing the previous implementation with a new architecture built on the Popcorn.JS runtime. This change introduces a dedicated \PopcornClient\ for dispatcher communication, a \PopcornTransport\ layer that emulates Phoenix sockets to route channel frames, and explicit handlers for navigation (patch links, popstate) and custom pointer/drag-and-drop events. The module also includes new helpers for view ID resolution, mirror channel management, and view lifecycle mounting, providing a more maintainable and feature-complete foundation for Local Live Views.
local-live-view/assets · high confidence
LocalLiveView restructured as modular TypeScript with BEAM-based Popcorn runtime
LocalLiveView is now a library that compiles Elixir modules to BEAM bytecode and runs them directly in the browser via Popcorn, enabling zero-latency UI and offline capability using the standard Phoenix LiveView API. The project has been restructured into modular TypeScript, introducing a new build pipeline (Rollup, ESLint, TypeScript) and configuration files (tsconfig.json, rollup.config.mjs, eslint.config.mjs, mise.toml) to manage the JavaScript distribution and development tooling.
local-live-view · high confidence
Pong demo assets restructured with Tailwind, daisyUI, and Local Live View integration
The Pong example application's frontend assets have been reorganized to use a modular TypeScript setup. The CSS now leverages Tailwind CSS with the daisyUI plugin, providing a comprehensive set of built-in themes (such as dark, light, cyberpunk, and synthwave) and custom variants for LiveView states. The JavaScript entry point (\app.js\) has been updated to initialize the Local Live View engine alongside the standard Phoenix LiveSocket, enabling the Pong game logic to run via WebAssembly. Additionally, a \tsconfig.json\ has been added to support IDE autocompletion for the LiveView JavaScript API.
examples/local-lv-pong/assets · high confidence
Popcorn runtime patches and build script updates
This change introduces Elixir patches to handle Emscripten-specific behaviors, such as skipping terminal capability detection in \prim\_tty\ and adjusting beam library checksum logic. It also adds JavaScript build scripts (\prepack.mjs\ and \postpack.mjs\) to manage the distribution directory structure by cleaning and symlinking the output.
popcorn/elixir/patches, popcorn/js/scripts · high confidence
Replaced legacy build scripts with a structured Popcorn 2 toolset
The repository's build and development workflow has been reorganized into a new set of dedicated shell scripts under the \scripts/\ directory. This change introduces \build-beam.sh\ to compile OTP/BEAM for WebAssembly (defaulting to OTP 29.0.6), \build-atomvm.sh\ for the AtomVM runtime, and \build-openssl.sh\ for cryptographic dependencies. A new \patch-beam.sh\ manages OTP source modifications via a git-based patch stack, while \dev.sh\ provides a unified entry point for starting development servers for examples and projects like the landing page. Supporting utilities include \clean.sh\ for targeted artifact removal, \runtime-manifest.sh\ for generating emulator metadata, and \test.sh\ for running Elixir, JS, and Popdoc tests. A shared \\_common.sh\ library standardizes logging and dependency installation across these tools.
scripts · high confidence
Standardize example app configurations with Live View live reload and Bandit adapter
The configuration files for the \local-lv-forms\ and \local-lv-thermostat\ example applications have been updated to use the \Bandit.PhoenixAdapter\ for the HTTP server and to enable Live View live reloading in development. The development configuration now includes the \LocalLiveView.Watcher\ in the watchers list, ensuring that browser tabs reload automatically when source files change. Additionally, the examples are configured to use esbuild version 0.25.4 and Tailwind version 4.1.12 for asset compilation, and production settings enforce SSL via \force\_ssl\ with HSTS headers.
examples/local-lv-forms/config, examples/local-lv-thermostat/config · high confidence
Fixes
2 commits (2 fixes) fixing popcorn/emscripten
A fix in popcorn/emscripten — 2 commits (2 fixs), 2 files: “popcorn: fix hanging boot (\#920)”; “elixir: fix monotonic clocks (\#849)” (refs \#920, \#849).
popcorn/emscripten · medium confidence · unverified
Test coverage
Add end-to-end test suite for the JavaScript bridge and runtime; Add entrypoint-app fixture for testing application startup and configuration; Added FakeBridge test support for Popcorn.JS; Added Playwright tests for the hello-popcorn example; Added browser-based integration tests for the eval-in-wasm example; Added end-to-end test suite for LocalLiveView; Added test suite for error pages and demo modal; Added test suite for the LocalLiveView forms example; Added test suite for the Pong demo application; Added test suite for the local LiveView Kanban demo; Added test suite for the local-lv-checkout example; Added tests for Game of Life cell and simulation logic; Added tests for Popcorn Elixir fetch, JS, packager, and proxy modules; Added tests for optional Req dependency and treeshake preservation; Initialize Elixir test runner configuration; Local LiveView thermostat example with AtomVM testing; New e2e test harness for the JS OTP runtime.
Dependencies
Add new example projects and update dependencies
Added new example applications for evaluating code in WebAssembly, a Game of Life demo, a React integration, and an IEx-in-WASM demo, alongside existing LocalLiveView examples (Burrito, Checkout, Compare). These examples now depend on the local \@swmansion/popcorn\ JavaScript package and updated Elixir dependencies, including Phoenix 1.8, Phoenix LiveView 1.1/1.2, and Playwright 1.62.0 for testing.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.
Score
- CAI 34 → 35 (+1.3)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.
Lenses
- Code Health 71 → 80 (+8.9)
- Architecture 93 → 92 (-0.3)
- Maturity 71 → 78 (+7.3)
- Readiness 38 → 38 (+0.1)
- Security 12 → 11 (-1.3)
- Accessibility 50 → 56 (+6.9)
- Performance 100 → 100 (+0.0)
Resolved (46)
- High: security finding (details withheld)
- Hotspot: popcorn/js/src/errors.ts (popcorn/js/src/errors.ts)
- Leaked secret: crypto-key-passphrase (examples/local-lv-burrito/config/dev.exs)
- Leaked secret: crypto-key-passphrase (examples/local-lv-burrito/config/test.exs)
- Leaked secret: high-entropy-secret (examples/local-lv-burrito/config/dev.exs)
- Leaked secret: high-entropy-secret (examples/local-lv-burrito/config/test.exs)
- Leaked secret: high-entropy-secret (examples/local-lv-checkout/config/dev.exs)
- Leaked secret: high-entropy-secret (examples/local-lv-checkout/config/test.exs)
- Leaked secret: high-entropy-secret (examples/local-lv-compare/config/dev.exs)
- Leaked secret: high-entropy-secret (examples/local-lv-compare/config/test.exs)
- Leaked secret: high-entropy-secret (examples/local-lv-forms/config/dev.exs)
- Leaked secret: high-entropy-secret (examples/local-lv-forms/config/test.exs)
- Leaked secret: high-entropy-secret (examples/local-lv-kanban/config/dev.exs)
- Leaked secret: high-entropy-secret (examples/local-lv-kanban/config/test.exs)
- Leaked secret: high-entropy-secret (examples/local-lv-pong/config/dev.exs)
- Leaked secret: high-entropy-secret (examples/local-lv-pong/config/test.exs)
- Leaked secret: high-entropy-secret (examples/local-lv-thermostat/config/dev.exs)
- Leaked secret: high-entropy-secret (examples/local-lv-thermostat/config/test.exs)
- Leaked secret: signing-key (examples/local-lv-burrito/config/dev.exs)
- Leaked secret: signing-key (examples/local-lv-burrito/config/test.exs)
- …and 26 more
New (71)
- Banned license: @img/sharp-libvips-darwin-arm64 (pnpm-lock.yaml)
- Banned license: @img/sharp-libvips-darwin-x64 (pnpm-lock.yaml)
- Banned license: @img/sharp-libvips-linux-arm (pnpm-lock.yaml)
- Banned license: @img/sharp-libvips-linux-arm64 (pnpm-lock.yaml)
- Banned license: @img/sharp-libvips-linux-ppc64 (pnpm-lock.yaml)
- Banned license: @img/sharp-libvips-linux-riscv64 (pnpm-lock.yaml)
- Banned license: @img/sharp-libvips-linux-s390x (pnpm-lock.yaml)
- Banned license: @img/sharp-libvips-linux-x64 (pnpm-lock.yaml)
- Banned license: @img/sharp-libvips-linuxmusl-arm64 (pnpm-lock.yaml)
- Banned license: @img/sharp-libvips-linuxmusl-x64 (pnpm-lock.yaml)
- Banned license: @img/sharp-wasm32 (pnpm-lock.yaml)
- Banned license: @img/sharp-win32-arm64 (pnpm-lock.yaml)
- Banned license: @img/sharp-win32-ia32 (pnpm-lock.yaml)
- Banned license: @img/sharp-win32-x64 (pnpm-lock.yaml)
- Edited copy of a member (1 corresponding lines) (examples/local-lv-pong/local/lib/local/pong_live.ex)
- Edited copy of a member (11 corresponding lines) (examples/local-lv-burrito/lib/burrito_web/live/sync_table_live.ex)
- Edited copy of a member (11 corresponding lines) (examples/local-lv-pong/local/lib/local/pong_live.ex)
- Edited copy of a member (17 corresponding lines) (popcorn/elixir/lib/popcorn/fetch.ex)
- Edited copy of a member (2 corresponding lines) (examples/local-lv-pong/local/lib/local/pong_live.ex)
- Edited copy of a member (2 corresponding lines) (examples/local-lv-pong/local/lib/local/pong_live.ex)
- …and 51 more
Changes since last survey
- 19 commits — 14 feature/other, 5 fixes
By area
- popcorn/elixir — 11 commits
- landing-page/src — 4 commits
- popcorn/js — 2 commits
- .github/actions — 1 commit
- .github/workflows — 1 commit
Notable commits
- fix: Fix OTP version check (#909)
- fix: Fix copied files' permissions (#910)
- fix: Fix popcorn version in js guide (#916)
- fix: landing: fix docs link (#906)
- fix: popcorn: fix hanging boot (#920)
- change: Enable treeshake on beam (#855)
- change: Leave out the headers of compressed bodies in Popcorn.Fetch (#923)
- change: Release 1.0.1 (#913)
- change: Ship stdlib apps that rely on the BEAM's private API (#911)
- change: Support distribution (#918)
- change: ci: bump prod timeout (#904)
- change: js: pass payload using heap (#915)
- change: landing: link swm page (#919)
- change: landing: link to optimization blogpost (#905)
- change: landing: refine layout and links and restore Pong builds (#901)
- change: popcorn: preload erl_eval helpers at boot (#917)
- change: release: v1.0.0 (#903)
- change: release: v1.0.0-next.1 (#902)
- change: release: v1.0.2 (#921)
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
software-mansion/popcorn was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 13 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 55e87e77e593d39cdad8bbfe54e1a0e48450c7c9 — the exact code this score is about.
- Scored under rubric-2026.11.3 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.61+preprod-b8b1a43ae4c3.