Summary
When Pocket shut down its service, I had more than a decade of saved links, and most alternatives felt cluttered, paywalled, or too dependent on those URLs continuing to work. As a solo developer, I built Loreo, a calm, self-hosted read-later app that preserves what I save. Migrating that archive exposed what broke, and fixing it took more than one run
4,405
Links in the archive
From 2014–2025
98.3%
Completed processing
4,328 of 4,405 links
6h 42m
Total import time
Final full run
50%
Smaller browser image
About 1.8GB to 900MB

Constraints
- Solo: every runtime I added was one more thing for me to deploy and maintain
- No content in the export: Pocket gave me URLs, titles, excerpts, and saved timestamps, so each article had to be fetched again
- Old links: some were more than a decade old, with dead pages, redirects, and moved domains
- Self-hosted: resource use mattered, and nobody should need a cloud account to run the app
- Modest hardware: I ran the final import on a VPS with 2 vCPUs and 8GB of RAM, since my laptop was too powerful to be a realistic test
Three decisions
1. Render every page in a browser
My first version used a simple fetch wrapper. It was light, but some sites, such as Medium, need JavaScript before meaningful content appears
Karakeep showed me a pipeline that crawls each saved URL with a headless browser. I started with headless Chrome, but some links hung with no error or log output. I suspected bot detection and tried stealth plugins, an ad blocker, and rotating user agents. The stubborn pages still hung
Switching to Camoufox, a Firefox build made to resist bot detection, got those pages crawling. Playwright controls it, and Mozilla Readability extracts the article
Cost: more memory, slower processing, and another service to deploy. Camoufox had no official container image, so I built one and reduced it from about 1.8GB to 900MB uncompressed, roughly 300MB to download
2. Accept first, process later
Fetching inside the save request would tie every user action to a website I don’t control. Instead, Loreo records the link first and hands extraction to a BullMQ worker backed by Redis
Cost: Redis becomes a required service, and the app has to track the state of every link
3. Import one link at a time
I could have queued all 4,405 links at once and processed several in parallel. Instead, an import extracts one link, and when it finishes or fails, queues the next

I wanted to keep browser memory under control by running a single browser instance and importing one page at a time. It felt like the safe and resource-friendly choice while I was building it
Cost: speed. The average works out to about 5.5 seconds per link, and every slow page delays the ones behind it. Limited parallelism inside the same browser is the alternative I would measure next
What broke
I tested the importer with 100 links, then 200. Both ran smoothly. The full archive exposed three problems
Browser processes piled up
On my laptop, OrbStack showed a dozen Firefox processes, each using more than 700MB of RAM. Several jobs could see the shared browser as disconnected and each start a new one, without cleaning up the old ones. A mutex and then a semaphore didn’t solve it
I stopped managing the browser from inside Node.js. It now runs as a separate service that the app connects to over WebSocket, and the app assumes it can disconnect
One link froze the chain
An old personal blog accepted the connection but never sent a response. The navigation timeout didn’t fire, and because the import is sequential, about 3,200 links waited behind it
I added a job-level abort signal, and made a failed link queue the next one. This is the price of the third decision: one stuck page can stop everything. In the current code the signal doesn’t interrupt page loading itself, so that gap still needs closing
A metadata library crashed the worker
About 1,200 links into a later run, metascraper threw on a page with malformed tags and took the worker down. It happened again on a different page. The metadata I needed was small, so I replaced the library with about 30 lines of fallback queries. The next run finished without a crash
Proof
| Measure | First complete run | After more fixes |
|---|---|---|
| Links in the archive | 4,405 | 4,405 |
| Completed | 4,126 (about 94%) | 4,328 (98.3%) |
| Did not complete | 279 (about 6%) | 77 (1.7%) |
| Total import time | Not recorded here | 6 hours and 42 minutes |
As far as I remember, much of the difference came from links that stalled the import. I looked for the cause of each hang, fixed it, and ran the import again
The final figures come from one full run from the start on the VPS (2 vCPUs, 8GB of RAM). They don’t include later retries of failed links. CPU and memory use climbed while extraction was running, and the browser stayed up without crashing
From what I saw, the remaining failures were link rot or websites that had moved to another domain. The app stores the same generic error message for each failure, so I haven’t confirmed the cause of all 77
Recovering an import
Between attempts, I reran the import from the start more than once, including against links that had caused hangs. I also reran only the failed links, and some succeeded on a later attempt
The app lets me cancel an import and resume it, which returns the in-progress link to pending. It can also retry only the failed links, still one at a time
What it got wrong
“Completed” does not mean readable
A page where Readability finds no content is still marked completed. The crawler also doesn’t check the HTTP status, so an error page can count as a success. 98.3% measures how many links got through the pipeline, not how many articles were preserved
Retries don’t work as intended
Jobs are configured for three attempts, but a link is marked failed after the first, so later attempts skip it. I have a fix planned
What I would do next
I would separate empty and error pages from real successes, and store the extraction version with each article to know what to reprocess
Beyond the pipeline

Extraction is infrastructure for the reader view. It has adjustable typography and themes, a paragraph indicator inspired by Readwise Reader, and j, k, and arrow-key navigation. Highlights were harder than they sound, because a selection across arbitrary HTML has to survive a page reload
What I took from it
Loreo is the first personal project I’ve shipped that I use daily, and my first complete full-stack app. I started building it locally in May 2025, when Pocket announced its shutdown, and moved it to GitHub in 2026. Development took almost a year
Being your own user makes it easy to justify every feature you want, so each one had to pass a test:
Does this help me read, or does it only help me manage what I might read?
The migration taught the other lesson: define success before measuring it. Next time I would count articles with readable content, not finished jobs
