WorkAI Lab WorkAboutCraftContact
Back to AI Lab Work

Documents 2026

Margin

An AI reader that explains any document and shows you where it says it.

View live demoSee the screensSelf-initiated concept

Margin is a self-initiated AI reader I designed and built end-to-end. It starts from a familiar moment: a contract, a lawyer’s letter or a page of terms lands in front of you, and you sign it or scroll past without knowing what you agreed to.

Ask the document

Answers cite the contract.

Margin answer to “Can I work for a competitor after I leave?” with two “Where it says it” links

Highlighted source

One tap to the exact clause.

Margin point about a 1,200 euro learning budget, with its source clause highlighted on page 5 of the contract
20 hours a monthOvertime included in your salary
Challenge
Help people understand what they sign, before they sign it.
What I did
Margin explains each document in plain words. Every point has a link that opens the exact passage, highlighted on its page.
Result
A live demo in ten languages, Hebrew included, on an invented sample contract.
Role
Personal project I designed and built with AI, including the report layout and the checks on each answer.

AI UX Grounded answers

Every answer points to its source

Margin sends the relevant passages of the document to an open model (Llama 3.3 on Cloudflare Workers AI) and asks for short points, each one tied to the passages it comes from. The interface then checks that every point cites its passage, and that its numbers appear in it, before showing it. The reader never has to take the AI’s word for it: one tap shows the original text.

Try a sample contract

States designed

  • PDF and Word files, a link or pasted text
  • Several files, one report section each
  • Report in five groups: in short, in your favour, against you, watch out, key numbers
  • Where it says it: the passage highlighted on its page
  • Points removed when no source or a wrong number
  • Questions about the document, with sources
  • Not in the document: says so instead of guessing
  • Suggested questions
  • Listen and copy
  • Machine translation of a passage, the original stays the reference
  • Numbers written the local way (68 000 € in French)
  • Daily free AI allowance shown, with reset time
  • Allowance used up: a clear message, nothing lost
  • AI offline or slow: retry without losing the files
  • Sign in or create a demo account
  • My analyses: saved, reopened read-only, deleted with undo
  • Sign out with undo
  • Ten languages from one menu, Hebrew in RTL

Design decisions

No source, no point

Every point must cite a passage that was sent, and every number in it must appear in that passage. A point that fails either test is removed before it reaches the screen, and the report says how many were removed.

Answers you can check in one tap

“Where it says it” sits at the end of every point. It opens the original passage in place, highlighted, with its page number, so checking costs one tap instead of a search through the file.

Five questions people really ask

Instead of a generic summary, the report answers what a reader wants to know before signing: what it is, what is in my favour, what could work against me, what I must not miss, and the key dates and amounts.

See the 7 other decisionsShow fewer decisions

Read in the browser, send only what is needed

PDF and Word files are opened in the browser. The document's text (for a long document, its most relevant passages) goes to the AI, and no document is stored on a server. A link is fetched once, only to read the page.

Say “not in the document”

When a question has no answer in the text, Margin says so plainly instead of filling the gap with general knowledge. An honest “I can’t find it” keeps the other answers credible.

Your language, the original’s authority

The interface, the report and the answers follow the language chosen in one menu. A cited passage can be machine translated, but the highlighted original stays visible and is what counts.

Numbers that cannot be misread

Amounts are rewritten the way the reader’s language writes them, so “68,000” is never read as 68 in French or German. The check against the source still uses the original figure.

A limit shown, not hidden

The demo runs on a free daily AI allowance shared by all visitors. The page shows what is left and when it renews, in the visitor’s own time zone, so running out is expected, not a surprise.

Keep your analyses

With a demo account, every finished analysis is saved in My analyses: the points and the cited passages as text, never the files. Saved analyses open read-only, and deleting or signing out can be undone.

How I would test it

Moderated sessions with 6 to 8 people per round, each reading a real contract of their own type. I would measure how often people open “Where it says it”, whether they can find a risky clause faster than with the file alone, and a short trust score before and after checking a source.

Under the hood

Design System Foundation

Palette

Paper

#F6F5F1

Canvas: a warm page, like a printed document

Ink

#141414

Type · main buttons · key numbers

Marker

#FFE15A

Highlighted passage: the source behind a point

Link blue

#1F5FAD

Where it says it · links

In your favour

#22A06B

Green dot · checked · allowance left

Against you

#E5484D

Red dot · errors · allowance used up

Watch out

#E8920C

Amber dot · deadlines and conditions

Typography

Read it once. Understand it all.

Geist

400 · 500 · 600 · 700

Interface · headings · body

קוראים פעם אחת. מבינים הכול.

Heebo

400 · 500 · 700

Hebrew, right-to-left

Micro-typography

  • One icon set everywhere: Lucide, thin strokes, no filled shapes
  • A coloured dot per group, the text always stays dark
  • The cited passage opens in place, highlighted like a marker on paper
  • A small bar shows the daily AI allowance, green, then amber, then red
  • Messages stay on screen long enough to read, and stay while hovered
  • Concentric corners: inner radius plus padding equals outer radius

Interactions

  • Drop files, paste a link or paste text, from one screen
  • Report per file, with Listen, Copy and Clear
  • Questions with suggested prompts, answers with sources
  • Language menu that switches the interface and the next answers
  • Sign in or create an account, as in Otium, with a demo account
  • My analyses: open read-only, delete with undo

Constraints

  • Plain HTML, CSS and JavaScript: no framework, no bundler, no CDN
  • PDF.js and Mammoth open files in the browser, fonts are self-hosted
  • Ten languages from one string table, Hebrew in RTL
  • An invented contract as the sample: no real names or brands
  • Not legal advice: the report says it, the terms say it
Margin: screenshot 1
Margin: screenshot 2
Margin: screenshot 3
Margin: screenshot 4
Margin: screenshot 5
Margin: screenshot 6

On mobile

Margin: mobile screenshot
Margin: mobile screenshot
Margin: mobile screenshot
Margin: mobile screenshot
Open the live demo