Shiara ArauzoDesign Engineer
← All work

Case study 007

In development2026Web

Archive links and search them by meaning.

Capsule saves a link, archives the page's readable text, and lets you search your saves by meaning instead of keywords. The same embeddings draw a graph of related saves. I'm building it alone, and it is still in development.

Capsule
Role
Design engineer, solo build
Problem
Saved links rot. Pages return 404 and services shut down, and keyword search can't find a save when you only remember what it was about.
Decision
Embeddings run in the browser with Transformers.js, so search needs no paid API. Summaries are three real sentences picked from the page, not generated text. In June I moved the app to Neon, Drizzle and Better Auth.
Result
Capsule is in development and has not launched. Pro is planned at $29 a year.
Next.js 16Neon + pgvectorDrizzle

Context

What it does

Capsule saves a link with its metadata, archives the page's readable text as Markdown, and embeds it so you can search by meaning. A weekly job checks for dead links. The app is a PWA, so it works on a phone without an app store install. I wrote a shaping doc with the requirements and split the work into eight vertical slices before writing feature code.

Decision

Embeddings in the browser

Transformers.js runs the all-MiniLM-L6-v2 model in the browser when you save a link and produces a 384-dimension vector. There is no API key and no cost per call, and I kept that as a hard rule when I rewrote the backend. Summaries are not generated either. The code embeds every sentence of the archived page, scores each one against the whole document, and joins the three closest, so every sentence in a summary comes from the page.

Build

One set of vectors, two uses

The vectors live in Postgres with pgvector and an HNSW index. Search compares the query's embedding against them, and a React Flow graph draws edges between saves whose similarity passes a threshold.

Decision

Rebuilt on Neon, Drizzle and Better Auth

The app first ran on Supabase. When that project was deleted, I moved the data layer to Neon Postgres with Drizzle, replaced Supabase Auth with Better Auth, sent auth emails through Resend, and removed the old code. Supabase Auth had checked the session over the network on every request, which caused a 25-second hang at login. Better Auth checks a signed cookie with no network call. In the same change I replaced the $5 lifetime unlock with Pro at $29 a year. I compared prices with similar tools first and decided the $5 lifetime model was not sustainable.

Result

Where it stands

Capsule is in development and not public yet. Moving archived page text into object storage is planned but not built.

← All work