Skip to content

The moving parts

Outcome: a map of the parts inside every save, so that when a later chapter names a behaviour — a refused fetch, a missing title, a tag that appeared by itself — you know which part produced it.

The web application

Wallabag is a web application: a program that runs on a server and is used through a browser. The lab ran the official release package, which is a Symfony application in PHP with its libraries (vendors) pre-installed inside the release file. A small built-in PHP web server served it in the lab; a production install usually puts a full web server in front instead (chapter 3).

The database

Everything Wallabag keeps lives in a database: the entries, their extracted text, your tags, your account, your API clients. Wallabag supports SQLite, MySQL, and PostgreSQL. The lab used SQLite, where the whole database is one file — data/db/wallabag.sqlite, 216 KB right after installation. That file is the archive. Chapter 13 returns to what that means for backups.

The fetcher and the extractor

When you save an address, two workers act in sequence. The fetcher (a library called Graby) downloads the page over HTTP, following redirects. The extractor (built on the Readability approach) parses the downloaded HTML, decides which block of it is the article, and returns a title, a body, a language, and an estimated reading time. Chapter 6 is theirs: site-specific configuration files, the security filter that refuses some addresses outright, and the shape of a failed extraction.

Entries, tags, and states

A saved article is an entry. Each entry carries the extracted title and content, the original address, a reading-time estimate, and three organising tools: tags (labels you or a rule attach), archived (read, filed away), and starred (marked as important). The main lists — Unread, Archive, Starred, All — are views over those states, not separate piles. Chapter 5 reads them; chapter 7 works them.

The API and the clients

Wallabag exposes a REST API — a way for programs to do what the browser does: list, add, change, and delete entries. It is guarded by OAuth2, the token system chapter 9 uses for real. Browser extensions, phone apps, and ebook-reader integrations are all clients of that API or of the web interface (chapter 12).

The queues and the neighbours inside

For large jobs — importing hundreds of links, downloading article images — Wallabag can hand work to a queue backed by RabbitMQ or Redis. The lab did not run a queue; a single save is fetched on the spot, synchronously, and that is the path this guide verifies. Queues are named again in chapter 10, as documented-only.

Check: name the parts in order for one save — web application, fetcher, extractor, database — and say where the extracted text ends up. If you can, the rest of the guide has somewhere to hang.