Skip to content
프로젝트

소개

A fast, self-hosted RSS/Atom feed reader with AI story clustering, neutral briefings, and prompt-driven topic streams.

AI 및 머신러닝

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+5
in 7 days
기록 수집 중
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Edition

Edition is a fast, self-hosted, single-user RSS and Atom feed reader designed as an attention firewall. It groups coverage of the same story into neutral multi-source briefings, organizes your subscriptions into auto-discovered and prompt-defined topic streams, and learns what you want more or less of without hiding your chronological history.

Built as a single static Go binary with an embedded React and TypeScript web app, backed by pure-Go SQLite in WAL mode, FTS5 full-text search, and an in-process vector index.

Tour Edition · Set up Edition and read your first feed · Install with an agent

Edition desktop reading stream

Promo video: Watch docs/media/edition-promo.mp4 (script in docs/promo/script.md).

What Edition does

  • Story clustering with neutral overviews: Multiple posts covering the same news event collapse into one story card with a concise, neutral briefing, inline source links, a right-floated lead image, and nested 3-line source briefs underneath.
  • Auto-discovered and custom prompt-driven topics: Edition discovers recurring themes across your feeds automatically and lets you define your own topic streams with a name and a clustering prompt. New custom topics immediately scan the last 14 days of posts in the background and classify incoming articles continuously.
  • Ranked or chronological feeds: Use + to boost coverage and - to dim it. Dimmed items stay unread and remain visible when you switch to chronological order.
  • Read It Later: Paste a public article URL into Saved and add an optional note. Saved articles and feed bookmarks share a queue, newest save first. Switch between All and Unread. No AI key is required.
  • Readability hydration: Short or truncated RSS items are automatically fetched and extracted with readability so opening any source defaults to clean, full-text prose (with a one-click toggle back to raw feed HTML).
  • Keyboard-first desktop, swipe-friendly mobile: Smart-paging j/k navigation, n/p story jumping, →/← inline source expansion, and the g t quick switcher. On phones, swipe right to mark read or left to save; change either gesture in Settings.
  • Category-organized feed management: Two-pane feed directory with category grouping, drag-and-drop recategorization, inline name/URL/category editing, an Issues view for failing feeds, and OPML 2.0 import and export.
  • FreshRSS migration: Back-import years of feeds, categories, articles, read state, and saved favorites directly from a FreshRSS SQLite database.

Screenshots

Custom prompt-driven topics modal
Define custom topic streams with a name and natural-language clustering prompt.
Edition mobile view
Mobile reading sheet with underlined topic tabs and swipe triage.
Category-organized Manage Feeds directory
Two-pane category directory with drag-and-drop organization, inline URL editing, and broken-feed triage.

Architecture

Edition runs a SQLite-backed job queue inside the server process. A serialized single writer and concurrent readers share one WAL-mode database file. Incoming articles flow through hydration, embedding, event clustering, neutral overview generation, topic classification, and affinity ranking:

flowchart LR
  Feeds["RSS / Atom / JSON Feeds"] --> Poller["Feed Poller"]
  Poller --> Hydrator["Readability Hydrator"]
  Hydrator --> Embedder["Embedder, emb-qwen3"]
  Embedder --> Story["Story Clusterer, link + vector + System One"]
  Story --> Overview["Neutral Overview LLM, deepseek-4.1-flash-background"]
  Embedder --> Topics["Topic Classifier, auto + custom prompts"]
  Story --> Ranker["Affinity Ranker & Soft Dimming"]
  Topics --> Ranker
  Ranker --> API["Go HTTP API & Embedded React SPA"]
  • Storage: Pure-Go SQLite (modernc.org/sqlite, CGO_ENABLED=0) in WAL mode with a serialized single writer and concurrent readers. FTS5 full-text search covers article search, and an in-process int8-quantized vector index with exact float32 reranking covers embedding similarity. Everything lives in one file, edition.db, so no external database server is needed. Back up by stopping Edition and copying that file.
  • AI pipeline: Uses LunaRoute (https://gw.lunaroute.com/v1) for embeddings (/v1/embeddings), fast calibrated yes/no decisions (/v1/systemone, e.g., djev or pplx-decider-v1.3), and structured JSON generation (/v1/responses, e.g., deepseek-4.1-flash-background). All models are runtime-configurable through environment variables.

Quick start (Docker Compose)

Follow the setup tutorial to start a local reader, check /api/health, and subscribe to your first feed. The stock Compose file listens on every host interface with login off. The tutorial binds it to 127.0.0.1 before first launch and keeps your database in the edition_data volume.

An agent can follow llms.txt on your behalf. Feed reading works without a LunaRoute key. Add one if you want generated briefings and topic classification.

Configuration

See .env.example for the complete list. Key environment variables:

Variable Default Purpose
EDITION_DB_PATH edition.db SQLite database file (/data/edition.db under Docker Compose)
EDITION_ADDR :8080 HTTP listen address
EDITION_PORT 8080 Host port exposed by compose.yaml
EDITION_PASSWORD / EDITION_PASSWORD_HASH (empty) Optional single-user login password or bcrypt hash
EDITION_SESSION_SECRET (random per boot) Secret for signing session cookies
LUNAROUTE_BASE_URL https://gw.lunaroute.com/v1 AI gateway base URL
LUNAROUTE_API_KEY (empty) API key (AI jobs pause cleanly when unset)
EDITION_EMBED_MODEL emb-qwen3 Embedding model for vectors
EDITION_DECIDER_MODEL pplx-decider-v1.3 Decision model (djev, pplx-decider-v1.3, or clairic-flash)
EDITION_LLM_MODEL deepseek-4.1-flash-background Full LLM for neutral overviews and topic naming
EDITION_ALLOW_PRIVATE_FEEDS false Allow feed fetches that resolve to private or loopback IP addresses (local testing only)
EDITION_POLLER_WORKERS 8 Concurrent feed poll workers
EDITION_CLUSTER_WINDOW_DAYS 30 Lookback window in days for automatic topic discovery
EDITION_STORY_SIM_THRESHOLD 0.72 Cosine similarity floor for story cluster candidates
EDITION_STORY_DECIDE_THRESHOLD 0.70 Decision probability floor to merge into a story cluster
EDITION_TOPIC_DECIDE_THRESHOLD 0.65 Decision probability floor for topic assignment
EDITION_DIM_THRESHOLD -0.35 Affinity score threshold below which items soft-dim
EDITION_EMBED_BACKFILL true Embed historical articles missing an embedding in the background
EDITION_TIMEZONE UTC IANA timezone for edition titles and daypart labels

CLI commands

From a fresh checkout, run npm --prefix web ci and make build. For example:

./edition serve
./edition import-freshrss --db /path/to/freshrss.sqlite --cluster-days 30
./edition recluster --days 30
./edition cluster-eval --out ./eval-report --days 7 --embed emb-qwen3 --deciders djev,pplx-decider-v1.3
./edition embed-backfill --batch-size 64
  • import-freshrss: Imports categories, feeds, articles, read state, and starred favorites from a FreshRSS SQLite database, then enqueues embedding and clustering jobs for recent entries.
  • recluster: Re-runs story clustering and/or topic discovery across the specified lookback window.
  • cluster-eval: Benchmarks embedding and decision model combinations against your real imported feeds and writes an HTML comparison report.
  • embed-backfill: Embeds historical articles that are missing an embedding for the configured model, newest first.

Migrating from PostgreSQL

An existing PostgreSQL Edition database can be copied into SQLite with the pg2sqlite command. The Postgres connection is read-only:

go run ./cmd/pg2sqlite --pg 'postgres://edition:[email protected]:55432/edition?sslmode=disable' --sqlite edition.db

The migrator preserves primary keys, rebuilds FTS and vector statistics, verifies row counts and ID ranges, and removes the target on failure. Pass --overwrite to replace an existing non-empty target.

Keyboard shortcuts

Key Action
j / k Smart-page through tall cards, then advance or step back
n / p (Shift+J / Shift+K) Jump story to story (marks skipped story read)
→ / ← Open focused source or essay inline / collapse and step back
o / Enter Toggle focused item or fold a cluster's sources list
m Toggle read / unread
s Save or unsave an article. Unsaving a manually captured page removes its local copy.
+ / - Mark "Into this" or softly dim ("Not into this")
v Open original article in a new tab
r Toggle Ranked / Chronological order
Shift+A Mark all read in All Unread, a feed, or a topic
g a / g s Jump to All Unread / Saved
g t Open quick topic and feed switcher
/ Focus search
? Show keyboard shortcuts
Esc Cancel edit or close modal

Development

Requires Go 1.26+ and Node.js 22+ only. No external database server is needed; backend tests create temporary SQLite files and clean up after themselves.

# Run backend tests against self-contained temporary SQLite files
go test -race -count=1 ./...

# Run frontend unit tests, typecheck, and production bundle
npm --prefix web test -- --run
npm --prefix web run typecheck
npm --prefix web run build

# Build standalone binary with embedded SPA
make build

Marketing site

GitHub Actions rebuilds the public site from main and deploys only site/dist/ to GitHub Pages. To preview it on your own computer, run make site from the repository root, then:

python3 -m http.server 8417 --bind 127.0.0.1 --directory site/dist

Open http://127.0.0.1:8417/. The site builds /setup/ from docs/setup.md and copies llms.txt to the site root. It does not replace the reader or require a running Edition instance.

License

MIT. The marketing site's asset credits list the licenses for the cover photograph and typeface.

관련 프로젝트 살펴보기

불러오는 중…