|
| 1 | +# Prompt: Redesign the Harbor Website |
| 2 | + |
| 3 | +> **Historical artifact (May 2026).** This is the brief that produced the redesign that's currently live. It references files (e.g. `whitepaper/index.md`, `whitepaper/landscape.md`) that **no longer exist** — they were the Markdown drafts that drove the design and were retired when the static-HTML site shipped. The current site lives at `whitepaper/index.html`, `whitepaper/landscape.html`, `whitepaper/spec.html`, `whitepaper/build.html`, `whitepaper/styles.css`. See `whitepaper/README.md` for structure and `whitepaper/DESIGN_NOTES.md` for design rationale. The actual handoff (chat transcript + bundle README) is in `whitepaper/design-bundle/`. Keep this file as a paper trail for *what was asked*; don't take it as current state. |
| 4 | +
|
| 5 | +**How to use this (originally):** open Claude Design, paste the entire prompt below (everything between the rules), and attach `whitepaper/index.md`, `docs/POSITIONING.md`, `spec/README.md`, and the project `README.md` as context. Iterate on individual sections in Claude Design once you have the first draft. |
| 6 | + |
| 7 | +--- |
| 8 | + |
| 9 | +## Role and goal |
| 10 | + |
| 11 | +You are designing the public website for **Harbor**, an open proposal and reference implementation that turns AI into a browser capability — like `fetch()` is for networking. The site lives at the project's GitHub Pages URL (currently `whitepaper/` in the repo, served via Jekyll). We want to replace it with a beautifully designed single-page site (with a few subpages linked off it) that feels current as of 2026 and clearly explains why Harbor matters even though "AI in the browser" is now everywhere. |
| 12 | + |
| 13 | +The site has three audiences and you should design with all three in mind: |
| 14 | + |
| 15 | +1. **Web developers** who could build on the Web Agent API. They land here via Hacker News, Twitter, or a coworker. They want code in 30 seconds. |
| 16 | +2. **Standards / browser-vendor people** (W3C, Chrome, Firefox, Microsoft, Apple). They want the proposal, the threat model, and the WebIDL. |
| 17 | +3. **AI / privacy / "user-controlled AI" people** — Mozilla folks, EFF readers, Bruce Schneier blog readers, Simon Willison's audience. They want the architecture argument: why the browser, why now, what's wrong with the alternatives. |
| 18 | + |
| 19 | +The site should feel like one piece of work for all three; you reach the right depth by scrolling and clicking, not by switching to a different site. |
| 20 | + |
| 21 | +## Tone and voice |
| 22 | + |
| 23 | +Match the existing whitepaper. Not corporate. Not breathless. Lowercase where it fits ("your AI", "context is all you need"). It is a **proposal** with a working implementation — never marketing. We invite arguments. We are not announcing a product. |
| 24 | + |
| 25 | +Imagine the love child of: |
| 26 | + |
| 27 | +- **Stripe docs** (developer-focused, content-dense, code as first-class citizen, generous whitespace) |
| 28 | +- **Anthropic's website** (calm, intellectual, lots of room to breathe, restrained type) |
| 29 | +- **simonwillison.net** (frank, factual, "here is what I built and why") |
| 30 | +- **CSS-Tricks article layouts** (tables, code blocks, comparison tables done well) |
| 31 | + |
| 32 | +Avoid: |
| 33 | + |
| 34 | +- Stock illustrations of brains, lightbulbs, or robots |
| 35 | +- Gradients that feel like a 2022 SaaS startup |
| 36 | +- Animated hero videos with synth music |
| 37 | +- "AI" written in chrome 3D |
| 38 | +- Abstract isometric "platform diagrams" |
| 39 | + |
| 40 | +## Visual direction |
| 41 | + |
| 42 | +- **Light by default; dark mode toggle.** Both should look intentional, not derivative. |
| 43 | +- **Type-led design.** A confident editorial serif or a high-quality sans (think *Söhne*, *Inter Display*, or *Fraunces* + *Inter*). Big hero type. Generous line-height in body copy. |
| 44 | +- **One restrained accent color** — something a little unusual (rust orange, a deep teal, a muted plum). Not "Mozilla blue." Not "OpenAI green." Not "Anthropic salmon." |
| 45 | +- **Code is a star.** Code blocks should be elegant: a thin border or a soft tint, monospace that reads well at small sizes (JetBrains Mono, Berkeley Mono, IBM Plex Mono). Inline code uses a subtle tint, not a heavy box. |
| 46 | +- **Comparison tables are expected.** Plan for at least one wide comparison table that needs to render well on mobile (consider stacking by column on narrow viewports). |
| 47 | +- **Diagrams are minimal.** A single architecture diagram done as restrained line-art SVG (no gradients, no shadows). One per section maximum. |
| 48 | +- **Whitespace > density.** The page should feel like an essay, not a brochure. |
| 49 | + |
| 50 | +The aesthetic should feel like a serious proposal from people who have read a lot of W3C drafts. |
| 51 | + |
| 52 | +## Information architecture |
| 53 | + |
| 54 | +The home page is one long, scrollable page with these sections in order. Each section should be visually distinct (different background tint, different layout) without being noisy. |
| 55 | + |
| 56 | +1. **Hero** |
| 57 | +2. **The problem (the 2026 landscape)** — short |
| 58 | +3. **The proposal** — what changes if AI is a browser capability |
| 59 | +4. **How it works** — three concrete code snippets |
| 60 | +5. **Comparison: where Harbor sits** — the differentiation table |
| 61 | +6. **Standards convergence** — WebMCP, Chrome Prompt API, MCP, our piece |
| 62 | +7. **One sketch: Harbor** — the implementation, the architecture diagram |
| 63 | +8. **What you could build** — five concrete examples with one-line code |
| 64 | +9. **Security & permissions** — the threat-model story (compact) |
| 65 | +10. **An invitation** — feedback, contact |
| 66 | +11. **Get started** — three CTAs (read the spec, install Harbor, talk to us) |
| 67 | +12. **Footer** — links, changelog, contact, GitHub |
| 68 | + |
| 69 | +Use the copy in `whitepaper/index.md` (the rewritten version, not the current one) as the canonical text. Don't paraphrase it; render it. If you need a section that isn't in the source, ask before inventing. |
| 70 | + |
| 71 | +### Subpages to design (linked from the home page) |
| 72 | + |
| 73 | +These are simpler — text-led, like a long-form blog post in the same design system: |
| 74 | + |
| 75 | +- `/spec/` — the Web Agent API explainer (lives at `spec/README.md`). Long, technical, with sticky table of contents. |
| 76 | +- `/landscape/` — the full 2026 landscape essay (drawn from `docs/POSITIONING.md`). Same design as the spec page. |
| 77 | +- `/build/` — the developer "build with this" page (drawn from `QUICKSTART.md` and `docs/BUILDING_ON_WEB_AGENTS_API.md`). Code-first. |
| 78 | + |
| 79 | +Don't design every subpage in detail — design *one* (the landscape essay) as a template for the rest. |
| 80 | + |
| 81 | +## Hero requirements (be specific) |
| 82 | + |
| 83 | +- **Headline:** "AI as a browser capability." |
| 84 | +- **Sub-headline:** "Bring your AI to every website. Your model, your credentials, your context — mediated by the browser, not a vendor." |
| 85 | +- **Two CTAs:** "Read the proposal →" (primary) and "Install Harbor →" (secondary). |
| 86 | +- **A short, calm tag-strip** under the CTAs: a single line like *"a working sketch of what user-controlled AI on the open web could look like — open spec, working extension, Firefox + Chrome."* |
| 87 | +- **No hero image.** A single typographic hero with a tasteful underline or accent on one word. If you do show anything visual, make it a tiny architecture diagram or a single live-feeling code snippet — not a stock illustration. |
| 88 | + |
| 89 | +## Comparison table (be specific) |
| 90 | + |
| 91 | +The differentiation table from `docs/POSITIONING.md` is the centerpiece of the page. Design it carefully. |
| 92 | + |
| 93 | +- Four columns: "Vendor agent browsers (Atlas, Comet, Gemini in Chrome)", "Sidebar AI assistants (Brave Leo, Firefox AI Window)", "Chrome Prompt API + WebMCP alone", "**Harbor + Web Agent API**" (the last one visually distinguished). |
| 94 | +- ~9 rows (see `docs/POSITIONING.md`). Don't drop rows. |
| 95 | +- On mobile: stack into a card-per-column comparison or transpose. Don't horizontal-scroll a wide table on phones — that signals you didn't think about it. |
| 96 | +- The Harbor column should not feel like a sales pitch. Same visual weight as the others; the only difference is a single accent (a rule, a small dot, a subtle tint) so the eye lands there last. |
| 97 | + |
| 98 | +## Code snippets (be specific) |
| 99 | + |
| 100 | +Three code blocks should appear on the home page. Use these exact snippets — they're the API surface we want people to remember: |
| 101 | + |
| 102 | +```js |
| 103 | +// 1) Use the user's model |
| 104 | +const session = await window.ai.createTextSession(); |
| 105 | +const reply = await session.prompt("Summarize this page"); |
| 106 | +``` |
| 107 | + |
| 108 | +```js |
| 109 | +// 2) Run an agent that can call tools the user has approved |
| 110 | +for await (const ev of window.agent.run({ task: "find recent press on quantum chips" })) { |
| 111 | + if (ev.type === "tool_call") console.log("→", ev.tool); |
| 112 | + if (ev.type === "final") console.log(ev.output); |
| 113 | +} |
| 114 | +``` |
| 115 | + |
| 116 | +```js |
| 117 | +// 3) A page declares its own tool (W3C WebMCP) |
| 118 | +navigator.modelContext.registerTool({ |
| 119 | + name: "search_archive", |
| 120 | + description: "Search our 20-year archive", |
| 121 | + inputSchema: { type: "object", properties: { query: { type: "string" } } }, |
| 122 | + execute: ({ query }) => searchArchive(query), |
| 123 | +}); |
| 124 | +``` |
| 125 | + |
| 126 | +Render them with proper syntax highlighting. Keep them visually quiet — no faux-terminal chrome, no "copy" buttons that look heavier than the code itself. |
| 127 | + |
| 128 | +## Architecture diagram (be specific) |
| 129 | + |
| 130 | +Make one diagram, in the "How it works" section. Restrained SVG line-art. No gradients. Four boxes stacked vertically with thin connector lines: |
| 131 | + |
| 132 | +``` |
| 133 | + web page |
| 134 | + │ window.ai / window.agent |
| 135 | + ▼ |
| 136 | + browser (mediates) ←— user's permissions, per origin |
| 137 | + │ |
| 138 | + ▼ |
| 139 | + user's model user's MCP servers (page tools, remote tools) |
| 140 | +``` |
| 141 | + |
| 142 | +Make it look hand-drawn-but-precise, like a diagram in a paper, not a marketing illustration. |
| 143 | + |
| 144 | +## Footer / nav requirements |
| 145 | + |
| 146 | +- Top nav: *Proposal · Spec · Build · Landscape · GitHub*. Sticky on desktop, collapses on mobile. |
| 147 | +- Footer: small. Project name, license, contact emails (`raffi@mozilla.org`, `raffi.krikorian@gmail.com`), GitHub link, and the line *"a sketch by people inside Mozilla. not a Mozilla product."* |
| 148 | + |
| 149 | +## Things to deliberately get right |
| 150 | + |
| 151 | +- **Don't say "Harbor is an AI browser."** It isn't. It's a proposal, an extension, and a spec. The headline must communicate this. |
| 152 | +- **Don't position against Firefox.** Firefox is the primary platform. We're allies, not competitors. |
| 153 | +- **Don't oversell security.** We have a real, positive security story (scoped APIs vs. free-roaming DOM agents) — but we're a draft proposal, not a finished hardened product. Use words like "by design" and "smaller surface", not "secure" or "safe." |
| 154 | +- **Always link to the spec, not just the implementation.** The point is the standard. |
| 155 | + |
| 156 | +## Output |
| 157 | + |
| 158 | +1. **A complete `index.html` (or React component, your choice — but static HTML is preferred for a Jekyll/GitHub Pages site)** for the home page, with all sections, the comparison table, the architecture diagram (as inline SVG), the code snippets, and a tasteful dark-mode toggle. |
| 159 | +2. **A single shared CSS file** (or Tailwind config + a small custom layer) defining the type system, color tokens, spacing scale, and component styles. The CSS should be readable — this will live in the repo. |
| 160 | +3. **One subpage template** (`landscape.html`) demonstrating how long-form text pages look in the same system, including a sticky right-rail table of contents on desktop. |
| 161 | +4. **A short `DESIGN_NOTES.md`** describing the type choices, color tokens, and any deliberate decisions you made. We will use this to iterate. |
| 162 | + |
| 163 | +Output everything in one response if it fits, otherwise split clearly with headings: `=== index.html ===`, `=== styles.css ===`, `=== landscape.html ===`, `=== DESIGN_NOTES.md ===`. |
| 164 | + |
| 165 | +## What to ask before designing (if anything) |
| 166 | + |
| 167 | +If you have to pick between two reasonable directions and the brief doesn't say, just **show both** in side-by-side comments and pick a default. Don't stall on questions. Iteration will happen in Claude Design after the first draft. |
| 168 | + |
| 169 | +--- |
| 170 | + |
| 171 | +*The body copy for the home page is in `whitepaper/index.md`. The full landscape essay is in `docs/POSITIONING.md`. The spec lives at `spec/README.md`. Use those as the source of truth — don't write new claims.* |
0 commit comments