Skip to main content

Overview

Rendered from corpus/wiki/overview.md · updated 2026-10-13

This page is generated from the project corpus and rewritten on every docs build. Edit the source in corpus/, not here.

Newspapper turns a story into an Instagram-style slide post: a set of 1080×1080 JPEGs plus a caption, ready to upload. You write the post yourself, as a Newspapper Wizard (.wzd) document, in a split-screen editor — source on one side, the live 1080 canvas on the other. The app compiles it and screenshots each slide in headless Chromium.

.wzd document → compile → HTML → Chromium → 1080² JPEGs → publish / ZIP

RSS is still here, but only as source material to write from: the Reader follows the feeds and keeps what they publish, Search scans them by keyword, and you save what is useful, with a note, to quote in a post. It is not a pipeline that produces one.

No model is involved anywhere. The person writes the words. See the decision.

Deployed on the shared VPS at /newspapper/. It has its own accounts (a login page, no register page), and "Sign in with Ward", the estate's identity service, is a second way in when Ward is configured. Locally: UI at http://localhost:4321/newspapper/, API at http://localhost:3001. No CLI.

Lineage (why it looks the way it does)​

Four passes, each of which left fingerprints:

  • v1 — a CLI with entity extraction, clustering, per-topic posts, an interactive REPL, and an OpenAI backend. All removed; the surviving scars are the no-* entries in decisions.md.
  • v2 — a single newspapper run command rendering through Satori + resvg. Simpler, but the renderer could not do real layout, which is what pushed v3 to headless Chromium.
  • v3 — the CLI became a web app: a Fastify API, an Astro + React wizard that scraped and then had Ollama compose the slides, a JSON template system, and a visual template builder.
  • The Wizard pivot (2026-08-27 onward, current — the package is still versioned 3.0.0, and "v4" in this wiki means the SQLite schema, not the product) — the LLM came out and a language went in. A post stopped being generated and started being written. With it went compose, the prompt page, the four-step wizard, the template system and /builder; in came the .wzd language and its compiler, the split-screen editor, single-account auth, image uploads, JPEG output, a three-theme family, and a new app chrome. Astro was then removed too — every page was fully hydrated behind auth, so nothing it offered was in use.

The specs of the v3 app and of the Wizard rebuild were folded into this wiki and deleted on 2026-11-02 (../log.md, "Briefs reset"); the v3 ones described a product that no longer exists.

The cast​

WorkspacePackageJob
core/@newspapper/coreThe library — the .wzd parser/formatter/linter/compiler, the TNode interpreter, Chromium rendering, RSS search and the Reader's refresh, image uploads, SQLite storage, theme loading. No HTTP, no UI.
api/@newspapper/apiFastify on 3001. Every /api/* route, the session guard and /api/auth/*, SSE for search, render and the Reader's refresh, the Reader's background loop, static serving in prod.
ui/@newspapper/uiA Vite + React SPA on 4321: editor (/), /posts, /reader, /settings. (/articles redirects to /reader; /login is the one page outside the board.)

Full structure and dependency direction: architecture.md.

What lives where​

PathContents
assets/design-systems/The three slide themes as JSON tokens — design-systems.md.
assets/fonts/Inter TTFs, read off disk by the render browser.
ui/public/fonts/Archivo + Spline Sans Mono for the app chrome, and a second Inter copy for the preview canvas.
data/newspapper.db. Gitignored, auto-created. (data/sources.json is tracked, but only as the one-time seed for the sources table.)
uploads/originals/ + normalized/ image store. Gitignored, path overridable.
output/YYYY-MM-DD-N/ — rendered JPEGs, slides.json, caption.txt. Gitignored.
corpus/This wiki, its work specs, and the change log.