dreamstack/examples
enzotar d7961cdc98 feat: universal bitstream streaming — any input → any output
New crate: engine/ds-stream/
- Binary protocol: 16-byte header, typed frame/input enums
  - Frame types: Pixels, Delta, Audio, Signal, Neural (0x01-0x43)
  - Input types: Pointer, Key, Scroll, Gamepad, MIDI, BCI (0x01-0x90)
- WebSocket relay server (tokio + tungstenite)
  - Source → receivers: frame broadcast
  - Receivers → source: input routing
- Codec: encode/decode, XOR delta compression, RLE, convenience builders
- 17 unit tests, all passing

Streaming modes (stream-source.html):
1. Pixel mode: raw RGBA framebuffer (~28 MB/s)
2. Delta mode: XOR + RLE compression (~1-9 MB/s, 70-95% savings)
3. Signal mode: compact JSON signal diffs (~2 KB/s, 12000x reduction)
4. Neural mode: procedural SDF pixel generator (concept demo)
5. Audio channel: spring velocity→frequency synthesis
6. Multi-receiver: broadcast to all connected clients

Thin receiver client (stream-receiver.html, ~300 lines):
- Zero framework, zero build step
- Renders any incoming bitstream mode
- Local signal-diff renderer for signal mode
- AudioContext playback for audio frames
- Full input capture: click/drag, keyboard, scroll
- Per-channel bitstream bus visualization

DREAMSTACK.md: Phase 7 section with protocol spec
2026-02-25 10:29:44 -08:00
..
benchmarks.html feat: signal propagation benchmarks + dev server HMR fix 2026-02-25 01:06:07 -08:00
counter.ds feat: DreamStack compiler foundation — Phase 0/1 2026-02-25 00:03:06 -08:00
dashboard.html feat: Phase 2+3 — effects, streams, springs, search + dashboard 2026-02-25 00:13:09 -08:00
form.ds feat: two-way binding, form props, and async resources 2026-02-25 08:08:37 -08:00
list.ds feat: for-in list rendering + component system 2026-02-25 01:33:28 -08:00
playground.html feat: Phase 5 — Live Playground with editor, preview, signal graph, console 2026-02-25 00:27:42 -08:00
router.ds feat: hash-based router + keyed list reconciliation 2026-02-25 07:54:00 -08:00
search.html feat: Phase 2+3 — effects, streams, springs, search + dashboard 2026-02-25 00:13:09 -08:00
showcase.html feat: showcase — What DreamStack Does That Nothing Else Can 2026-02-25 00:34:46 -08:00
stream-receiver.html feat: universal bitstream streaming — any input → any output 2026-02-25 10:29:44 -08:00
stream-source.html feat: universal bitstream streaming — any input → any output 2026-02-25 10:29:44 -08:00
todomvc.ds feat: TodoMVC example with full reactivity 2026-02-25 00:06:20 -08:00
todomvc.html feat: TodoMVC example with full reactivity 2026-02-25 00:06:20 -08:00