Frontend Libraries of the Day: wllama 4.0 with WebGPU, JS-Free Alloy CSS, Josh Comeau's Button Sounds, <relative-time> 5.5, and Hyper ElementsThematic roundup · digest for November 26
Knolling composition with modular WebAssembly blocks, audio effects, and UI components
Thematic roundup5 sections≈ 6 min

Frontend Libraries of the Day: wllama 4.0 with WebGPU, JS-Free Alloy CSS, Josh Comeau's Button Sounds, <relative-time> 5.5, and Hyper Elements

How much client-side JavaScript does your project really need, and what can you hand back to the browser? Native HTML opens modals and formats dates on its own, while WebAssembly and WebGPU run local language models. Here are five MIT-licensed open-source libraries built for concrete web jobs.

wllama 4.0: GGUF Models in the Browser Twice as Fast with WebGPU

Running a local LLM on the web used to hit either GPU bills or browser memory limits. wllama 4.0, released November 22, 2026, tackles both. This zero-dependency wrapper around llama.cpp runs quantized GGUF models right on the user's device. The engine moved to 32-bit memory with SIMD kernels and lifted the old 4 GB cap by sharding large files across multiple Wasm instances. It also adds hybrid CPU + WebGPU mode, speculative decoding (MTP, DFlash, DSpark, Eagle3), LoRA adapters, and full-duplex audio and video.

wllama 4.0 Speed on Chrome CPU (Apple M5 Max, 6 Threads)

Chrome and Firefox see the biggest gains, while Safari uses a compat build with smaller speedups (details in the v4.0.0 release notes). Weights still download on the first visit, though OPFS (Origin Private File System) caching and multi-threaded resume remove repeat waits.

// npm i @wllama/wllama
import { Wllama } from '@wllama/wllama';

const wllama = new Wllama(WLLAMA_CONFIG_PATHS);
// OpenAI-compatible call without your own backend
const { audio, sample_rate } = await wllama.createSpeech({
  input: 'Hello world',
  voice: 'female',
});

From the outside, it feels like a familiar typed OpenAI client: install the package and call methods with no server. Privacy stays intact, and your GPU bill is zero.

Alloy CSS: Interactive UI for Server HTML Without JavaScript

When a Rails, Django, Laravel, or htmx backend already renders HTML, shipping a JS framework just for a few modals feels like overkill. Alloy CSS solves it with one file—alloy.min.css (~24 KB gzipped)—with no bundler, no scripts, and two dark themes. Its GitHub repository includes utilities and ready-made patterns for dialogs, menus, drawers, tabs, tooltips, and toasts.

<!-- Single CSS file with no bundler or client JS -->
<link
  rel="stylesheet"
  href="https://cdn.jsdelivr.net/npm/@alloyhtml/css@1/dist/alloy.min.css"
>
<button
  type="button"
  commandfor="saved"
  command="show-modal"
  class="button bg-primary-1 text-white"
>Сохранить</button>

Interactivity relies on native <dialog>, popover, and Invoker Commands (commandfor and command). Everything works even with JS turned off, though older browsers lacking commandfor will need a polyfill.

Button Sounds: 50+ Tactile Button Clicks by Josh Comeau

A single MP3 click gets annoying by the fifth press—your ear catches the identical repeat right away. In button-sounds (v1.0.0), Josh Comeau fixed that with multisampling: he recorded dozens of slightly different takes for each click on a Zoom H4 (48 kHz WAV and 192 kbps MP3) and cleaned noise in Adobe Audition. Every press and release plays a random take, making buttons feel physical. You can test all 50+ sounds in the Sound Playground.

// npm install button-sounds
import { useRef } from 'react';
import { useButtonSounds } from 'button-sounds/react';

function TactileButton() {
  const ref = useRef(null);
  // Subtle click with random pitch variation
  useButtonSounds(ref, 'hi75-soft', {
    volume: 0.5,
    pitchVariation: 0.1,
  });
  return <button ref={ref}>Нажми меня</button>;
}

The package ships a vanilla JS API, a React hook (button-sounds/react), a lofi filter (bits: 4, downsample: 0.25), and self-hosting instead of the default CDN. Keep autoplay rules in mind (Media Engagement Index may mute audio before the first click) along with the lack of prefers-reduced-sound: keep volume around 25–50% and provide a mute toggle.

5.5: GitHub's Relative Time Web Component

There's no reason to bundle a heavy date library just to print "5 minutes ago." The @github/relative-time-element web component uses built-in Intl.DateTimeFormat and Intl.RelativeTimeFormat: pass an ISO 8601 timestamp, and the browser localizes and updates the text itself.

<!-- npm install @github/relative-time-element -->
<!-- Text fallback inside the tag works without JS -->
<relative-time datetime="2026-11-25T12:00:00Z">
  November 25, 2026
</relative-time>

Release v5.5.0 (November 23, 2026) ships two targeted fixes for large SPAs: the shared date observer no longer retains unmounted elements (fixing a memory leak), and an error in one element no longer breaks the shared page timer tick.

Hyper Elements: One React Codebase for PDFs, Emails, Images, and DOM

Usually, an order receipt gets coded three times: once for the web, once with HTML tables for email, and once more for PDF. Hyper Elements (@hyper-elements/react v0.5, React 18+) unifies them into one component tree. In the project repository, a single JSX tree renders to a table-based email (<Email> with HTML and plain text), a zero-JS web page (<Page>), a document or PDF (<Document> + renderPdf()), and images.

// npm install @hyper-elements/react react react-dom
import {
  Column, Email, Heading, Page, Text, render,
} from '@hyper-elements/react';

const content = (
  <Column style={{ padding: 32, gap: 16 }}>
    <Heading level={1}>Thanks, Ada.</Heading>
    <Text>Your order is on its way.</Text>
  </Column>
);

const { html, text } = await render(<Email width={600}>{content}</Email>);
const { html: pageHtml } = await render(<Page width={960}>{content}</Page>);

It includes built-in layout checks for email clients and diagnostics for AI agents. Since the package is still at v0.5, pin the exact version in production and watch for API changes.

Want a deep diveVotes help us choose what to break down in detail. This material has 0 votes.
Sources · 12