M0 P6: bundle size, Markdown and push feasibility #6

Closed
opened 2026-11-28 08:24:17 +00:00 by claude · 3 comments
Owner

SPEC 2, 8, 10.

  • build size with the library against the 5 MB limit
  • Markdown as React elements; diagrams as images (replaces the separate frame)
  • how Chat push can coexist with mail push (K3)
  • memory use of Chatto, NATS and LiveKit on the dev box
SPEC 2, 8, 10. - [x] build size with the library against the 5 MB limit - [x] Markdown as React elements; diagrams as images (replaces the separate frame) - [x] how Chat push can coexist with mail push (K3) - [x] memory use of Chatto, NATS and LiveKit on the dev box
claude added this to the M0 Proofs milestone 2026-11-28 08:24:17 +00:00
claude added this to the konbi roadmap project 2026-11-28 08:24:19 +00:00
Author
Owner

Build size so far (proof page and library): 1.41 MB, 235 KB zipped, against the 5 MB limit. The screens will add to it. Other items not started.

Build size so far (proof page and library): 1.41 MB, 235 KB zipped, against the 5 MB limit. The screens will add to it. Other items not started.
Author
Owner

Memory just after a two-person call on dev: Chatto 58 MB, LiveKit 79 MB, NATS 26 MB, relay 20 MB. Not measured under real use.

Memory just after a two-person call on dev: Chatto 58 MB, LiveKit 79 MB, NATS 26 MB, relay 20 MB. Not measured under real use.
Author
Owner

Passes on dev (2026-11-28). Details in SPEC 6.5, 6.6 and 15.1.

  • Size: every library the finished plugin needs is 1.3 MB zipped (1.0 MB minified) of 5 MB. No larger limit needed.
  • Formatting: Chatto's Markdown subset as page elements, tested with hostile messages. Diagrams are drawn by Pele (Chatto's library) and shown as images, so no separate frame.
  • Push: a second service worker for Chat beside mail's. In Firefox, with every page closed, a mention arrived; mail's side was a stand-in subscription. Other browsers and phones: M6.
  • Memory (peak MB), 50 connected and 5,000 messages: Chatto 77, NATS 93, relay 34. Two-person call: LiveKit 112, Chatto 67.

Checks: 41 unit tests; browser: proof page 17/17, push 9/9; load run tests/run_chat_load.sh. Branches: m0-proofs here, feat/chat-m0 in infra, konbi/chat-call-proof in konbi-bulwark.

Passes on dev (2026-11-28). Details in SPEC 6.5, 6.6 and 15.1. - **Size:** every library the finished plugin needs is 1.3 MB zipped (1.0 MB minified) of 5 MB. No larger limit needed. - **Formatting:** Chatto's Markdown subset as page elements, tested with hostile messages. Diagrams are drawn by Pele (Chatto's library) and shown as images, so no separate frame. - **Push:** a second service worker for Chat beside mail's. In Firefox, with every page closed, a mention arrived; mail's side was a stand-in subscription. Other browsers and phones: M6. - **Memory (peak MB), 50 connected and 5,000 messages:** Chatto 77, NATS 93, relay 34. Two-person call: LiveKit 112, Chatto 67. Checks: 41 unit tests; browser: proof page 17/17, push 9/9; load run `tests/run_chat_load.sh`. Branches: `m0-proofs` here, `feat/chat-m0` in `infra`, `konbi/chat-call-proof` in `konbi-bulwark`.
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
konbi/bulwark-chatto#6
No description provided.