Skip to main content
T2 fan-out · personal / research: for_each fans one nika:fetch with mode: metadata per URL — the page’s OG/meta head as typed data, not a scrape — with retry: for transient blips and on_error: recover: so a dead link degrades to a { dead: true } row instead of failing the batch. nika:jq renders the triage table; nika:write persists it.

The job

Every bookmark pile has the same two questions: what is this, and is it even alive? Answering them by hand means opening every tab. This workflow answers both in one run — title/description/site from each page’s own metadata, dead links marked as dead — and leaves a table you can sort, grep, and prune from.

The shape

The file

bookmark-triage.nika

The resilience ladder, in order

  1. retry: { max_attempts: 2, backoff_ms: 500 } — a transient blip gets a second chance BEFORE any verdict.
  2. on_error: recover: — a link that still fails becomes { dead: true } and the batch keeps walking. recover: takes a YAML value, not a JSON string: quote it and jq downstream sees an unindexable string instead of an object.
  3. The table renders both worlds — the jq step escapes pipes and newlines from page-controlled metadata (a | in someone’s OG title must not break your markdown table), and dead rows print as DEAD instead of vanishing.
The quiet lesson: mode: metadata fetches the page’s head, typed — when all you need is identity, don’t ask for the body.

Run it

What it needs: Network access to example.com and github.com. No model and no key. With no network the run still succeeds: every row takes the recover: path and the table lists it as dead.
1

Rehearse it

Nothing is written in your folder. Its network fetches still go out: a rehearsal replaces the model, not the tools. Before it runs, nika try names those hosts: may reach: example.com · github.com · this-domain-does-not-exist-0000.invalid — the mock replaces the model, not the network.
2

Get your own copy

Save the file above as bookmark-triage.nika in a new folder. It reads no sample file.
3

Check it, then run it

The run writes out/bookmarks.md.Replace const.bookmarks with your own list (most browsers export bookmarks as HTML; one jq pass turns that into the URL list this file expects), and add each new host to permits.net.http.