Repository navigation
Replace dead StackBlitz embed with a self-hosted, name-gated terminal - #11
Merged
Merged
Conversation
The landing page iframed stackblitz.com/edit/run-cv, which now renders editor-only with no terminal — the demo has been broken. Also removes the two LinkedIn buttons, the last plaintext names on the page. Ports the browser build from craig-o-curtis.github.io/scripts/run-cv-web: esbuild bundles our own src/cli.tsx (not the npm package, so the page tracks HEAD), memfs holds the CV markdown, Ink renders into xterm.js. No server, no shell. On top of that port, since this repo is public: the page boots to an `npx run-cv ___` prompt with an empty in-memory filesystem. Each human's markdown is written at build time to h/<sha256(salt+name)>/ payload.json and fetched only once a visitor types a name that hashes to it. A miss seeds nothing and falls through to run-cv's own ACCESS DENIED screen. terminal.js and index.html carry zero names — verified by an integration test, not just by eye. Also: - Both build-scoped fixes needed to bundle from source rather than a published package: the import.meta.url rewrite now covers every file under src/, not just the entry (cvParser.ts and App.tsx read their own location too); esbuild's JSX runtime is set to "automatic" so React resolves at runtime. - The two themed CV PDFs (terminal/vintage) move from playwright-core generation in dist/pdf/ to committed files in public/, alongside the existing ATS ones — build:pdfs has never run in CI and playwright-core ships no browser binary, so these can't be regenerated on every deploy. - Deploy moves off the legacy branch builder onto GitHub Actions (.github/workflows/pages.yml); docs/run-cv/ is generated and gitignored rather than committed. - ci.yml gains typecheck + build:web steps and chore/** in its branch filters (this branch previously ran no CI at all). 147 tests from the blueprint plus 66 new ones covering the gate, the hash, the payload split, and an integration assertion that the built bundle names nobody.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Replaces the dead StackBlitz embed on the GitHub Pages landing page with a
terminal we build and host ourselves, gated behind a name prompt so the page
doesn't publish anyone's CV to crawlers or casual visitors.
Before: an iframe pointing at
stackblitz.com/edit/run-cv, which nowrenders editor-only — no terminal, demo broken. Two "Contact Architect"
buttons also put both full names in the page source.
After:
docs/index.htmlshowsnpx run-cv ___and a[ RUN ]button.Typing a known name boots that person's CV in the same CRT-framed monitor;
anything else shows run-cv's own ACCESS DENIED screen. The LinkedIn
buttons are gone — contact info lives on the terminal's own contact screen,
behind the gate.
How
Ported
scripts/run-cv-web/fromcraig-o-curtis.github.io— esbuildbundles a Node CLI for the browser with hand-written shims, memfs holds the
markdown, Ink renders into xterm.js — and pointed it at this repo's own
src/cli.tsxinstead of the npm package, so the page tracksmain.The anonymity layer is new work on top of that blueprint:
terminal.js. It's written at buildtime to
docs/run-cv/h/<sha256(salt + name)>/payload.jsonand fetchedonly once a visitor types a name that hashes to that path.
run-cv's own
catchrenders ACCESS DENIED. No custom error UI needed.shared/human-hash.tsis the one hash implementation, imported by boththe Node builder and the browser page, so they cannot drift apart.
?h=<hash>supports a shareable deep link that skips the prompt.Is this an npm release?
No. Nothing under
src/(the actual CLI) changed,package.json'sversionanddependenciesare untouched, and everything this PR addslives outside the
"files": ["dist", "README.md"]the npm package ships —docs/,scripts/run-cv-web/, andpublic/*.pdf. No version bump, nopublish.
Other changes bundled in
.github/workflows/pages.yml).docs/run-cv/is generated at build time and gitignored rather thancommitted — the legacy branch-builder Pages setup can't do that.
Requires a manual step after merge: flip the repo's Pages source from
"Deploy from a branch" to "GitHub Actions"
(
gh api -X PUT repos/northguild/run-cv/pages -f build_type=workflow),done after this merges so the workflow exists first.
Playwright-generated at publish time) are now committed to
public/alongside the existing ATS ones —
build:pdfshas never run in CI, andplaywright-coreships no browser to run it with.ci.ymlgainstypecheckandbuild:websteps, andchore/**inits branch filters — this branch previously ran no CI at all.
pre-built npm package: the
import.meta.urlrewrite now covers everyfile under
src/(not just the entry —cvParser.tsandApp.tsxalsoread their own location), and esbuild's JSX runtime is set to
"automatic".Testing
213 tests (147 from the blueprint + 66 new),
pnpm typecheck,pnpm lintall pass. Verified in a real browser (Playwright + Chrome) against a local
server that mirrors the Pages path layout exactly
(
scripts/run-cv-web/preview.mjs—npx serve docsis wrong here, itgets the
/run-cv/run-cv/prefix wrong):qquits, Restart returns tothe prompt (not back into a CV)
?h=deep link boots without typingcurlingterminal.jsandindex.html— zero name occurrences🤖 Generated with Claude Code