Work

Enlight is a Chrome extension that fact-checks the text you select.

On an article, a sentence claiming the Great Wall of China is visible from the Moon is selected and checked with Enlight from the right-click menu. It glows while the check runs, then gets a red double underline and a card that says False, with two sources.

Select a sentence, right-click, and Enlight colors it in place: green when reliable sources back it, amber when it's complicated, red when sources contradict it.

Hover the color for the verdict, a short reason and the sources. Images, video frames and screenshots get the same check. You bring your own Anthropic or OpenAI key, or sign in with Google for hosted checks.

I designed and built all of it: the extension, the rules that set each verdict, a 277-case eval set, the hosted service and the landing page.

Role
Solo: product, design, engineering
Type
Personal project
When
November 2026
Stack
TypeScript, WXT, Preact, Zod, Cloudflare Workers, Next.js
01

Product decisions

A fact-check is worth asking for only if you trust the answer and asking costs you almost nothing. Most product decisions in Enlight come from one of those two.

A wrong red costs the most

Calling a true statement false breaks trust, and the statement may be about a real person. So the verdicts are asymmetric: red needs high confidence and two contradicting sources, and any doubt lands on amber.

Some real falsehoods show as amber. I accept that to keep wrong reds rare.

The model calls a claim false with 0.78 confidence and one source. The verdict rules block red, which needs 0.85 and two sources, and send the claim to Complicated.

Free with your own key, hosted for everyone else

The first version needed no server: the extension calls Anthropic or OpenAI directly with your key, and what you check never touches my infrastructure. Most people don't have an API key, so hosted checks run the same code through a small Cloudflare Worker with Google sign-in.

Two paths to the model. With your own key, the extension calls Anthropic or OpenAI directly. Without one, you sign in with Google and a Cloudflare Worker running the same core calls the provider.

Checks for what can't be right-clicked

Instagram covers every photo with a transparent layer, and charts, embeds and video players have no image menu at all. The picker dims the page and outlines whatever is under your pointer, looking through those layers, or lets you drag a box around any area.

A post with a chart image that can't be right-clicked. The picker dims the page and outlines the image under the pointer. A click checks it, and the image gets a red ring and a badge that says False.

Scholar mode, and what it can't do

For science and health claims, Scholar mode limits the search to 84 academic publishers and databases, weighs reviews above single studies and flags preprints. Quotes and recent news are rarely in the literature, so they come back amber, with a reason that says no academic source covers them.

Seven search results. In Scholar mode, the news site, the health blog and the forum thread are struck out one at a time and leave. PubMed, Nature, arXiv, marked as a preprint, and The Lancet remain.
02

UX/UI and brand

Enlight draws on other people's pages, so it has to read clearly on any site without breaking it. Its look comes from one idea, the traffic light, carried from the underline on a page to the landing site.

Color is never the only signal

Each verdict has its own underline: solid for supported, wavy for complicated, double for false. The card names the verdict next to its dot, so a result reads the same without color vision.

Three sentences with their verdicts. Supported gets a solid green underline, Complicated a wavy amber one, False a double red one, and each sits next to a label naming the verdict.

A wait you can watch

Searching the web takes a few seconds, so waiting needed a shape. The text breathes with a soft glow while the model searches. As the report streams in, a dot appears for each claim and takes its color once it's decided, then the dots merge into the verdict.

A sentence glows while the check runs and a card shows three dots. Each dot takes a claim's color as it is decided: green, amber, green. Then the dots merge into one amber dot labelled Complicated, and the sentence gets a wavy amber underline.

The card matches the page

The popover takes its light or dark look from the page you're reading, not from your system setting. A card on a dark site never flashes white.

The system theme stays light. On a light page the Enlight card is light; when the page turns dark, the card turns dark with it.

A palette tuned from the traffic light

Apple's stock traffic-light colors looked harsh on real pages, so I tuned a set with a text, line and fill tone per verdict that holds contrast on light and dark sites. The landing page carries the same colors, with a green and yellow glow behind the product shots.

Enlight's verdict palette: for Supported, Complicated and False, a text, a line and a fill tone, over the green and yellow glow used on the landing page.

The landing page

useenlight.com is a static Next.js site I designed and built alongside the extension. Its sections follow the questions a first-time visitor asks: what it does, how it decides, where the sources come from, what happens to their data and what it costs.

useenlight.com

The whole page, top to bottom

Each section changes its composition from the one before: split, centred, then mirrored. The ground shifts between white and a soft grey, so a long page never settles into one rhythm.

The full useenlight.com landing page scrolling from the hero, through claims, verdicts, sources, images, privacy and plans, to the footer.

The hero shows the product working

The first screen runs a live demo: a feed scrolls post by post, each post gets a different verdict, and the third check is a picture. The browser window runs off its lit panel at the bottom edge, which looked better than a window that fits inside the frame.

The useenlight.com hero: the headline Overcome misinformation on any page beside a browser window where a post about red wine is marked Complicated.

Structure drawn in hairlines

Rules and rails at the column edges carry the layout, with a small plus where two lines cross. I tried dot-grid backgrounds in several places and took every one of them out.

The verdicts section of useenlight.com: three columns divided by hairline rails with plus marks where they cross, one sentence marked Supported, one Complicated and one False.

Demos that explain one step at a time

Every animated demo shows cause and effect in order. It opens with a short lead-in, changes one thing at a time with a pause between, and holds the result for about two seconds. No counters or read-outs sit in the corners.

The claims section of useenlight.com: a paragraph about the Eiffel Tower with each claim underlined in its verdict color, next to a card that says Mostly true.

A plan lit from below

The hosted plan, the one that needs no API key, gets a green and yellow glow rising from the card's bottom edge and fading out before its name and price. Buttons are 10px rounded rectangles that only change color on hover.

The plans section of useenlight.com: a Closed beta card lit by a green and yellow glow from below, next to a Free card for your own API key.
03

Technical implementation

TypeScript end to end: a WXT extension with a Preact interface, a pure core shared with the evals, and a Cloudflare Worker for hosted checks. The model searches and proposes. Code decides what you see.

Code, not the model, sets the color

The model proposes a verdict per claim, with sources and a confidence. Fixed rules decide what you see: false needs 0.85 confidence and two contradicting sources, supported needs one, and the model's overall verdict can make a result more cautious but never escalate it.

The model's report says false, 0.78 confidence, one source. The rules check that false needs 0.85 confidence and fails, check for two contradicting sources and fail, and the page shows Complicated.

Invented sources never count

Every URL the model cites is matched against the pages its web search actually returned in that request, after normalizing hosts, fragments and tracking parameters. A URL that search never returned is dropped before the rules run, so it can't count or reach the card.

The model cites three URLs. Two match pages its web search returned, from who.int and nature.com. The third, from facts-daily.net, matches nothing the search returned and is dropped.

Colors arrive while the model writes

The model reports every claim in one tool call. Streaming that call lets a parser hand each finished claim to Zod as soon as it closes, so its dot takes a final color mid-report. Once a color is on screen, it doesn't change.

The model's report streams in as JSON. As each claim's object closes, its dot takes its final color: supported in green, complicated in amber, false in red, before the report has finished.

Evals that prove a number

277 labeled claims in seven languages run through the shipped code. A gate passes only when the 95% upper bound of its error rate clears the target. Zero wrong reds on 40 claims proves little, since the bound is still 7%. Proving the 2% gate takes at least 149 claims that aren't false.

Upper bound of the wrong-red rate at 95% confidence, with zero wrong reds observed. With 40 claims the bound is 7.2%, above the 2% gate, so the gate is not proven. With 149 claims the bound is 2.0% and the gate passes.

A core with no browser in it

Prompt, schemas, verdict rules and provider adapters live in a core that may not touch Chrome or the DOM, and lint fails the build if it does. The evals run exactly the shipped code, the hosted Worker shares its contract, and a future macOS app can reuse it whole.

The core, with the prompt, schemas and verdict rules, is shared by the extension, the eval runner and the hosted Worker, and later a macOS app. An import of Chrome or DOM APIs into the core is blocked by lint.