Skip to main content

Build a personalized daily newspaper as a print-ready PDF.

Project description

Morning Paper

Your morning newspaper, built from your own sources.

Morning Paper is a Python CLI that builds a personalized daily paper as a print-ready PDF. It starts with deterministic collectors, writes durable file artifacts, and gives you a newspaper you can actually print and read.

No database. No Docker. No SaaS requirement.

For Agents (read this first if you are one)

Your human wants a daily printed paper. You can give them one:

  1. Install: pip install "morning-paper[pretty]" then morning-paper doctor.
  2. If this repo is installed as a Claude Code plugin, run the setup skill — it interviews the reader, creates their private newsroom repo (preferences as files: the owned algorithm), and wires a morning routine. The edition skill composes and renders each day's paper.
  3. The CLI speaks JSON. The verbs you need:
    • morning-paper stage <url> -> stages it for tomorrow and answers with a page estimate ("that adds ~5 pages")
    • morning-paper queue -> what's staged vs the page budget
    • morning-paper estimate <file.md> -> page count, nothing written
    • morning-paper render <file.md> --style <s> --palette <p> -> the PDF
  4. Composition contract, class vocabulary, and chart directives: docs/composing.md.
  5. Honesty rule: a section with no data says "not configured" — never fabricate.

What It Does

  • Builds a daily paper from Hacker News and RSS feeds
  • Prints one or more articles on demand with morning-paper print <url>
  • Produces JSON, Markdown, HTML, and PDF artifacts
  • Typesets any markdown file through print style packs with morning-paper render
  • Renders charts from plain-text directives (bars, sparklines, stat blocks) — no plotting library
  • Ships mono and color palettes, each designed for its printer
  • Works without an LLM key
  • Uses the typewriter print stack when installed; doctor says plainly when you are on the portable fallback, and the typewriter path fails clearly rather than degrading silently

Quick Start

For the real product-quality print path, install the pretty renderer:

pip install "morning-paper[pretty]"
morning-paper init
morning-paper doctor
morning-paper build

That writes your paper under:

~/.local/share/morning-paper/<date>/

If you only want the basic fallback install:

pip install morning-paper

That path is functional, but it is not the renderer you should judge the product by.

Platform Support

  • macOS
    • recommended
    • install morning-paper[pretty]
    • may also need:
brew install pango gdk-pixbuf
  • Linux

    • recommended
    • install morning-paper[pretty]
    • may also need system libraries for WeasyPrint such as pango/cairo packages from your distro
  • Windows

    • CLI works
    • portable fallback works more reliably today
    • typewriter via WeasyPrint is best-effort, not the strongest supported path yet

Install Notes

Use morning-paper doctor after install.

  • renderer: typewriter ready
    • you are on the real print path
  • renderer: typewriter unavailable
    • you are on a fallback-only install
    • high-quality print output is not available until the pretty stack is working

On macOS, the richer renderer may also need:

brew install pango gdk-pixbuf

Example Commands

# Create a starter config
morning-paper init

# Build today's paper from your configured sources
morning-paper build

# Build a paper for a specific date
morning-paper build --date 2026-04-15

# Print an article right now
morning-paper print https://example.com/article

# Typeset your own markdown through a style pack (see docs/composing.md)
morning-paper render brief.md --style flow --palette mono

# List styles and palettes
morning-paper styles

# Verify the install
morning-paper doctor

# Show the installed version
morning-paper --version

Current Sources

Source Auth needed? Status
Hacker News No Included
RSS feeds No Included
Article URLs No Included via print

Rendering

Morning Paper currently supports two renderers:

  • typewriter
    • the primary product look
    • the recommended install path
    • requires the pretty print stack
    • uses WeasyPrint
  • portable
    • explicit pure Python fallback
    • lower fidelity
    • do not use this as your default judgment of Morning Paper's design quality
    • only use this if you intentionally want the simpler output

Default config:

article_extractor: jina

outputs:
  renderer: typewriter

jina is the current default article extractor, but extraction is now a replaceable backend. The print renderer, validation, image pipeline, and metadata enrichment are designed to survive extractor upgrades.

If typewriter cannot render, Morning Paper now fails clearly instead of silently generating a lower-quality PDF. If you explicitly want the simpler fallback, set:

outputs:
  renderer: portable

Product Shape

Morning Paper is intentionally narrow.

It is:

  • a CLI
  • file-first
  • print-oriented
  • local-friendly

It is not:

  • a second-brain platform
  • a wiki
  • a database-heavy personal knowledge system
  • a closed feed or recommendation engine

Install for Development

git clone https://github.com/dmthepm/morning-paper.git
cd morning-paper
pip install -e ".[dev]"
python -m pytest tests/
morning-paper doctor

Roadmap

  1. Keep improving article print fidelity in the typewriter renderer
  2. Add queueing and staging commands for agent-driven daily workflows
  3. Add optional LLM scoring without making it a requirement

Contributing

See CONTRIBUTING.md.

Community

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

morning_paper-0.3.0.tar.gz (52.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

morning_paper-0.3.0-py3-none-any.whl (52.4 kB view details)

Uploaded Python 3

File details

Details for the file morning_paper-0.3.0.tar.gz.

File metadata

  • Download URL: morning_paper-0.3.0.tar.gz
  • Upload date:
  • Size: 52.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for morning_paper-0.3.0.tar.gz
Algorithm Hash digest
SHA256 80c39a626aa8169d57692a2cc9e5b7b120f2e6d3dc427eb1b0e8848697faf4e2
MD5 4fd2e64fb6f24fd37bc03f37e6a60f10
BLAKE2b-256 8c50d7e818169c41f85fada160c94fb19b74ac46c2dab07b9249b36abec6f83b

See more details on using hashes here.

Provenance

The following attestation bundles were made for morning_paper-0.3.0.tar.gz:

Publisher: publish.yml on dmthepm/morning-paper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file morning_paper-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: morning_paper-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 52.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for morning_paper-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 970600c7791bdd5063a74bd681306e5736e123b450df9b982ce308d22e7b6f70
MD5 c60f5957a78d8b16c2a2ec46bca5f398
BLAKE2b-256 05782dc6f1a41f2bad30ba5d73a296b911076dd222e5cb0becb5d35c43939ddb

See more details on using hashes here.

Provenance

The following attestation bundles were made for morning_paper-0.3.0-py3-none-any.whl:

Publisher: publish.yml on dmthepm/morning-paper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page