Julia with WasmGC Now Has the Fastest Full-Stack Web Framework in the World*
Compiling pure-Julia web pages, embedded Pluto notebooks, and interactive 2D and 3D plots directly for the browser, with no JavaScript framework and no live Julia server required.
Abstract · TL;DR & The Asterisk
* Yes, that headline is intentionally hyperbolic. Do not take "fastest in the world" too seriously. Therapy.jl's browser compiler is roughly a week old, has almost no outside users yet, and is nowhere near replacing React, Svelte, or SolidJS for production web teams. We submitted an official entry (PR #2181) to krausest/js-framework-benchmark and measured both Chrome 158 and Safari (WebKit 26.5) on one Apple Silicon Mac, while leaving backend servers and Firefox (blocked in headless mode by our local test sandbox) untested. Even inside these tests, hand-written JavaScript stays faster overall (1.04x compared with 1.09x), SolidJS and Svelte 5 ship smaller 10,000-row table bundles with faster cold first paint, Astro 5 with Preact or SolidJS drops below Therapy.jl in download size past 6 to 7 distinct islands, and VanillaJS and SolidJS stay 4% to 6% faster on Safari at 10,000 rows.
Why the result still matters. Even with those caveats, a brand-new pure-Julia framework compiling to browser-native WebAssembly finished right behind hand-written JavaScript on the official Chrome 158 table benchmark (1.09x weighted response time compared with 1.04x for VanillaJS, ahead of SolidJS at 1.13x, Svelte 5 at 1.14x, C# NetWasm UI at 1.15x, Vue 3 at 1.24x, Rust Leptos at 1.26x, and React 19 at 1.41x). Looking only at framework execution time (the framework's own code running before Chrome lays out and paints the page), Therapy.jl led the table at 1.14x (ahead of VanillaJS at 1.23x). Measuring total browser tab memory (JavaScript, WasmGC, shared page layout memory, and Rust or C# linear memory together) showed Therapy.jl at 2.33 MB for 1,000 rows and 13.45 MB for 10,000 rows, matching VanillaJS (13.21 MB) and cutting total tab memory by 32% to 57% compared with Leptos (19.73 MB), SolidJS (20.72 MB), Svelte 5 (21.10 MB), Vue 3 (29.56 MB), and React 19 (31.56 MB). On a long static article page with one interactive counter, the total download was 3.25 KB (three to five times smaller than Astro 5), and the same keyed table ran cleanly on Safari's WebKit 26.5 engine. For people who already work in Julia, this opens a practical way to publish fast interactive pages without maintaining a separate JavaScript codebase or running live servers.
What builds on top of the same compiler. Everything here rests on WasmTarget.jl, a compiler that turns a clean subset of pure Julia into modern browser WebAssembly (WebAssembly Garbage Collection, or WasmGC). Two companion packages build on that same compiler. Snapshot.jl embeds interactive Pluto.jl notebooks directly into pages without iframes, compiling supported slider cells to run locally in the browser. WasmMakie.jl reimplements a pure-Julia subset of Makie's plotting API to draw interactive 2D and 3D figures straight onto an HTML canvas. Early full-stack backend work (Recall.jl and snapshot.show) is discussed in Section 4, honest limits sit in Sections 4 and 5, and Section 7 links directly to PR #2181, every benchmark runner script, and all raw JSON datasets on GitHub.
1. Background
How Web Frameworks Got Here, and Why Scientific Computing Was Left Out
For the past decade, web development has balanced two competing goals: loading pages quickly and keeping clicks smooth once the page opens. Early server-rendered websites sent plain HTML immediately, which loaded fast but forced a full page reload on every small interaction. Single-page JavaScript apps solved that by moving rendering into the browser, yet they added heavy overhead. Even a simple page with a few buttons began downloading large JavaScript runtimes, keeping a second virtual copy of the page in memory (a Virtual DOM), and comparing old and new copies after every click.
Over the last few years, web frameworks have worked hard to strip away that overhead, using different strategies for different jobs. Server-side rendering sends ready-to-read HTML on the first request so visitors view content right away. Tools like HTMX avoid client compilers altogether when interactions can simply ask a server for fresh HTML. For interactions that should run locally in the browser without waiting on a server, Astro's islands pattern keeps static text as plain HTML and sends code only for the interactive pieces. Alongside that, fine-grained signal frameworks (such as SolidJS, Svelte 5, and Rust's Leptos) update only the exact text or attribute that changed instead of comparing virtual page trees.
Scientific computing and Julia users have mostly watched this progress from the sidelines. Researchers who already write simulations, data pipelines, and plots in Julia rarely have time to maintain a second TypeScript and React app just to share an interactive figure or dashboard. Tools such as Dash, Streamlit, Shiny, and hosted Pluto servers avoid the language split by running code on a remote machine, but every visitor then uses live server memory and waits on network round trips. Earlier WebAssembly compilers for garbage-collected languages ran into a different wall: browsers did not manage WebAssembly objects natively, so compiled apps had to bundle an entire runtime and memory manager inside the download, turning small widgets into multi-megabyte payloads.
Modern Chrome, Firefox, and Safari now include two browser features that remove that wall: WebAssembly Garbage Collection (WasmGC) and built-in JavaScript string helpers (wasm:js-string). Instead of shipping a private memory manager, compiled WebAssembly code stores its data directly inside the browser's own garbage collector, passes text natively to the page, and updates HTML elements through small JavaScript helper calls. Built on our Julia-to-WasmGC compiler (WasmTarget.jl), Therapy.jl brings server-rendered HTML, interactive islands, and compile-time signals together in pure Julia. Alongside it, Snapshot.jl embeds compatible Pluto.jl notebooks directly into pages, and WasmMakie.jl draws interactive 2D and 3D plots onto an HTML canvas. Within the pure-Julia subset that compiles cleanly, these three packages let you publish interactive pages, notebooks, and figures from one language without building a separate JavaScript app.
2. Methods
Existing Web Patterns Compiled Ahead of Time to WasmGC
This section walks through how Therapy.jl turns Julia code into fast web pages (Figure 1), followed by how we ran the benchmarks. In Therapy.jl, any ordinary Julia function that returns HTML renders on the server and sends zero code to the browser. Marking a widget with @island tells the compiler to turn only that interactive piece into WebAssembly. Note that Section 3 benchmarks only the browser pieces (the official keyed table, multi-island page loads, Chrome and Safari cross-browser runs, and stress tests) and runs the two live scientific demos, while server throughput, routing, and hot reload were not benchmarked.
Example: plain Julia component (SSR only) compared with @island (compiled to WasmGC)
A regular Julia function renders once on the server or at build time and sends plain HTML with zero client bytes. Adding @island compiles only that interactive widget to a standalone .wasm file, and both compose naturally inside the same page route:
For interactive components, the declarative tree structure resembles JSX while the signal primitives follow SolidJS, shown side by side below:
Pages, routing, and the server (Next.js, Astro, and Oxygen.jl). Every file under src/routes/ is a plain Julia function that returns HTML. Static pages stay pure HTML with no browser code unless you add an interactive island or turn on smooth page navigation. For live servers, the HTTP routing, middleware (such as cross-origin rules, rate limiting, and authentication), and WebSocket handling were ported from Oxygen.jl.
Optional smooth page transitions (Astro ClientRouter). Normal multi-page sites reload the entire document every time you click a link. Modeled on Astro 5's <ClientRouter />, Therapy.jl includes an optional small navigation script that fetches the next HTML page in the background, swaps the page body smoothly with the browser's View Transitions API, and activates the new page's islands. Because this script uses JavaScript to fetch pages, it stays turned off on plain static benchmarks such as the 3.25 KB counter test in Section 3.3.
Compiling Julia to the browser (dart2wasm and GPUCompiler.jl). WasmTarget.jl was inspired by Dart's dart2wasm compiler, which showed that a garbage-collected language can run cleanly in modern browsers without bundling its own memory manager. Julia normally compiles code in four steps: parsing, lowering, type inference, and native machine-code generation. WasmTarget.jl steps in right after type inference and writes browser WebAssembly (WasmGC) instead of native machine code. Where Julia's standard library would normally call a C library, WasmTarget.jl substitutes pure-Julia replacements (the same overlay pattern used by CUDA.jl and GPUCompiler.jl). Today, only pure, concretely typed Julia code without C or Fortran libraries, runtime eval, or dynamic dispatch compiles for the browser.
Compiled interactive islands (SolidJS, JSX, and Leptos). Interactive widgets look much like JSX component trees and use fine-grained signals modeled on SolidJS (create_signal, create_memo, create_selector, and create_effect). A signal tracks exactly which piece of text or HTML attribute depends on a value. At build time, Therapy.jl traces those dependencies ahead of time and compiles each @island into a small standalone .wasm file optimized with wasm-opt, paired with a tiny JavaScript runtime and loader (1.93 KB compressed in total for the counter test) that connects WebAssembly to the page.
Fast keyed tables without a Virtual DOM. When rendering a list of rows with For, Therapy.jl stamps each new row from a single prebuilt HTML <template> and keeps existing table rows in place during updates and swaps. Instead of attaching a separate click handler to every row, it attaches one shared listener to the table body. Julia text strings pass straight into browser text nodes through the browser's built-in WebAssembly string helpers using a small reused buffer.
Pluto notebooks and canvas plots on the same compiler. Snapshot.jl inspects a Pluto notebook's cell graph, finds the cells controlled by @bind sliders or buttons, and compiles compatible pure-Julia groups to run locally in the browser. Groups that rely on C libraries or unsupported packages (such as Plots.jl, CairoMakie.jl, DifferentialEquations.jl, or DataFrames.jl) either display their pre-rendered static output or forward slider changes to a live PlutoSliderServer.jl backend. For browser plotting, WasmMakie.jl does not compile upstream Makie.jl. Instead, it is a standalone pure-Julia reimplementation of a subset of Makie's Figure, Axis, and Axis3 API that draws directly onto a standard HTML 2D canvas.
Local development and hot reload (Vite). Fast production output does not help if editing locally feels sluggish. Inspired by Vite, Therapy.jl keeps one Julia process running in dev mode, pushes updated styles, routes, and compiled islands to open browser tabs over WebSockets, and caches compiled .wasm files by content hash so unchanged widgets skip recompilation. Build errors and browser crashes show up both in an on-page overlay and at simple JSON endpoints (GET /_therapy/status and GET /_therapy/wait) that both developers and coding agents can check directly. Like the rest of the stack, this dev server has mostly been tested on small sites so far, and rough edges are expected on larger apps.
Figure 1. How one Julia codebase becomes static HTML and browser WebAssembly. From left to right: plain pages, interactive @island widgets, Pluto notebooks, and WasmMakie.jl plots all start in Julia. Therapy.jl generates plain HTML for static content, while WasmTarget.jl compiles the interactive pieces into standalone WebAssembly modules that update the page and canvas through small JavaScript helpers.
How We Measured Speed, Memory, and Fairness
All primary speed, memory, multi-island, and cross-browser numbers in Section 3 were measured on one Apple Silicon Mac in Google Chrome 158 (158.0.8127.108, V8) and WebKit 26.5 (Safari's JavaScriptCore engine). Headless Firefox failed to start under our local macOS runner sandbox and remains untested here, though the cross-browser script supports Firefox locally. Four targeted stress tests (Table 5) were recorded earlier on the same laptop in Chromium 149.
For the keyed table benchmark, we submitted frameworks/keyed/therapy/ as PR #2181 to krausest/js-framework-benchmark, passed its npm run rebuild-ci keyed/therapy verification gate (keyed row identity and strict content-security checks), and ran the official webdriver-ts harness directly across eight frameworks: vanillajs, Therapy.jl v0.5.0, SolidJS 1.9, Svelte 5.42, C# NetWasm UI 0.16, Vue 3.5, Rust Leptos 0.7 (the pinned upstream entry), and React 19.2. Those runs use the official 2x to 4x CPU throttling on small interactions, official weighted geometric means, 15 runs per test (25 on row selection), and Chrome's performance.measureUserAgentSpecificMemory() counter. Because the official suite measures memory only up to 1,000 rows, we added a matching Chrome 158 harness (benchmarks/run_keyed_cdp.mjs) that measures measureUserAgentSpecificMemory() at 10,000 rows so JavaScript heaps, WasmGC objects, shared Blink DOM layout memory, and Rust or C# linear WebAssembly memory all sit on one scale.
To verify that fast table numbers come from real keyed rendering rather than benchmark tricks, every Therapy.jl table build passes official krausest keyed checks, our Chrome and Safari compliance check (verify_keyed_compliance.mjs) verifying strict HTML <tr> identity across swaps and updates, and a 480-edit differential fuzzer (test/test_keyed_for_fuzz.jl) comparing every edit with a reference Julia model. We also ran a direct 10,000-row ablation comparing the default batched build with the simpler per-row build (--no-batch). For page-load scaling, we built matching local server-rendered apps for Astro 5 (Preact, SolidJS, and Svelte 5), Qwik 1.12, and Therapy.jl v0.5.0 across 1, 3, 5, and 10 distinct counter islands (plus 10 reused instances of one island) over 15 fresh uncached loads in Chrome 158.
3.1 Results · Developer Ergonomics
Writing Pages, Interactive Islands, and Reactive Lists in Plain Julia
Before looking at speed and memory numbers, it helps to compare what everyday code in Therapy.jl looks like alongside established web frameworks. Therapy.jl borrows three familiar ideas: file-based routing (Next.js), static-first pages with opt-in islands (Astro), and fine-grained reactive signals (SolidJS and Leptos), all written with plain Julia function calls instead of a separate template language. Click any framework tab below to compare two everyday patterns side by side.
Pattern 1: Separating Static HTML from Browser Interactivity
Each framework handles the server-to-browser split differently. Astro 5 uses islands architecture: static HTML sends zero browser runtime, and interactive widgets live in separate component files. Next.js uses React Server Components rather than islands, keeping server component code off the client while still shipping the React client runtime and placing interactive widgets in separate "use client" files. SvelteKit keeps everything in one compact file and hydrates the whole route. Therapy.jl keeps plain server functions and @island widgets together in one Julia file with no extra template syntax, compiling only the @island block to WebAssembly. Paired with Fatou (a Rust-built Julia formatter and language server modeled on Prettier), nested element calls format automatically into clean indented trees that read much like Prettier-formatted JSX. The honest trade-off is that deeply nested markup is still slightly more compact in JSX or .svelte files, and Astro lets teams mix React, Svelte, and SolidJS widgets inside one site.
Pattern 2: Reactive Lists, Keyed Updates, and Row Selection
Across reactive lists, Svelte 5 takes the fewest lines because its compiler turns plain variable assignments and template directives (class:active) into reactive updates automatically. React 19 uses ordinary .map() calls, though updating sel re-runs the component and compares virtual elements across the list unless rows are memoized separately. Therapy.jl sits closest to SolidJS and Rust's Leptos: it pairs create_signal, create_selector, and keyed For with explicit class bindings (BindClass) so the compiler can wire DOM updates ahead of time without a Virtual DOM or per-row runtime signal objects. That static design keeps compiled code fast and light on memory, with one clear ergonomic cost: reactive dependencies must be visible at compile time rather than created dynamically inside runtime loops.
The Exact Component Tested in Section 3.2
That same keyed list pattern is what runs the 10,000-row table benchmark directly below, with no manual DOM calls and no JavaScript build step. Direct row.id references inside click handlers compile to one shared listener on the table body, BindClass updates the highlighted row class directly, and create_selector touches only the previous and newly selected rows in constant time.
Two implementation details in the full benchmarks/krausest_island.jl file are worth stating openly before looking at the timings in Section 3.2. First, the helper functions that create, update, swap, and remove rows use explicit pre-allocated arrays, while copy loops, and a small inline random-number generator instead of higher-level helpers like vcat or filter, which keeps memory allocations low under WasmTarget.jl. Second, Therapy.jl puts the static header buttons directly into index.html on the server, whereas the client-only krausest competitors generate that header inside their JavaScript or WebAssembly bundle.
3.2 Results · Official Keyed Table Benchmark
Right Behind Hand-Written JavaScript on Official Chrome Tests (1.09x) and Matching Its 10,000-Row Memory (13.45 MB)
This benchmark measures how quickly each framework builds and edits a large interactive table of 1,000 to 10,000 rows across nine standard operations: creating, replacing, updating, selecting, swapping, removing, appending, and clearing rows. Under the official krausest/js-framework-benchmark webdriver-ts harness on Google Chrome 158 (PR #2181, official 2x to 4x throttling and weights), Therapy.jl v0.5.0 scored 1.09x weighted frame time (where 1.00x is fastest). That puts Therapy.jl right behind hand-written JavaScript (1.04x) and ahead of SolidJS 1.9 (1.13x), Svelte 5.42 (1.14x), C# NetWasm UI 0.16 (1.15x), Vue 3.5 (1.24x), Rust Leptos 0.7 (1.26x), and React 19.2 (1.41x). Individual frameworks still win specific actions (for instance, Rust Leptos led row selection at 4.7 ms). On bundle size and cold first paint for this 10,000-row table, SolidJS (4.5 KB, 38.3 ms) and Svelte 5 (9.7 KB, 41.6 ms) also beat Therapy.jl (10.9 KB, 76.7 ms). Full numbers appear in Table 1.
Once any framework edits a large table, Chrome spends most of the clock time laying out and painting HTML elements, which pulls total frame times close together. Looking only at framework execution time (each framework's own JavaScript or WebAssembly code running before Chrome lays out and paints the page) shows where the architectures separate. Across the official suite, Therapy.jl led the entire table at 1.14x, ahead of hand-written JavaScript (1.23x), SolidJS (2.01x), C# NetWasm UI (2.18x), Svelte 5 (2.52x), Rust Leptos (3.52x), Vue 3 (3.84x), and React 19 (6.10x). To check whether batched row creation drove that result, our 10,000-row Chrome 158 ablation (benchmarks/run_keyed_cdp.mjs) compared the default batched build with the simpler per-row build (--no-batch). Both builds stayed nearly identical in framework execution time (14.08 ms batched compared with 14.21 ms unbatched) and total browser memory (13.45 MB compared with 13.34 MB).
Measuring total browser tab memory with performance.measureUserAgentSpecificMemory() puts every framework on one apples-to-apples scale, counting JavaScript objects, Therapy.jl's WasmGC structs, Chrome's shared Blink DOM layout memory, and Rust or C# linear WebAssembly heaps together. At 1,000 rows in the official krausest run, Therapy.jl used 2.33 MB (1.02x), matching hand-written JavaScript (2.31 MB, 1.00x) and staying below SolidJS (3.15 MB), Leptos (3.19 MB), Svelte 5 (3.33 MB), NetWasm UI (3.47 MB), Vue 3 (4.43 MB), and React 19 (4.89 MB). At 10,000 rows, Blink DOM layout adds roughly 9.4 to 9.6 MB equally to every framework. Even with that shared baseline included, Therapy.jl stayed at 13.45 MB (13.34 MB unbatched), matching VanillaJS (13.21 MB) and cutting total tab memory by 32% compared with Leptos (19.73 MB), 35% to 36% compared with SolidJS (20.72 MB) and Svelte 5 (21.10 MB), and 55% to 57% compared with Vue 3 (29.56 MB) and React 19 (31.56 MB). Clearing all 10,000 rows returned Therapy.jl to 1.23 MB (matching VanillaJS at 1.10 MB and SolidJS at 1.29 MB). Part of this saving reflects a design trade-off: Therapy.jl tracks one list signal over plain row structs instead of creating a separate live signal for every row, which is what lets SolidJS, Svelte 5, and Leptos nest stateful child components inside dynamic lists.
Official krausest weighted geometric mean of click-to-paint frame time across 9 operations (lower is faster, n = 15, 25 on select).
Figure 2. Official krausest/js-framework-benchmark results (PR #2181) in Google Chrome 158 (Apple Silicon, official throttling and weights). Hand-written JavaScript (dark ink, 1.04x) appears first alongside Therapy.jl v0.5.0 (cobalt, 1.09x total frame and 1.14x framework code time), with six peer frameworks in grey. Use the buttons above to switch between total frame time, framework code time (excluding browser layout and paint), and 10,000-row total browser memory.
Table 1. Official Keyed Table Benchmark Summary (Google Chrome 158, Apple Silicon, official webdriver-ts throttling and weights). Rows are sorted by Frame Geo (official weighted geometric mean of total click-to-paint time, lower is faster). Framework Geo isolates each framework's own code execution time before Chrome lays out and paints the page. Therapy.jl is highlighted in cobalt, and the lowest value in each column is bold. Create 1k and Create 10k show median ± IQR in milliseconds. 1k Mem (UA) reports official krausest total browser memory after 1,000 rows, and 10k Mem (UA) reports the matching Chrome 158 total browser memory after 10,000 rows (including Blink DOM and Rust or C# linear Wasm). On cold first paint (43_first-paint), SolidJS (38.3 ms), Svelte 5 (41.6 ms), and VanillaJS (49.1 ms) led Therapy.jl (76.7 ms), ahead of Vue 3 (100.3 ms), React 19 (204.0 ms), Leptos (249.5 ms), and NetWasm UI (468.1 ms).
| Framework | Frame Geo | Framework Geo | Create 1k (ms) | Create 10k (ms) | 1k Mem (UA) | 10k Mem (UA) | Bundle (gz) |
|---|---|---|---|---|---|---|---|
vanillajs Hand-written JS | 1.04x | 1.23x | 19.5 ± 0.5 | 207.0 ± 8.9 | 2.31 MB | 13.21 MB | 2.5 KB |
Therapy.jl v0.5.0 · WasmGC | 1.09x | 1.14x | 20.0 ± 0.4 | 221.6 ± 15.5 | 2.33 MB | 13.45 MB | 10.9 KB |
SolidJS 1.9 Fine-grained JS | 1.13x | 2.01x | 21.0 ± 0.6 | 226.6 ± 8.6 | 3.15 MB | 20.72 MB | 4.5 KB |
Svelte 5.42 Compiled JS | 1.14x | 2.52x | 21.1 ± 0.4 | 227.1 ± 9.0 | 3.33 MB | 21.10 MB | 9.7 KB |
NetWasm UI v0.16 · C# Wasm | 1.15x | 2.18x | 22.1 ± 1.4 | 237.6 ± 11.1 | 3.47 MB | 14.15 MB | 119.1 KB |
Vue 3.5 Virtual DOM JS | 1.24x | 3.84x | 23.3 ± 0.5 | 247.3 ± 9.2 | 4.43 MB | 29.56 MB | 23.3 KB |
Leptos 0.7 Rust -> linear Wasm | 1.26x | 3.52x | 26.4 ± 2.4 | 272.4 ± 8.8 | 3.19 MB | 19.73 MB | 48.8 KB |
React 19.2 Hooks VDOM | 1.41x | 6.10x | 24.6 ± 1.0 | 344.7 ± 9.2 | 4.89 MB | 31.56 MB | 51.4 KB |
3.3 Results · Island Scaling, Cross-Browser Engines & Stress Tests
A 3.25 KB Single-Island Download, Exact Multi-Island Crossover, and Safari Verification
This test measures how much data a framework transfers when a long static article page needs interactive islands. Each framework served 40 static HTML sections paired with 1, 3, 5, and 10 distinct counter islands (plus 10 shared instances of one counter) across 15 fresh uncached loads in Chrome 158 with client page transitions turned off. Two caveats apply up front. First, a five-line hand-written <script> would beat every framework here under 1 KB. Second, a single counter is the best case for Therapy.jl because it skips a shared JavaScript framework runtime, whereas scaling to multiple distinct islands tests where Astro's shared runtime catches up.
On a single counter island (Figure 3 and Table 2), Therapy.jl v0.5.0 transferred 3.25 KB compressed (0.79 KB HTML, 0.97 KB shared runtime, 0.96 KB island loader, and 0.53 KB compiled counter). That is 2.9x smaller than Astro 5 with Preact (9.56 KB), 3.1x smaller than Astro 5 with SolidJS (10.09 KB), and 4.8x smaller than Astro 5 with Svelte 5 (15.46 KB). Qwik 1.12 sends 1.49 KB of HTML without startup setup, 3.69 KB of route code, and 18.74 KB of background-prefetched runtime (23.92 KB total, without blocking initial paint). On a fast local server, all five setups finished initial setup within 19 to 25 ms. Therapy.jl led Ready time (19.1 ms), while Astro 5 with Svelte 5 led first-click completion (38.1 ms compared with Therapy.jl at 42.3 ms and Qwik at 106.6 ms while its first click loads the handler).
Figure 3. Total download size for 40 static HTML sections plus one interactive counter (Chrome 158, 15 uncached local loads). Astro embeds its island helper directly inside the HTML file, whereas Therapy.jl loads its 1.93 KB runtime and loader plus 0.53 KB counter separately, so total transfer is the fair comparison. *Qwik 1.12 sends 1.49 KB of HTML without startup setup, 3.69 KB of route code (solid grey), and 18.74 KB of background-prefetched runtime (hatched), totaling 23.92 KB. Full timing numbers appear in Table 2.
Table 2. Single-Island Download Size and Local Load Speed (Chrome 158, 15 uncached runs). Totals are rounded from raw gzip bytes. Ready measures load completion plus hydration, and 1st Click measures time from page load through the first verified counter increment (median ± IQR). Lowest values are bold. *Qwik 1.12 JS + Wasm combines 3.69 KB of route code with 18.74 KB of background prefetch.
| Framework | HTML (gz) | JS + Wasm | Total (gz) | Ready | 1st Click |
|---|---|---|---|---|---|
Therapy.jl v0.5.0 1 island · eager | 0.79 KB | 2.46 KB | 3.25 KB | 19.1 ± 3.7 ms | 42.3 ± 6.9 ms |
Astro 5 + Preact client:load | 2.31 KB | 7.25 KB | 9.56 KB | 22.0 ± 1.4 ms | 38.9 ± 1.0 ms |
Astro 5 + SolidJS client:load | 2.51 KB | 7.58 KB | 10.09 KB | 21.4 ± 3.5 ms | 39.8 ± 5.4 ms |
Astro 5 + Svelte 5 client:load | 2.32 KB | 13.14 KB | 15.46 KB | 24.6 ± 6.6 ms | 38.1 ± 2.0 ms |
Qwik 1.12 Resumable SSR* | 1.49 KB | 22.43 KB* | 23.92 KB* | 22.9 ± 2.4 ms | 106.6 ± 28.8 ms |
Measuring the exact multi-island crossover. Because Therapy.jl v0.5.0 currently emits a standalone .wasm file and loader for each distinct @island type (+1.52 KB compressed per distinct island), Astro 5 with Preact (+0.34 KB) and Astro 5 with SolidJS (+0.36 KB) become smaller once a page has 6 to 7 distinct islands (Table 3). Therapy.jl stays smaller than Astro 5 with Svelte 5 (19.14 KB) and Qwik 1.12 (24.36 KB*) through 10 distinct islands. When a page reuses the same @island component 10 times (such as 10 interactive cards or counters sharing one definition), Therapy.jl downloads that module once and stays flat at 3.31 KB (+0.01 KB per extra instance).
Table 3. Multi-Island Download Scaling Across 1, 3, 5, and 10 Islands (Chrome 158, gzip KB). Distinct islands compile separate components on one page. The 10 shared instances row reuses one Therapy.jl @island definition ten times. Astro + Preact and Astro + SolidJS drop below Therapy.jl between 6 and 7 distinct islands.
| Framework | 1 Island | 3 Islands | 5 Islands | 10 Islands | Per Extra |
|---|---|---|---|---|---|
Therapy.jl v0.5.0 Distinct @islands | 3.25 KB | 6.32 KB | 9.36 KB | 16.96 KB | +1.52 KB |
Therapy.jl v0.5.0 10 shared instances | 3.25 KB | 3.27 KB | 3.28 KB | 3.31 KB | +0.01 KB |
Astro 5 + Preact Shared Preact runtime | 9.56 KB | 10.25 KB | 10.92 KB | 12.61 KB | +0.34 KB |
Astro 5 + SolidJS Shared Solid runtime | 10.09 KB | 10.82 KB | 11.54 KB | 13.34 KB | +0.36 KB |
Astro 5 + Svelte 5 Shared Svelte runtime | 15.46 KB | 16.29 KB | 17.11 KB | 19.14 KB | +0.41 KB |
Qwik 1.12 Resumable SSR* | 23.92 KB* | 24.03 KB* | 24.13 KB* | 24.36 KB* | +0.05 KB |
Running natively on Safari (WebKit 26.5) as well as Chrome. Because WasmGC and wasm:js-string are still recent browser features, we also tested five frameworks across both Chromium 158 (V8) and Playwright WebKit 26.5 (Safari's JavaScriptCore engine) over 10 runs per operation (Table 4). All five frameworks passed strict <tr> keyed-identity checks on both engines with zero errors. On Safari, Therapy.jl matched SolidJS and Svelte 5 on 1,000-row creation (55.5 ms compared with 53.0 ms and 53.5 ms), beat Svelte 5 and Leptos on replacing 1,000 rows (51.5 ms compared with 60.0 ms and 62.0 ms), and finished 10,000 rows in 773.5 ms (ahead of Leptos at 803.0 ms, and 4% to 6% behind VanillaJS at 740.0 ms and SolidJS at 729.0 ms). Headless Firefox did not launch inside our local macOS runner sandbox and remains untested here.
Table 4. Cross-Browser WasmGC Verification Across Chromium 158 (V8) and WebKit 26.5 (Safari / JSC), n = 10 medians. All five frameworks passed strict keyed DOM identity checks on both engines. Timings measure in-page click-to-layout completion (MessageChannel + forced layout) so both browser engines share identical measurement semantics.
| Framework | Chrome 1k | Chrome Repl | Chrome 10k | Safari 1k | Safari Repl | Safari 10k |
|---|---|---|---|---|---|---|
| Therapy.jl v0.5.0 | 22.7 ms | 19.8 ms | 215.0 ms | 55.5 ms | 51.5 ms | 773.5 ms |
| VanillaJS | 22.5 ms | 19.8 ms | 208.0 ms | 52.0 ms | 50.0 ms | 740.0 ms |
| SolidJS 1.9 | 24.0 ms | 21.1 ms | 227.0 ms | 53.0 ms | 53.0 ms | 729.0 ms |
| Svelte 5.42 | 27.1 ms | 23.6 ms | 196.2 ms | 53.5 ms | 60.0 ms | 768.0 ms |
| Leptos 0.7 (Rust) | 33.6 ms | 29.7 ms | 240.7 ms | 61.0 ms | 62.0 ms | 803.0 ms |
To see where Therapy.jl's WebAssembly design slows down or hits hard boundaries, we also recorded four targeted stress tests (Table 5, measured earlier in Chromium 149 on the same laptop). Updating 1,000 rows of emoji and non-English text stayed within 4% of hand-written JavaScript, and bundling 32,000 floating-point numbers saved 12.5% in compressed size compared with inline JavaScript numbers (with 3.3 ms slower startup). Shuffling an entire 1,000-row list favored JavaScript and SolidJS, and creating new signals dynamically at runtime remains outside Therapy.jl's compile-time model.
Table 5. Targeted Stress Tests (Chromium 149, 15 runs, medians). Four focused tests checking heavy text updates, large embedded number arrays, full-table shuffles, and dynamic reactive graphs.
| Stress Workload | Compared Method | Therapy.jl | Outcome |
|---|---|---|---|
| 1,000-Row Emoji and Multibyte Text Churn | vanillajs: 0.49 ms CPU (12.30 ms total) | 0.51 ms CPU (12.45 ms total) | Reuses a small scratch buffer to pass emoji and non-English text into the browser, staying within 4% of hand-written JavaScript. |
| Large Embedded Data (32,000 Floats) | JS text array: 274.7 KB gz (621.3 KB raw), 47.1 ms ready | 240.4 KB gz (256.4 KB raw), 50.4 ms ready | Binary WebAssembly data transfers 12.5% less compressed data than inline JavaScript numbers, though JavaScript started 3.3 ms faster. A separate binary fetch in JavaScript would match the raw size and load faster still. |
| 1,000-Row Random Shuffle and Full Reverse | vanillajs: 7.52 / 7.40 ms, SolidJS: 7.87 / 7.56 ms | 8.07 / 7.83 ms total | Hand-written JavaScript and SolidJS stay slightly faster when almost every existing table row moves in a single frame. |
| Dynamic Runtime Reactive Graphs | SolidJS: 1,000-node dynamic chain in 66.8 ms | Fixed compile-time graphs only (up to 130 effects tested) | Therapy.jl wires up reactive updates at compile time, so it cannot create arbitrary new signals inside loops while the page is running. |
3.4 Results · Scientific Add-Ons Running Live
Interactive 3D Plots and Live Pluto Notebooks Running Inside This Page
Fast tables are encouraging, though the real reason to build this stack in Julia is what can run on top of the same compiler. Both interactive figures below are running live in your browser from compiled Julia with no server behind them, using WasmMakie.jl to draw onto an HTML canvas.
Figure 4. Live 3D WasmMakie.jl plot embedded directly in this post (164.5 KB compressed, 398.0 KB raw). Drag to rotate, scroll to zoom, or move the branching sliders. Under WasmTarget.jl v0.8.0 and WasmMakie.jl v0.3.2, this compiled 3D island dropped 4.8x from its initial ~770 to 805 KB release. A small 50-line JavaScript listener forwards mouse drag and scroll gestures into the island's signals, while all 3D vessel geometry, projection, lighting, and canvas drawing run in compiled Julia with no Three.js and no server.
Second, Snapshot.jl turns compatible Pluto.jl notebooks into native page components. The notebook below uses two slider groups written in pure Julia and WasmMakie.jl so both compile directly for the browser (notebooks that rely on C libraries or unsupported packages such as Plots.jl, DataFrames.jl, or DifferentialEquations.jl either show static output or connect to a live PlutoSliderServer.jl backend). Notice that this notebook is not trapped inside an iframe: it shares this site's fonts and dark mode, keeps its own inner table of contents, and recomputes its CT physics plots locally whenever you drag a slider. Once Snapshot.jl exports the static HTML fragment and its compiled .islands/ folder, mounting it inside a route takes one call to this site's SnapshotNotebook helper:
Polychromatic CT Physics & Virtual Monoenergetic Imaging
Clinical CT scanners emit a polychromatic X-ray spectrum rather than a single monoenergetic beam. In BasisSimulator.jl, we propagate full energy-resolved spectra through Beer-Lambert attenuation and reconstruct both raw energy-integrating scans and Virtual Monoenergetic Images (VMI).
Every slider below drives pure-Julia WasmMakie physics directly in your browser via Snapshot.jl + WasmTarget.jl with no Julia server.
1. Tungsten Source Spectrum & Beam Hardening
As X-rays traverse aluminum filtration and patient tissue, lower-energy photons are preferentially absorbed via the photoelectric effect ($\mu_{\text{pe}} \propto Z^3 / E^3$). The transmitted beam shifts toward higher effective energy, an effect known as beam hardening.
Tube peak voltage (kVp) =
Aluminum filtration (mm Al) =
Water phantom thickness (cm) =
2. Virtual Monoenergetic (VMI) Iodine vs. Calcium Contrast
By decomposing polychromatic measurements into physical basis materials (e.g., water and calcium or iodine), we synthesize monochromatic attenuation at any target energy $E_0$:
$$\text{HU}(E_0) = 1000 \cdot \frac{\mu(E_0) - \mu_{\text{water}}(E_0)}{\mu_{\text{water}}(E_0)}$$
Sweep the target VMI energy $E_0$ and iodine lumen concentration below to observe how low-keV reconstructions dramatically amplify iodine contrast near its 33.2 keV K-edge while high-keV reconstructions suppress dense calcification blooming.
Target VMI energy $E_0$ (keV) =
Iodine concentration (mg I/mL) =
3. Reproducible CT Virtual Trials
The same forward-physics principles power full 3D fan-beam and helical cone-beam simulations in BasisSimulator.jl across NVIDIA CUDA, Apple Metal, AMD ROCm, and CPU backends (SoftwareX, 2026).
using PlutoUI, WasmMakiefunction build_spectrum_plot(kvp_i::Int64, al_t::Float64, water_t::Float64)
kvp = Float64(kvp_i)
fig = WasmMakie.Figure(size = (720.0, 340.0))
ax = WasmMakie.Axis(
fig[1, 1];
title = "Polychromatic X-Ray Spectrum & Beam Hardening",
xlabel = "Photon Energy (keV)",
ylabel = "Normalized Flux",
)
n = Int64(130)
es = Vector{Float64}(undef, n)
s_raw = Vector{Float64}(undef, n)
s_filt = Vector{Float64}(undef, n)
s_trans = Vector{Float64}(undef, n)
max_raw = 1.0e-9
max_filt = 1.0e-9
max_trans = 1.0e-9
i = Int64(1)
while i <= n
e = 12.0 + 132.0 * Float64(i - Int64(1)) / Float64(n - Int64(1))
es[i] = e
if e < kvp
# Kramers Bremsstrahlung + tungsten K-alpha/K-beta characteristic lines
brem = (kvp - e) / kvp * (e / 30.0)^0.35
char_ka = kvp > 69.5 ? 0.42 * exp(-((e - 59.3) / 1.4)^2) : 0.0
char_kb = kvp > 69.5 ? 0.16 * exp(-((e - 67.2) / 1.4)^2) : 0.0
raw = brem + char_ka + char_kb
else
raw = 0.0
end
# Approximate linear attenuation for Al (mm^-1) and H2O (cm^-1)
mu_al = 0.035 + 14500.0 / (e * e * e)
mu_h2o = 0.165 + 1900.0 / (e * e * e)
filt = raw * exp(-mu_al * al_t)
trans = filt * exp(-mu_h2o * water_t)
s_raw[i] = raw
s_filt[i] = filt
s_trans[i] = trans
if raw > max_raw; max_raw = raw; end
if filt > max_filt; max_filt = filt; end
if trans > max_trans; max_trans = trans; end
i = i + Int64(1)
end
# Compute mean energies and normalize spectra for clear shape comparison
sum_f = 0.0; num_f = 0.0
sum_t = 0.0; num_t = 0.0
j = Int64(1)
while j <= n
num_f = num_f + es[j] * s_filt[j]
sum_f = sum_f + s_filt[j]
num_t = num_t + es[j] * s_trans[j]
sum_t = sum_t + s_trans[j]
s_raw[j] = s_raw[j] / max_raw
s_filt[j] = s_filt[j] / max_filt
s_trans[j] = s_trans[j] / max_trans
j = j + Int64(1)
end
mean_f = sum_f > 0.0 ? num_f / sum_f : 60.0
mean_t = sum_t > 0.0 ? num_t / sum_t : 70.0
WasmMakie.lines!(ax, es, s_raw; color = (:gray, 0.55), linestyle = :dash, linewidth = 1.6, label = "Unfiltered W")
WasmMakie.lines!(ax, es, s_filt; color = WasmMakie.Cycled(1), linewidth = 2.3, label = "After Al filter")
WasmMakie.lines!(ax, es, s_trans; color = WasmMakie.Cycled(2), linewidth = 2.4, label = "Post-phantom")
WasmMakie.vlines!(ax, [mean_f]; color = WasmMakie.Cycled(1), linestyle = :dot)
WasmMakie.vlines!(ax, [mean_t]; color = WasmMakie.Cycled(2), linestyle = :dot)
WasmMakie.axislegend(ax; position = :rt)
return fig
endfunction build_vmi_contrast_plot(vmi_i::Int64, iod_mg::Float64)
vmi_e = Float64(vmi_i)
fig = WasmMakie.Figure(size = (720.0, 340.0))
ax = WasmMakie.Axis(
fig[1, 1];
title = "Virtual Monoenergetic Attenuation Curves (HU)",
xlabel = "VMI Energy E₀ (keV)",
ylabel = "CT Number (HU)",
)
n = Int64(90)
es = Vector{Float64}(undef, n)
hu_iod = Vector{Float64}(undef, n)
hu_ca = Vector{Float64}(undef, n)
hu_myo = Vector{Float64}(undef, n)
hu_lip = Vector{Float64}(undef, n)
i = Int64(1)
while i <= n
e = 38.0 + 92.0 * Float64(i - Int64(1)) / Float64(n - Int64(1))
es[i] = e
mu_w = 0.165 + 1900.0 / (e * e * e)
# Iodine mass attenuation above K-edge (33.2 keV) scaled by mg/mL
mu_i = mu_w + (iod_mg / 1000.0) * (0.25 + 480000.0 / (e * e * e))
# Calcified plaque (~200 mg/cm^3 hydroxyapatite)
mu_c = mu_w + 0.20 * (0.14 + 92000.0 / (e * e * e))
# Myocardium soft tissue & lipid plaque
mu_m = mu_w * 1.052
mu_l = 0.153 + 980.0 / (e * e * e)
hu_iod[i] = 1000.0 * (mu_i - mu_w) / mu_w
hu_ca[i] = 1000.0 * (mu_c - mu_w) / mu_w
hu_myo[i] = 1000.0 * (mu_m - mu_w) / mu_w
hu_lip[i] = 1000.0 * (mu_l - mu_w) / mu_w
i = i + Int64(1)
end
WasmMakie.lines!(ax, es, hu_iod; color = WasmMakie.Cycled(1), linewidth = 2.4, label = "Iodine Lumen")
WasmMakie.lines!(ax, es, hu_ca; color = WasmMakie.Cycled(2), linewidth = 2.4, label = "Calcified Plaque")
WasmMakie.lines!(ax, es, hu_myo; color = WasmMakie.Cycled(3), linewidth = 1.9, label = "Myocardium")
WasmMakie.lines!(ax, es, hu_lip; color = WasmMakie.Cycled(4), linewidth = 1.9, label = "Lipid Core")
WasmMakie.vlines!(ax, [vmi_e]; color = (:black, 0.7), linestyle = :dash)
WasmMakie.hlines!(ax, [0.0]; color = (:gray, 0.45), linestyle = :dot)
WasmMakie.axislegend(ax; position = :rt)
return fig
endFigure 5. Live Pluto.jl notebook embedded as a native component via Snapshot.jl v0.3.2 (328.9 KB notebook and islands + 739.4 KB shared cached fonts.json = 1.07 MB first visit). Moving any slider runs the notebook's Julia physics code locally in your browser. Size-optimized compilation and shared font extraction cut first-visit transfer nearly 3x from the initial 3.1 MB build (26.2 KB HTML, 142.0 KB and 140.4 KB compiled plot groups, 15.9 KB shim, and 4.4 KB metadata). Because every notebook shares one cached fonts.json, adding a second two-plot notebook on the Software showcase costs only 357.8 KB extra. Shared WebAssembly module splitting between the two plot groups remains future work.
What this blog post itself downloads. If you inspect this page in browser DevTools, you will see a clear contrast between the 3.25 KB counter test in Section 3.3 and this showcase article. Because this post embeds the live 3D vessel plot (164.5 KB compressed) and the two-plot Pluto notebook (328.9 KB compressed plus the shared 739.4 KB font bundle), it downloads roughly 1.23 MB compressed of scientific plotting assets on a first visit (down from ~3.9 MB before WasmTarget v0.8.0 and shared font extraction), on top of the page's styles, fonts, and math formatting.
4. Discussion
Why Therapy.jl Is Fast, What the Results Mean, and Where It Fits
What we compared with, and what we did not. To test Therapy.jl under one browser harness, we compared Therapy.jl with frameworks across five common client approaches. On the official krausest/js-framework-benchmark suite, we measured hand-written JavaScript, Virtual DOM frameworks (React 19.2 and Vue 3.5), reactive JavaScript frameworks (SolidJS 1.9 and Svelte 5.42), linear-memory WebAssembly through Rust's Leptos 0.7.0, and C# WebAssembly through NetWasm UI 0.16. The Leptos entry uses the pinned client-rendered build from js-framework-benchmark, rather than newer Leptos 0.8+ releases or Leptos #[island] server builds. On page-load scaling, we compared Therapy.jl across 1, 3, 5, and 10 islands with local server-rendered builds of Astro 5 (paired with Preact, SolidJS, and Svelte 5) and Qwik 1.12, and verified five keyed frameworks on both Chrome 158 and Safari (WebKit 26.5). We did not test server-side full-stack frameworks (such as Next.js, SvelteKit, SolidStart, or Phoenix LiveView), and we did not include minimal micro-libraries (such as s-js, mikado, stage0, or Rust's dominator) that sit at the top of the official krausest table.
Why Therapy.jl is fast and light on memory. Three design choices explain the speed and memory results in Section 3. First, Therapy.jl wires reactive updates at compile time and keeps table rows in one flat WebAssembly list, instead of creating per-row signal objects and click handlers while the page runs. That static design puts Therapy.jl ahead of every tested peer on framework execution time at 1.14x (ahead of VanillaJS at 1.23x, SolidJS at 2.01x, and Svelte 5 at 2.52x in Table 1). Second, WasmGC shares the browser's built-in garbage collector and browser strings directly (wasm:js-string), keeping total browser tab memory at 2.33 MB for 1,000 rows and 13.45 MB for 10,000 rows (including shared Blink DOM layout memory), right alongside VanillaJS at 13.21 MB. On a single-island page, Therapy.jl also skips a JavaScript hydration runtime, shipping 3.25 KB compressed in total and staying flat at 3.31 KB for 10 reused instances (Tables 2 and 3). Third, total frame times stay close across the fastest frameworks (1.04x to 1.15x) because Chrome's layout and painting step takes most of the wall-clock time once any framework updates the page.
Where these gains actually matter. Lower total browser memory, less framework execution time, and small island downloads help most in three situations. On data-heavy pages, interactive plots, or older laptops and phones, cutting total tab memory by 32% to 57% at 10,000 rows compared with Leptos, SolidJS, Svelte 5, Vue 3, and React 19 leaves more headroom for the actual calculation and causes fewer garbage-collection pauses. On reading-heavy pages with one to six distinct islands (or any number of reused instances of one island), shipping static HTML plus a few kilobytes of compiled WebAssembly keeps initial downloads small. And when a widget runs pure Julia math (such as a physics model, a 3D plot, or a compatible Pluto notebook), compiling that code to WasmGC runs every slider move locally in the browser instead of paying for a live server and network round trips.
Where these gains do not matter, and where other frameworks won. Our measurements also show clear boundaries. Hand-written JavaScript stayed fastest overall (1.04x compared with 1.09x). SolidJS (4.5 KB, 38.3 ms first paint) and Svelte 5 (9.7 KB, 41.6 ms) beat Therapy.jl (10.9 KB, 76.7 ms) on 10,000-row bundle size and cold startup, and Rust Leptos led row selection (4.7 ms). Astro 5 paired with Svelte 5 led single-island first-click time (38.1 ms compared with 42.3 ms in Table 2). Once a page has 6 to 7 distinct islands, Astro 5 with Preact or SolidJS drops below Therapy.jl in total transfer because Therapy.jl v0.5.0 emits a separate .wasm file for each distinct island (Table 3). On Safari (WebKit 26.5) at 10,000 rows, VanillaJS (740.0 ms) and SolidJS (729.0 ms) finished 4% to 6% ahead of Therapy.jl (773.5 ms, Table 4). When a page shuffles many existing rows at once, hand-written JavaScript (7.52 ms) and SolidJS (7.87 ms) stay slightly ahead of Therapy.jl (8.07 ms, Table 5) because each WebAssembly-to-DOM call adds a small fixed cost. On an ordinary page with a simple form or a few buttons, no visitor will notice the difference between 1.04x and 1.14x frame time. Most importantly, synthetic benchmarks do not measure accessible UI libraries, third-party JavaScript integrations, or years of cross-browser fixes. Mature JavaScript frameworks have that foundation today, and Therapy.jl is not a replacement for React, Svelte, or SolidJS on general web teams.
How this fits into scientific computing and Julia. This approach is most useful in a focused niche: researchers, teachers, and engineers who already write simulations, data pipelines, and notebooks in Julia and need to share interactive work on the web. In the past, sharing an interactive Julia tool meant either rebuilding the frontend in JavaScript or hosting a live backend server (such as Dash, Streamlit, Shiny, or hosted Pluto) that uses server memory for every visitor. Static WasmGC compilation adds a third path for pure Julia code that compiles cleanly: interactive figures, embedded Pluto notebooks, and small web apps hosted as plain static files on GitHub Pages.
How this fits alongside other WasmGC ecosystems. Therapy.jl joins a wider group of languages building web tools on WasmGC. Dart's dart2wasm compiler powers Flutter Web and also builds static HTML sites with Jaspr (including Google's own dart.dev documentation site). Kotlin/Wasm backs Compose Multiplatform on canvas alongside DOM frameworks such as Kilua, and MoonBit targets both JavaScript and WasmGC for browser apps such as Rabbita and Chai. Those three ecosystems have one practical advantage over Therapy.jl today: Dart, Kotlin/Wasm, and MoonBit can all fall back to compiled JavaScript on older browsers, whereas Therapy.jl emits WasmGC only. We also did not benchmark Therapy.jl compared with Jaspr, Kilua, or MoonBit, so these numbers make no claim about how Therapy.jl compares with other WasmGC stacks.
Why Pluto.jl fits naturally with this model. Pluto.jl pairs naturally with Therapy.jl because Pluto already tracks which cells depend on each variable before the notebook runs. In a Pluto notebook, each @bind slider or toggle works like a Therapy.jl signal, and each group of linked inputs maps cleanly to one isolated WasmGC island. Snapshot.jl uses that static cell graph to extract and compile only the downstream cells that need to recalculate when a visitor moves a slider.
Snapshot.jl also builds on the protocol created by the Pluto.jl and PlutoSliderServer.jl maintainers. Because PlutoSliderServer.jl separated static notebook HTML from live slider updates, Snapshot.jl can either run those updates locally in WasmGC (forwarding any uncompilable cells to a live PlutoSliderServer.jl backend) or export lean Therapy.jl components (export_notebook(...)) that match the host site's fonts and theme directly.
Building out the rest of the full stack on existing Julia foundations. A real web application needs more than fast pages and browser widgets. Every production app also needs HTTP servers, databases, sign-in, cloud storage, and deployment. On the server side, Julia already has mature packages maintained over many years, including HTTP.jl (which Therapy.jl uses directly), JuliaDatabases (SQLite.jl, LibPQ.jl, and the newer pure-Julia Postgres.jl), and JuliaServices (for cloud storage and OAuth). What has been missing is a layer connecting those backend pieces to reactive browser views. As an early step, Recall.jl adds typed @table schemas, migrations, and live @query, @mutation, and @action functions that push database updates to open browser tabs over WebSockets. We are using Therapy.jl and Recall.jl together to build snapshot.show (with static hosting on Cloudflare). The maturity gap here is worth keeping in mind: HTTP.jl, SQLite.jl, LibPQ.jl, and JuliaServices have years of production use, whereas Postgres.jl, Therapy.jl, Recall.jl, and snapshot.show are still young and early-stage.
Why Build a Framework in Julia in the Age of Coding Agents?
A fair question today is why build a new web framework at all when coding agents can generate React and TypeScript apps in minutes. Part of the answer is simply that building Therapy.jl was fun, and Julia did not have a compiled web framework like this.
There is also an open question worth testing about single-language stacks and coding agents. In a Julia Discourse post, Tim Holy noted that AI agents could eventually make Julia more useful rather than less, partly because debugging a single-language codebase avoids tracing inputs across wrapper layers between a high-level language and C++. Whether a similar advantage holds for full-stack scientific web apps, where the simulation, plots, server routes, and browser widgets all live in Julia, is not something these benchmarks test, and that question remains open. Still, being able to trace a bug from physics code to browser widget in one language is a big part of why this experiment felt worth building.
5. Limitations & Roadmap
What Can Be Improved Next, and What This Architecture Cannot Solve Alone
Separating current engineering gaps from built-in trade-offs makes the limits of this stack easier to judge.
Current Engineering Gaps
Hot reload on larger apps. Therapy.jl v0.5.0 reloads CSS, routes, components, and cached islands inside one running process. The dev server has mostly been tested on small sites, can still hit edge cases on larger apps, and still needs a restart when package dependencies change in Manifest.toml.
Shared code across distinct islands. Today each distinct @island type builds its own standalone .wasm file and loader (+1.52 KB compressed per distinct island). Reusing one island 10 times stays flat at 3.31 KB, while Astro 5 with Preact or SolidJS drops below Therapy.jl past 6 to 7 distinct islands (Table 3). Splitting shared WasmGC helpers into one common module can push that crossover much higher, though we have not built or measured that change yet.
Even smaller plotting and table binaries. Upgrading to WasmTarget.jl v0.8.0, WasmMakie.jl v0.3.2, and Snapshot.jl v0.3.2 already cut Figure 4 by 4.8x (from ~770 to 805 KB down to 164.5 KB compressed) and cut Figure 5 nearly 3x (from 3.1 MB down to 328.9 KB plus one shared cached 739.4 KB fonts.json). Even so, the 10,000-row table bundle (10.9 KB) remains larger than SolidJS (4.5 KB) and Svelte 5 (9.7 KB), and multi-plot notebooks still include a separate ~140 KB WasmMakie copy per plot group until shared WebAssembly module splitting lands.
Browser events, fallbacks, and UI primitives. Standard clicks and form inputs compile directly, while richer pointer and wheel gestures (such as the 50-line bindOrbit3D helper in Figure 4) still use small JavaScript wrappers. Plain <form> fallbacks for older browsers and accessible UI primitives (dialogs, menus, focus traps) are still missing or early-stage.
Firefox benchmarks, upstream review, and debugging. We have submitted PR #2181 to krausest/js-framework-benchmark (passing rebuild-ci, awaiting maintainer review) and verified both Chrome 158 and Safari (WebKit 26.5). Headless Firefox benchmarks (blocked by our local macOS runner sandbox) and Julia-to-WasmGC source maps for browser step-debugging remain open.
Real-world mileage. Therapy.jl's compiled WasmGC architecture is roughly a week old. The framework still needs larger multi-page apps running in production before its strengths and rough edges are fully understood.
Structural Trade-Offs (By Design)
Dynamic reactive graphs. Compiling reactive dependencies ahead of time is what keeps runtime overhead low. Apps that create thousands of independent reactive signals on the fly inside arbitrary loops are still a better fit for SolidJS, Svelte 5, or Vue 3.
Compile time. Compiling Julia through type inference and wasm-opt will always take longer on a cold build than bundling plain JavaScript with Vite or esbuild.
Heavy row shuffles. Each call from WebAssembly to the browser DOM adds a small fixed cost. When many existing table rows move in one frame, hand-written JavaScript stayed slightly faster in our tests (7.52 ms compared with 8.07 ms).
Pure, well-typed Julia only. WasmTarget.jl compiles pure Julia whose types can be determined at compile time. Code that depends on runtime eval, dynamic dispatch, large dynamic packages (such as DataFrames.jl or DifferentialEquations.jl), or C, C++, and Fortran libraries (including upstream Makie.jl, Plots.jl, FFTW.jl, CUDA.jl, and BLAS/LAPACK LinearAlgebra routines) stays on the server.
WasmGC trade-offs and browser support. Compared with linear-memory WebAssembly (such as Rust or C++), WasmGC currently gives up shared multi-threaded memory across GC objects, direct SIMD vector instructions over GC arrays, zero-copy memory sharing with WebGL or WebGPU, and deterministic memory cleanup without browser garbage collection. Requiring wasm:js-string with no JavaScript fallback also limits support to recent browsers (Chrome 130+, Firefox 134+, and Safari 26.2+, with Safari 26.6+ needed for streaming compile options).
Live Julia server trade-offs. When run as a live server instead of a static site generator, a Julia process uses roughly 150 to 300+ MB of baseline RAM, pays startup precompilation time on cold containers, and cannot run on JavaScript edge workers such as Cloudflare Workers or Deno Deploy. Static HTML paired with WasmGC islands is therefore the main sweet spot today.
Even with those limits, the stack is already practical for small static scientific dashboards, interactive papers and docs, personal Julia sites, and compatible Pluto notebooks embedded inside larger pages, as long as you are comfortable with early-stage tooling.
6. Conclusion
An Early Starting Point for Pure-Julia Web Apps
WasmGC and JS String Builtins remove much of the runtime overhead that kept garbage-collected languages out of lightweight browser interfaces. By pairing server-rendered HTML with statically compiled islands, Therapy.jl v0.5.0 finishes right behind hand-written JavaScript on the official Chrome 158 table benchmark (1.09x weighted frame time, leading framework execution time at 1.14x), matches VanillaJS on total 10,000-row browser memory (13.45 MB compared with 13.21 MB, saving 32% to 57% compared with Leptos, SolidJS, Svelte 5, Vue 3, and React 19), runs cleanly on Safari's WebKit 26.5 engine, and ships 3.25 KB single-island pages (3.31 KB for 10 reused instances). Those gains come with clear trade-offs: mature JavaScript frameworks still win on 10,000-row table bundle size and cold first paint, distinct multi-island scaling above 6 to 7 islands, Safari 10,000-row peak speed, and ecosystem depth. Together with Snapshot.jl v0.3.2 for compatible Pluto notebooks and WasmMakie.jl v0.3.2 for 164.5 KB interactive 3D plots, this stack is a practical early starting point for publishing interactive web pages straight from pure Julia.
7. Reproduce & Disclosures
Reproducing the Benchmarks
Every benchmark fixture, runner script, compliance check, and raw JSON dataset reported in Section 3 is public in the Therapy.jl benchmarks directory and in krausest/js-framework-benchmark PR #2181:
Benchmark files and raw results on GitHub. Inspect the official submission in krausest/js-framework-benchmark#2181, the island source and harness scripts in benchmarks/ (including benchmarks/README.md, krausest_island.jl, run_keyed_cdp.mjs, run_ssr_islands.mjs, and run_cross_browser.mjs), the raw JSON datasets in benchmarks/results/, and the full per-operation tables rendered live on the Therapy.jl benchmarks page.
Versions at time of publication (December 4, 2026). Both this site and the primary benchmark suites in Section 3 build with Therapy.jl v0.5.0 (2931c56), WasmTarget.jl v0.8.0 (53c978af), Snapshot.jl v0.3.2 (9edfc27c), WasmMakie.jl v0.3.2 (6c6455d1), Julia 1.12.7, and Binaryen (wasm-opt) 130. Primary measurements ran on Apple Silicon macOS in Google Chrome 158.0.8127.108 (V8) and Playwright WebKit 26.5 (JavaScriptCore), compared with official krausest/js-framework-benchmark builds of vanillajs, SolidJS 1.9, Svelte 5.42, NetWasm UI 0.16, Vue 3.5, Leptos 0.7 (CSR), and React 19.2 (Hooks), plus local server-rendered builds of Astro 5 (Preact, SolidJS, Svelte 5) and Qwik 1.12 checked into Therapy.jl/benchmarks/. The four stress tests in Table 5 were recorded earlier on the same machine in Chromium 149.0.7827.55.
Use of AI tools and demo disclaimer. AI coding tools helped with much of the software, benchmark scripts, and writing for this post. I guided the design, ran the benchmarks, and checked the main results and demos, though as a fast-moving solo project there could still be small bugs or details I missed, and corrections or pull requests are always welcome. AI tools also helped put together the illustrative toy notebooks and interactive demo figures shown in this post and across the site (such as the embedded CT physics notebook and 3D branching vessel visualization). Those demos are simplified examples meant for interactive visualization and software illustration, and were not verified with the rigor of a research study or clinical tool.