# Plan: CP437 blocks, modules and ntfy printing Status: **phase 1 in progress.** Every design decision for phases 1-4 is made; the open questions left are an assumed default, config values, a calibration check and the second printer. Each phase runs in its own session, briefed from its section. ## Decisions (owner, 2026-11-29) - **ntfy server:** self-hosted at a public URL. The subscriber authenticates with a token. Attachments come from a public host, so no private-network exception in safehttp is needed. - **Which priorities print:** configurable per subscription (minimum priority, and whether priorities 1-2 print in the compact form). Default: all priorities, 1-2 compact. - **Text folding on /print:** yes. Characters the code page lacks fold to ASCII look-alikes (smart quotes, dashes, ellipsis) and an emoji sequence prints as one '?'. - **Language:** English labels ('URGENT', 'HIGH', 'Tags:', '... N more lines'). Footer time zone and format come from config, default local time and "02 Jan 15:04". ## Decisions (owner, 2026-11-30) - **Links:** every link prints as a QR code: the click URL and the view actions, deduplicated, at most 3. `[ntfy.format] qr` defaults to "all". - **Image attachments** print (`images = true`). - **Edited messages** print again, marked "(updated)" (`updates = "print"`). - **Paper budget:** 5 receipts per 10 minutes per subscription by default, configurable; the rest fold into one digest receipt. Priority 5 always prints. - **Quiet hours:** wanted, as a morning digest, and part of phase 4. During a configured window only priority 5 prints; everything else is held and printed as one digest receipt when the window ends. Window, days and time zone come from config (default 22:00-07:00 every day, local time); off unless configured. ## Overview FOUNDATION The plan starts from Design 1 (components): layout blocks inside the existing element list, small Go modules that turn a plain payload into an ordinary receipt.Job, and ntfy as one of those modules. It is cut down to the vocabulary that notes and notifications actually need: - box, rule and kv in phase 1 - list in phase 2 Ideas taken from the other designs: - From Design 2 (templates): fit boxes, a hand-written markdown subset with no new dependency, a plain fallback receipt, a since=