- TypeScript 53.1%
- CSS 22.4%
- Astro 20.2%
- Nix 3.1%
- Dockerfile 1%
- Other 0.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .forgejo/workflows | ||
| .vscode | ||
| public | ||
| src | ||
| tests | ||
| .dockerignore | ||
| .gitignore | ||
| AGENTS.md | ||
| astro.config.mjs | ||
| biome.jsonc | ||
| bun.lock | ||
| compose.yaml | ||
| DESIGN.md | ||
| Dockerfile | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| NOTICE | ||
| package.json | ||
| playwright.config.ts | ||
| PRODUCT.md | ||
| README.md | ||
| tsconfig.json | ||
MiguVT
I'm MiguVT. I built this as a place of my own, with a game-style menu and a backdrop that keeps playing as you move between sections. The courtyard is the first scene; more are planned.
Run locally
# Enter the pinned Bun, Biome, and Chromium environment
nix develop
bun install --frozen-lockfile
bun run dev
Run nix fmt flake.nix to format the Nix flake and nix fmt -- --check flake.nix to verify it.
The Nix shell provides the pinned Biome 2.6.8 CLI. Run bun run format to format supported source files and bun run check to verify formatting and lint rules. Biome's Astro formatter is experimental, so Astro templates are linted but not rewritten.
Open the local URL printed by Astro. For a production check, type-check the Astro templates and TypeScript, build the page, and open the built site:
bun run check
bun run typecheck
bun run build
bun run preview
Deploy the generated dist/ directory to a static host.
Self-host with Docker
From the repository root, build and start the site:
docker compose up -d --build
The container serves only the static build using unprivileged Nginx. By default it listens on http://127.0.0.1:8080 on the host. Set WEB_PORT if that port is taken, and run the same Compose command after updating the checkout to rebuild the site.
The Nginx base image is pinned by digest for repeatable builds. For security updates, update the version and digest in Dockerfile, then rebuild and rescan the image.
For a reverse proxy running on the same host, point your domain at the server and forward requests to 127.0.0.1:8080. Let the proxy handle HTTPS. For example, add this to your Caddyfile:
site.example.com {
reverse_proxy 127.0.0.1:8080
}
Replace site.example.com with your domain. For Caddy's automatic HTTPS, make sure ports 80 and 443 reach Caddy. If the proxy runs in a container instead, place it and web on a shared network, remove the ports mapping from web, and use web:8080 as the upstream.
Customize
- Name and section text: edit
src/site.ts. Both wordmarks and the menu use the same site data. - Theme and layout: edit
src/styles/scene.css. The accent is Catppuccin Mocha Red (#f38ba8). - Background: replace
public/media/courtyard.mp4andsrc/assets/courtyard.jpgor update their paths in the page. Use a short, silent, web-optimized loop and an identically framed first-frame image. Astro optimizes the poster at build time; the video loads after the poster and pauses in background tabs. Update the attribution, scene caption, andsrc/components/Other.astrowhen changing the footage.
The courtyard adapts Jordy Meow's Block 65 on Hashima Island. The scene credits list the changes and license.
Keyboard and sound
Press Enter to continue, then use Tab, Shift+Tab, or ↑/↓ in the menu and Settings. Home and End jump to the first and last items. Enter or Space activates a button or switch. Escape goes back and restores focus. Use Tab to reach the playback control, visible Back button, and credits links in Other.
To add sound effects, put licensed audio in public/media/ and map enter, open, and back to paths relative to public/ in src/scripts/sounds.ts. Missing cues are silent. Playback starts only on navigation with Menu sounds enabled.
Motion: the site honors the operating system's reduced-motion setting. Choosing Reduce motion in Settings also stops transitions and shows the poster. Background video can be turned off independently. Preferences are stored on this browser; they aren't sent anywhere.
See AGENTS.md for the file map and the browser smoke test, and DESIGN.md for the visual rules.
Browser tests
Run bun run test:e2e to build the site and run the Playwright suite. The Nix shell provides Chromium; outside Nix, install it with bun run --bun playwright install chromium. Use the Nix shell for the pinned Biome CLI.
Our Forgejo instance runs CI on pushes to dev and main using nix-latest (nixos/nix:latest under Podman). The runner fetches the triggering commit directly from our instance with Git; no external checkout action is needed. The pinned Nix shell supplies Bun, Biome, Chromium with fallback fonts, and the C++ runtime needed by Sharp. CI installs the locked Bun dependencies, verifies that Sharp loads, and runs the same checks and browser tests as local development.
The runner needs Bash, Git, base64, and Nix with flakes enabled. Keep it scoped to trusted repositories and restrict who can push to dev and main. Pull requests do not run on this runner.
Contributing
I built this site with AI as an assistant. I make the decisions, review the changes, and test the result.
I accept both hand-written and AI-assisted contributions. Either way, only submit changes you understand, can explain, and have tested. Tell me what you changed, why, and how you checked it. I won't merge vibe-coded changes you can't explain or raw model output you haven't reviewed.
Tip
A note about my local AI setup, not a list of every tool used on the repo:
“All the AI-generated things was made with unsloth/Qwen3.8-27B-GGUF:UD-Q4_K_XL with q4_0 on my GPU :b, I will not give you my ram and information sam altman >:3”
License
Original project work is PolyForm Noncommercial 1.0.0: personal and other noncommercial reuse is permitted. If you distribute it, pass along the license (or its URL) and the MiguVT notice. If you publish an adaptation, please credit MiguVT and link back to this repository. The license has a separate provision for listed noncommercial organizations. Ask MiguVT before other commercial use.
The courtyard assets remain CC BY-SA 3.0, and IM Fell English remains under the SIL Open Font License 1.1.