Skip to content

feat(site): add the landing page and its live demo - #25

Draft
t41372 wants to merge 2 commits into
feat/agent-history-productfrom
feat/landing-page
Draft

t41372 wants to merge 2 commits into
feat/agent-history-productfrom
feat/landing-page

Conversation

@t41372

@t41372 t41372 commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

PathKeep's website, to go live with v0.6.0: one static page in English, Traditional Chinese and Simplified Chinese, in its own Astro package under site/. The app itself doesn't change. It targets feat/agent-history-product because it ships with that release.

The page

In order: an opening card whose window shows each space's records page (Browsing and Agent); how long browsers keep history, against keeping it forever; the two spaces; a feature wall; privacy; a window that runs the real app; questions; download. Also a 404 page, llms.txt built from the English copy, robots.txt, a share picture per language, and _headers, which caches files with hashed names for a year.

  • Paintings hang as panels in a 1440 px column on a dark wall. Each one is drawn in code by site/hero-lab/, a WebGL2 painter with a fixed seed, so a recipe always paints the same picture.
  • As the first screen scrolls away, the opening card's frame closes in and its window grows (Motion's scroll()); section heads and panels rise into place once. With reduced motion or without script the page stays still and fully visible.
  • The feature wall's Search, History and Insights pictures are cut from the demo, so their words are the app's own in each language.
  • site/README.md covers building, the paintings, the demo, the checks and publishing.

The demo

site/demo/vite.config.ts builds src/ as it is and swaps the three modules that reach the backend (src/lib/ipc/bridge.ts, events.ts, search-stream.ts) for ones that replay answers recorded from the real backend over synthetic browsers. src/ doesn't know about it, and the desktop build never contains it. AGENTS.md, DEVELOPMENT.md and two architecture docs now name it as the one exception to having no browser-preview backend: it is for visitors to try, never for testing.

  • A change (a setting, a star, a note, the backup schedule, Back up now) is answered the way the backend answers one that went through, then forgotten; a reload starts over. Anything else, such as importing, restoring or deleting the archive or changing its key, says in the visitor's language that the demo can't do it.
  • Each answer is typed with the reply the app's client declares, so tsc -p demo fails when a reply changes shape.
  • Insights stay in the recording's time zone without offering to move; History's date presets follow the visitor's own zone.
  • It is frozen at the version it was recorded from: 6a67d6f, which About shows as 0.5.0-dev. The built app and its recording are committed under site/public/app/ (the second commit), and a release doesn't touch them. build:demo refuses to build when src/ is not as it was at the recording's commit, and the recorder refuses to write a recording that still names the machine it ran on.

Validation

On this branch, rebased onto feat/agent-history-product:

  • Root bun run check:js: Prettier, ESLint, i18n, tsc -b, 124 unit tests, bun audit.
  • site/: bun run check (astro check, tsc -p demo) with no errors, and bun audit finds nothing. A copy of this commit built the way Cloudflare Pages will build it (bun install --frozen-lockfile && bun run build in site/) gives, byte for byte, the dist/ the checks below ran on.
  • hero-lab/page-check.ts in Chrome and in WebKit: every language at desktop, wide desktop and phone width, as a visitor loads it, including scrolling past the demo, clicking into it and scrolling away.
  • check:demo in all three languages, and as a visitor in Los Angeles, Denver, Berlin, Tokyo, Auckland and Honolulu: every step of the walk is answered from the recording or worked out from it, and a visitor's changes show no error.

The full bun run check (Rust and E2E) was not run locally; it runs in CI on this PR, and nothing under src/ or src-tauri/ changes here. Its first run stopped at a Rust test that comes from the base branch: vault-worker's root_admission test control::after_delete_all_data_the_root_is_a_first_run_again installs a macOS schedule, and on Linux the wipe finds no installed schedule (WipeReport { schedule_removed: false, schedule_error: None }). The steps after it, including E2E, did not run. That gate reaches site/ only through Prettier: root ESLint skips it, and the site's own checks above are not part of it.

Not in this PR

  • The Cloudflare Pages project, the domain (site in astro.config.mjs, which turns on the canonical URL and hreflang links) and analytics.
  • The Agent space in the demo, and pictures of the Agent screens taken from the real app. Until then the hero's two records pages, the demo window's picture before it loads and the wall's Agent insights come from the v0.6 design prototype. WORK-SITE-DEMO-V060 in docs/plan/BACKLOG.md.
  • In the demo, turning on semantic search in Settings › AI stays at "Downloading the language model…" without an error. Noted in the same block.

PathKeep has no website, and v0.6.0 is to be the first release with
one. site/ is its own Astro package, built by Cloudflare Pages on its
own (`bun install --frozen-lockfile && bun run build`): one page in
English, Traditional Chinese and Simplified Chinese.

- Paintings hang as panels in a 1440 px column on a dark wall. Each is
  drawn in code by hero-lab/, a WebGL2 painter with a fixed seed, so a
  recipe always paints the same picture.
- The opening card's window shows each space's records page. As the
  first screen scrolls away, the frame closes in and the window grows
  (Motion); with reduced motion or without script the page stays still.
- The feature wall sets screenshots cut from the demo on the paintings,
  so their words are the app's own in each language. The retention
  chart sets how long browsers keep history against keeping it forever.
- The demo window runs the real app. demo/vite.config.ts builds src/ as
  it is and swaps the three modules that reach the backend for ones
  that replay answers recorded from the real backend over synthetic
  browsers. A visitor's changes are answered as if saved and then
  forgotten; importing, restoring and deleting say the demo can't do
  them. Each answer is typed with the reply the client declares, so
  `tsc -p demo` fails when a reply changes shape.
- demo/record.ts runs the backend in a throwaway folder and refuses to
  write a recording that still names the machine (home folder, user,
  host, Git e-mail, checkout). build:demo refuses to build when src/ is
  not as it was at the recording's commit.
- llms.txt is built from the English copy, robots.txt lets every
  crawler in, and _headers caches files with hashed names for a year.
- AGENTS.md, DEVELOPMENT.md and two architecture docs name the demo as
  the one exception to having no browser-preview backend: it is for
  visitors to try, never for testing. BACKLOG adds WORK-SITE-DEMO-V060
  (record the demo again from v0.6.0, with the Agent space) and a chart
  label the demo showed cut off in Chinese.
- Root ESLint skips site/, which `astro check` types; Prettier formats
  its sources and skips what it generates.
The demo stays at the version it was recorded from instead of being
built again for every release, so the built app and its recording are
committed and the site's build only copies them. This one was recorded
from 6a67d6f (About shows 0.5.0-dev) over 22,766 synthetic visits,
browsing only. It passes check:demo in all three languages and as a
visitor in six other time zones.
@vercel

vercel Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
pathkeep Ready Ready Preview, v0 Nov 16, 2026 1:32am UTC

@coderabbitai

coderabbitai Bot commented Nov 16, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch was successfully deployed

1 active deployment
Preview — 8d0aab59 Deployed Nov 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant