Skip to content

Commit 532a688

Browse files
rcursoragent
andcommitted
whitepaper: ship redesigned static site, retire Jekyll
Implement the design produced in Claude Design (handoff bundle preserved in whitepaper/design-bundle/). Replace the Jekyll scaffolding with hand-written static HTML: - index.html — hero, problem, proposal, three primitives, comparison table (with mobile card-stack), standards convergence, architecture SVG, what-you-could-build, security, invitation, get-started - landscape.html — long-form essay template ("the four shapes") with sticky right-rail TOC and active-section highlighting - spec.html — Web Agent API overview + permission scopes + threat-model paragraph, deep-links to the full explainer in the repo - build.html — install + hello-AI + run-an-agent + page-tools, deep-links to the full developer docs - styles.css — Instrument Serif + Inter + JetBrains Mono, paper-warm light + cool-slate dark, one rust-clay accent used in five places - whitepaper/README.md — directory guide - whitepaper/DESIGN_NOTES.md — type/color/spacing rationale, reconciled to the shipped Instrument Serif (vs the rejected first-draft Fraunces) Update the GitHub Pages workflow to skip Jekyll entirely: stage whitepaper/* into _site/, copy demo/, docs/BUILDING_ON_WEB_AGENTS_API.md, and spec/README.md as before, drop .nojekyll. Header comment in the workflow explains the May 2026 transition. Mark the historical prompt files (CLAUDE_DESIGN_PROMPT.md, PROMPT_FOR_EXTERNAL_MOZILLA_INTELLIGENCE.md) with explicit "historical artifact" headers since they reference Markdown drafts that no longer exist. Record the change set in CHANGELOG.md [Unreleased]. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent bcf84e0 commit 532a688

18 files changed

Lines changed: 2848 additions & 352 deletions

‎.github/workflows/deploy-pages.yml‎

Lines changed: 40 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
# Deploy whitepaper and demo directories to GitHub Pages
1+
# Deploy whitepaper (static HTML) and demo directories to GitHub Pages
2+
#
3+
# As of May 2026, whitepaper/ is hand-written static HTML (no Jekyll). See
4+
# whitepaper/README.md and whitepaper/DESIGN_NOTES.md for the design rationale.
5+
# This workflow just stages the right files into _site/ and lets GitHub Pages
6+
# serve them as-is — .nojekyll is added so Pages doesn't try to re-process them.
27
name: Deploy to GitHub Pages
38

49
on:
@@ -12,13 +17,11 @@ on:
1217
- '.github/workflows/deploy-pages.yml'
1318
workflow_dispatch:
1419

15-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1620
permissions:
1721
contents: read
1822
pages: write
1923
id-token: write
2024

21-
# Allow only one concurrent deployment
2225
concurrency:
2326
group: pages
2427
cancel-in-progress: true
@@ -30,44 +33,50 @@ jobs:
3033
- name: Checkout
3134
uses: actions/checkout@v4
3235

33-
- name: Setup Ruby
34-
uses: ruby/setup-ruby@v1
35-
with:
36-
ruby-version: '3.2'
37-
bundler-cache: true
38-
working-directory: whitepaper
39-
4036
- name: Setup Pages
4137
id: pages
4238
uses: actions/configure-pages@v4
4339

44-
- name: Build Jekyll whitepaper
45-
working-directory: whitepaper
46-
run: |
47-
bundle exec jekyll build --baseurl "/Harbor"
48-
env:
49-
JEKYLL_ENV: production
50-
PAGES_REPO_NWO: ${{ github.repository }}
51-
52-
- name: Prepare combined site
40+
- name: Stage site
5341
run: |
42+
set -euo pipefail
5443
mkdir -p _site
55-
# Copy whitepaper Jekyll build to root (whitepaper is the main site)
56-
cp -r whitepaper/_site/* _site/
57-
# Copy demo static files
58-
cp -r demo _site/demo
59-
# Remove unnecessary files from demo
60-
rm -f _site/demo/package.json _site/demo/package-lock.json
61-
rm -rf _site/demo/node_modules 2>/dev/null || true
62-
# Copy build-on-API guide for published docs (invite people to build with AI tools)
63-
mkdir -p _site/docs
44+
45+
# 1. whitepaper/ is the static-HTML site root. Copy everything except
46+
# historical/internal artifacts that don't need to be served.
47+
rsync -a \
48+
--exclude 'README.md' \
49+
--exclude 'DESIGN_NOTES.md' \
50+
--exclude 'CLAUDE_DESIGN_PROMPT.md' \
51+
--exclude 'PROMPT_FOR_EXTERNAL_MOZILLA_INTELLIGENCE.md' \
52+
--exclude 'design-bundle/' \
53+
whitepaper/ _site/
54+
55+
# 2. Demo pages (live demos linked from the site).
56+
rsync -a \
57+
--exclude 'package.json' \
58+
--exclude 'package-lock.json' \
59+
--exclude 'node_modules/' \
60+
demo/ _site/demo/
61+
62+
# 3. Selected docs published alongside the site so the in-page
63+
# "BUILDING_ON_WEB_AGENTS_API" link and the spec README work
64+
# when read off the Pages URL too.
65+
mkdir -p _site/docs _site/spec
6466
cp docs/BUILDING_ON_WEB_AGENTS_API.md _site/docs/
65-
# Copy spec README for published docs
66-
mkdir -p _site/spec
6767
cp spec/README.md _site/spec/
68-
# Add .nojekyll to prevent GitHub from processing with Jekyll again
68+
69+
# 4. Belt-and-braces: ensure GitHub Pages serves files exactly as
70+
# written. whitepaper/.nojekyll already covers this, but rsync's
71+
# excludes can hide dotfiles depending on glob settings, so we
72+
# re-touch it here as a guarantee.
6973
touch _site/.nojekyll
7074
75+
# Sanity output for the action log.
76+
ls -la _site/
77+
echo "---"
78+
ls -la _site/docs/ _site/spec/ _site/demo/ | head -40
79+
7180
- name: Upload artifact
7281
uses: actions/upload-pages-artifact@v3
7382
with:

‎CHANGELOG.md‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,25 @@ All notable changes to Harbor will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Added
11+
12+
- **Public site redesign** — implemented the design produced in Claude Design. The site is now hand-written static HTML (`whitepaper/index.html`, `whitepaper/landscape.html`, `whitepaper/spec.html`, `whitepaper/build.html`, `whitepaper/styles.css`) with a Fraunces / Instrument Serif + Inter + JetBrains Mono type system, a single rust-clay accent, and a compare-and-contrast comparison table that re-stacks into cards on phones.
13+
- **Internal positioning doc** at `docs/POSITIONING.md` captures the May 2026 landscape, the differentiation table, talking points by audience, and a source list. Source of truth for messaging.
14+
- **Design paper trail** preserved in `whitepaper/DESIGN_NOTES.md`, `whitepaper/CLAUDE_DESIGN_PROMPT.md`, and `whitepaper/design-bundle/`.
15+
- **`whitepaper/README.md`** documents the new site structure.
16+
17+
### Changed
18+
19+
- `README.md` — "Why This Exists" rewritten to reference the May 2026 landscape (Atlas, Comet, Gemini in Chrome, Brave Leo, Firefox AI Window, WebMCP, Chrome Prompt API) and to clarify Harbor's lane.
20+
- `spec/README.md` — "The Problem" extended with a fourth bad option ("just use the user's AI browser") and a paragraph framing the gap left by WebMCP and the Chrome Prompt API.
21+
- `AGENTS.md` — `whitepaper/` description updated to reflect the static-HTML structure and `docs/POSITIONING.md` flagged as the messaging source-of-truth.
22+
23+
### Removed
24+
25+
- The old Jekyll scaffolding under `whitepaper/` (`_config.yml`, `_layouts/`, `Gemfile`, `index.md`, `landscape.md`) — replaced by static HTML. `.nojekyll` added so GitHub Pages serves the files as authored.
26+
827
## [0.1.0] - 2026-02-04
928

1029
### Added

‎whitepaper/.nojekyll‎

Whitespace-only changes.

‎whitepaper/CLAUDE_DESIGN_PROMPT.md‎

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
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

Comments
 (0)