Peter Hraska’s statically exported personal site: a Kaki-on-paper homepage, an MDX blog, project archive, and a few small Japan toys.
Requires Node.js 20.9 or newer.
npm install
npm run devOpen http://localhost:3000.
npm test
npm run test:e2e
npm run buildnpm testruns the Vitest unit, component, content, and build-contract suite.npm run test:e2ebuilds the site, serves the productiondist/export onhttp://127.0.0.1:4187, and runs Playwright against that static output.npm run buildcreates the deployable static site indist/.npm run test:buildbuilds and verifies every required route, metadata file, article SEO marker, and same-origin asset contract.
To inspect the already-built export manually:
python3 -m http.server 4187 --bind 127.0.0.1 --directory distPushes to main run the full test and static-build checks, then publish
dist/ to GitHub Pages through .github/workflows/pages.yml. The production
custom domain is virpo.io; GitHub Pages owns HTTPS and redirects www to the
apex domain once both DNS records are configured.
Posts live in content/blog/*.mdx. Add a file with validated frontmatter:
---
title:
description:
publishedAt:
updatedAt:
tags:
socialImage:
draft: false
---Use ordinary MDX prose plus the controlled ArticleImage and ImagePair
components already used by the existing posts. Their media URLs must be
canonical paths inside /assets/blog/; traversal and encoded traversal are
rejected. npm run test:build catches invalid frontmatter, unsupported MDX,
missing same-origin files or routes, and incomplete article metadata before
deployment.
Study progress is stored in localStorage as virpo-study-v2. On first load,
an existing virpo-study-v1 record is repaired and copied into v2 without
modifying or deleting the v1 value. Current-version data is normalized and
upgraded without losing card progress. Earned groups are persisted
monotonically, so later deck growth cannot relock them.
If a newer storage version is present, this build leaves its exact bytes
untouched. Study remains usable for the current tab and reports
Saved for this tab only.; scoring and reset never overwrite the newer data.
Window Seat uses an unzoomed, masked YouTube no-cookie iframe. The masks cover the verified title, control, compass, and subtitle regions, but CSS outside a cross-origin iframe cannot guarantee that YouTube will never inject a central consent, policy, playback, or error overlay. An absolute guarantee requires a licensed local video asset.