I wanted a reading social network that recommends for real. So I built a recommendation engine, a BNF catalog ingestion pipeline, and an API designed for mobile. The architecture of a system, not a page.
RDF parser on ~10 GB dumps at constant RAM, cross-referenced Wikidata SPARQL resolution, cascading deduplication.
Signed taste profile + real IDF + scorer + orchestrator (6 classes), cache invalidated by taste signature. No ML library.
Google Books + Open Library, deduplicated by canonical key, re-ranked by popularity.
Stable versioned DTO (public ULID), HTTP cache, JWT ready for future mobile.
Follows, lists, reviews, likes, notifications, activity feed, 6 permission voters.
PHPStan level 6, 85 test files (~35%), Argon2id, internal identifiers never exposed.