Shipfolio
discover what people built, what failed, and what they learned
Problem
Social media rewards launches, not lessons. Shipfolio is an index of what people actually shipped — including the abandoned projects and the post-mortems — built on the observation that 'what did you learn?' is more interesting than 'what did you launch?'. The engineering problem was keeping a scraped, denormalized index honest without a maintenance army.
Thinking
The data is the product, and the data is borrowed. Scraping means the source of truth lives elsewhere, so the entire architecture is built around reconciliation: what changed, what died, what moved.
Denormalize aggressively and accept staleness. Every read is a single indexed query — no joins across scraped entities — because the alternative is either N+1 queries or an eventual-consistency headache I didn't need.
Cron workers do one small thing each. A scraper that fails should fail loudly and leave the database untouched, not write partial states.
Architecture
Engineering
- Data flow
- Scheduled workers fetch sources, diff against the current index, and produce change events. A normalizer cleans and merges them; a classifier tags projects as active, shipped, or abandoned. Writes land transactionally or not at all.
- Persistence
- Postgres with one wide, denormalized table per entity plus a changes log. The changes log doubles as an audit trail and a rebuild source — the entire index can be reconstructed from source snapshots plus the log.
- Concurrency
- Workers run on staggered schedules with per-source rate limits and advisory locks, so overlapping runs can't double-write. Idempotency comes from content hashes: reprocessing the same source produces the same diff, which produces a no-op.
- Caching & failure modes
- The whole read layer is aggressively cacheable — content changes on the order of hours, not seconds. Failure modes handled explicitly: source layout changes, rate limiting, duplicate projects under different URLs, and link rot.
What broke
A source changed its HTML and silently broke ingestion
The scraper returned 200 with empty content for weeks and nobody noticed. Now every worker asserts a minimum yield per run and alerts when extraction quality drops.
Duplicate projects everywhere
The same project appeared under five URLs. Content-hash deduplication and URL canonicalization reduced the index size by a third and made search actually useful.
Cron jobs overlapped and double-wrote
A slow run overran its schedule and raced the next one. Postgres advisory locks per source fixed it in five lines and taught me that idempotency and locking are both required, not either.
What I'd change
- A queue with backoff instead of raw cron — schedules and work are different things and cron conflates them.
- Content-addressed storage for scraped snapshots so historical diffs become first-class data.
- Machine classification of project status instead of heuristics — the heuristics plateaued quickly.