Skip to main content

Crate beecast_player

Crate beecast_player 

Source
Expand description

The first-party beecast player as a crate: clean-room, dependency-free asciicast (v1/v2/v3) player and VT100/xterm-subset terminal emulator. Consumers inline the two constants whole — a <script> element and a <style> element — and get the full player: parsing, emulation, playback with idle compression, chapter markers, keyboard control, and live-follow append for recordings that are still growing.

The JS globals are BeeCastVT (the DOM-free core) and BeeCastPlayer (the public API); this crate is the component’s canonical home.

Constants§

PLAYER_CSS
The player chrome and terminal palette. All colors are CSS variables, so the embedding page can theme them; nothing is fetched (no fonts, no images).
PLAYER_JS
The player bundle: vt.js (asciicast parsing + the VT emulator + the pacing map, all DOM-free) then player.js (the renderer, playback clock, and controls). Inline it in one <script> element; it performs no network requests and loads no workers.