Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
<title>Page not found – Arjun's Projects</title>
<title>Page not found – ASCoding</title>
<meta name="robots" content="noindex">
<!-- The site's "page not found" page (see README.md). GitHub Pages and Cloudflare Pages both show it, with a 404 status,
for any address that has no file, at that address: so every link and file here starts with "/", never "../".
Expand All @@ -25,7 +25,7 @@
<body>
<div class="wrap">
<div class="topbar">
<a class="wordmark" href="/">Arjun</a>
<a class="wordmark" href="/">ASCoding</a>
<nav class="nav" aria-label="Site"><a href="/">Home</a><a href="/projects/">Web Development Projects</a><a href="/productivity/">Productivity</a><a href="/engineering/">Engineering Projects</a><a href="/marketplace/">Marketplace</a></nav>
</div>
<main>
Expand All @@ -42,7 +42,7 @@ <h1>Page not found</h1>
</header>
<p class="nf-where" id="nfWhere" hidden>You asked for <code id="nfPath"></code></p>
</main>
<footer>© 2026 Arjun · <a href="/about/">About</a> · <a href="/contact/">Contact</a> · <a href="/privacy.html">Privacy policy</a></footer>
<footer>© 2026 ASCoding · <a href="/about/">About</a> · <a href="/contact/">Contact</a> · <a href="/privacy.html">Privacy policy</a></footer>
</div>
<script>
// Show the address that wasn't found (as text, never as HTML), so it's easy to mention in a bug report.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Arjun's projects
# ASCoding

Personal site hosted with GitHub Pages at **https://ascoding11.github.io**, the main address: every page's canonical and share links, the sitemap and robots.txt use it. Cloudflare Pages also serves the same files from this repo's `main` branch at https://ascoding11.com (every merge goes live on both in a minute or two). Pull requests get a preview link on Cloudflare Pages: from Cloudflare's own Git integration for branches in this repo, and for pull requests from forks from the two `fork-preview` workflows in `.github/workflows/` (the fork's plain files, without `functions/`, uploaded to the separate Pages project `ascoding11-previews` at `https://pr-<number>.ascoding11-previews.pages.dev` and linked in a comment; they need the repo secret `CLOUDFLARE_API_TOKEN`, a Cloudflare token with Pages: Edit). Netlify is no longer used. `ads.txt` sits at the root of the repo, so both addresses serve it at `/ads.txt`. Google sign-in only works on addresses listed in Firebase (project `rumblekarts`) → Authentication → Settings → Authorized domains, so ascoding11.com needs to be listed there too. Browsers keep saved data (settings, guest accounts, drafts) per address, so the two addresses don't share it.

Expand All @@ -11,7 +11,7 @@ Personal site hosted with GitHub Pages at **https://ascoding11.github.io**, the
- `site.css`: styles shared by the home, Web Development Projects and Productivity pages
- `theme.js`: the site's light/dark switch, with three choices: Auto (follow the device's light or dark mode, the default), Light and Dark. Loaded with a plain `<script src="/theme.js"></script>` in the `<head>`, just before the stylesheet (not deferred, so it runs before the page is drawn and there's no flash), by every page that uses `site.css` and nothing else of its own for colours (home, Web Development Projects, Productivity, Engineering Projects, Marketplace, About, Project Daedalus, the Docket, Prompted, Boxed and Hype Cycle Exchange guides), by Docket and Prompted, the Back Room page, the phone page and the showcase landing page (which has no top bar, so no switch; it follows the choice made on any other page). **The switch** is one small button showing the current choice (half circle, sun or moon) that opens a menu with the three; theme.js puts it at the end of the page's `.topbar` by itself (its menu opens leftwards, or rightwards when the top bar has wrapped it to the left edge, as on a phone held sideways), right after the Sign in button (so `account/` is unchanged), which makes it the same place on every page with the top bar, the Back Room included; any other empty element with `data-theme-switch` is filled in too (the phone page has one in its header, since it has no top bar). **Storage:** localStorage `theme` (`light` or `dark`; removed for Auto), so the choice carries to every page; pages already open in other tabs, and pages inside frames (the home page's phone-version frame), follow a change straight away through the `storage` event. Nothing is stored online. **How the CSS follows it:** an explicit choice puts `data-theme="light"` or `data-theme="dark"` on `<html>`, and Auto leaves it off. Each dark-mode block is written twice: inside `@media (prefers-color-scheme: dark)` as `:root:not([data-theme="light"])` (Auto, or Dark on a dark device), and again as `:root[data-theme="dark"]` (Dark on a light device). That's how `site.css`, `games.css`, Docket and Prompted do it; the phone page is dark by itself, so it does the opposite with its light look. A new page that uses `site.css` only needs the script line; a page with its own dark colours needs both blocks too. The shared Back Room scripts that add their own styles (party.js, avatar.js, miles.js, leaderboard.js, news.js, social.js, account-nudge.js, events.js, feedback.js and the rest) take their colours from the page's variables, so they follow without changes. `SiteTheme.get()` / `.set('auto'|'light'|'dark')` / `.wire(el)`, and a `site-theme` event on `window` after a change (seasons.js redoes its seasonal tint on it). **Pages that don't follow it** keep their own look: every game (each has its own fixed look, light or dark), the Daily Puzzles page, the admin page, and the pages that follow the device with their own CSS only: Boxed, Hype Cycle Exchange, the analytics dashboard and the privacy policy.
- `offline.js`, `sw.js`, `offline.html`: offline mode (version 2). `offline.js` (a deferred `<script>` on the home, `projects/`, `productivity/` and `engineering/` pages, the Back Room page and the phone page) registers `sw.js`, one service worker for the whole site and the installed app. Every page, game and file of the site that a browser opens is kept in its Cache Storage (`site-v2`), so it opens again on that device with no internet; ahead of time it only saves the app shell (`CORE` in `sw.js`: home page, `offline.html`, manifest, icons, `site.css`, `theme.js`, `install.js`). The site's own files are fetched network-first, exactly as without the worker, and the saved copy is used only when the network fails, so online players always get the newest version and nothing needs bumping when a game changes. Answers go to the page as soon as they start arriving; the copy is saved in the background (`event.waitUntil`) and skipped when its ETag / Last-Modified / size matches the saved one, so big games don't load slower or get rewritten every visit. Versioned libraries (cdnjs, jsDelivr, Firebase's SDK on gstatic) and Google Fonts files are served from the cache first. Never touched, always straight to the network: the game relay (Colyseus Cloud; WebSockets never pass through a service worker, and its https matchmaking isn't on the CDN list), `/api/` (Marketplace, wallet, checkout), Firebase/Firestore, Google sign-in, analytics and ads. On every visit `offline.js` sends the worker the files that page already loaded (it skips ones it has, one at a time), so the first page works offline right away. While the device is offline, it shows a small "Offline" note at the bottom (top-level pages only) and fades the Back Room's game cards (`a.btn.primary` Play links) and the phone page's tiles (`.tile[data-path]`) for games not saved on that device, with a "Not saved offline" tag; tapping one says to play it once with internet instead of opening it. A page that isn't saved shows `offline.html` (or a built-in note), never the browser's own error. A game's practice/bot modes then work as normal; its online modes just can't connect until the internet is back. Bump `VERSION` in `sw.js` only to wipe every device's saved files.
- `manifest.webmanifest`, `install.js`, `icons/`: the site as an installable app (named "ascoding11"). The home, `projects/`, `productivity/` and `engineering/` pages link `/manifest.webmanifest` (plus the favicon, `theme-color` and Apple touch icon from `icons/`), so Chrome and Edge show their install icon in the address bar there and Android offers Add to Home screen. The app's `id`, `start_url` and `scope` are all `/`: it opens the home page in its own window, keeps the whole site in that window, and works offline through the same `sw.js` (registered by `offline.js` on the home page). It is a separate app from the phone page's "Arjun's Games" (`e63334287a3deaa3/m/manifest.webmanifest`, whose `id` is its own start address), so both can be installed. `install.js` (deferred `<script>`, home page only) waits for the browser's `beforeinstallprompt` event and only then adds an "Install app" button (`#getapp`, a `.btn`) under the intro in the page's `<header>`, since the top bar is full on computers; clicking it opens the browser's install prompt. It never shows in Safari or Firefox, once installed, or inside the app. `icons/app.svg` (rounded) and `icons/app-maskable.svg` (full-bleed, for Android's shaped icons) are the sources; the PNGs were made from them with `rsvg-convert` (192 and 512, maskable 512, Apple 180, favicon 32). Change the SVGs and remake the PNGs to change the icon. `/favicon.ico` (16, 32 and 48 px, made from `icons/app-512.png` with Python's Pillow) is the icon browsers ask for by themselves on pages that don't link one, such as the Back Room games; remake it too when the icon changes. **Share previews and icons on public pages:** every public page in `sitemap.xml` (plus `showcase/`) has a `<meta name="description">`, a canonical link, Open Graph tags (`og:type`, `og:site_name`, `og:title`, `og:description`, `og:url` equal to the canonical, `og:image`) and a `twitter:card`, and links the three favicon lines from `icons/`. Pages with a `preview.jpg` (1920 × 1200) use it as `og:image` with `summary_large_image`; About, Contact and the Marketplace use `icons/app-512.png` with `summary`. When adding a public page, copy these from a page like `productivity/index.html`. Never add them to the Back Room.
- `manifest.webmanifest`, `install.js`, `icons/`: the site as an installable app (named "ascoding11"). The home, `projects/`, `productivity/` and `engineering/` pages link `/manifest.webmanifest` (plus the favicon, `theme-color` and Apple touch icon from `icons/`), so Chrome and Edge show their install icon in the address bar there and Android offers Add to Home screen. The app's `id`, `start_url` and `scope` are all `/`: it opens the home page in its own window, keeps the whole site in that window, and works offline through the same `sw.js` (registered by `offline.js` on the home page). It is a separate app from the phone page's "ASCoding games" (`e63334287a3deaa3/m/manifest.webmanifest`, whose `id` is its own start address), so both can be installed. `install.js` (deferred `<script>`, home page only) waits for the browser's `beforeinstallprompt` event and only then adds an "Install app" button (`#getapp`, a `.btn`) under the intro in the page's `<header>`, since the top bar is full on computers; clicking it opens the browser's install prompt. It never shows in Safari or Firefox, once installed, or inside the app. `icons/app.svg` (rounded) and `icons/app-maskable.svg` (full-bleed, for Android's shaped icons) are the sources; the PNGs were made from them with `rsvg-convert` (192 and 512, maskable 512, Apple 180, favicon 32). Change the SVGs and remake the PNGs to change the icon. `/favicon.ico` (16, 32 and 48 px, made from `icons/app-512.png` with Python's Pillow) is the icon browsers ask for by themselves on pages that don't link one, such as the Back Room games; remake it too when the icon changes. **Share previews and icons on public pages:** every public page in `sitemap.xml` (plus `showcase/`) has a `<meta name="description">`, a canonical link, Open Graph tags (`og:type`, `og:site_name`, `og:title`, `og:description`, `og:url` equal to the canonical, `og:image`) and a `twitter:card`, and links the three favicon lines from `icons/`. Pages with a `preview.jpg` (1920 × 1200) use it as `og:image` with `summary_large_image`; About, Contact and the Marketplace use `icons/app-512.png` with `summary`. When adding a public page, copy these from a page like `productivity/index.html`. Never add them to the Back Room.
- `.claude/skills/`: two skills that Claude Code picks up by itself when working in this repo (nothing on the website loads them). `game-graphics` is a method for making a game look better (look at screenshots, choose a direction, fix colour and light before adding effects, keep a cheaper version for slow machines), with `scripts/shots.js` for before-and-after screenshots at laptop and phone sizes. `game-performance` is a method for making a game faster without changing how it looks or plays (measure, fix the biggest cost, measure again), with `scripts/perf_probe.js`, which reports frame times, script time, draw calls, triangles, canvas calls, memory churn and page weight for any game here and compares two runs. Both scripts need Node and Playwright and are only for development. The games' own rules in `CLAUDE.md` and this file come first.
- `.claude/agents/`: one Claude Code subagent per game (71: the two public games, every Back Room game, the daily puzzles, and the archived and preview games), named after the game's current display name (for example `driftfall` for `drop-zone/`, `midnight-ops` for `ironveil/`, `game-2048` for `2048/`). Each one tells Claude where that game's files, README entry, card and phone row are, what it uses (three.js, Firebase rooms and prefix, relay, netsmooth, stats, keybinds, ads, daily storage), the rules from `CLAUDE.md` that apply to it, how to test it and which skills fit. Nothing on the website loads them. They are generated by `.claude/scripts/gen_game_agents.py` from this README, the Back Room cards, the phone page, `netrelay-config.js` and each game's code; rerun `python3 .claude/scripts/gen_game_agents.py` after adding, renaming or archiving a game (hand-set lists at the top of the script cover archived games, genre skills and games that share data folders).
- `hype-cycle-exchange/`: Hype Cycle Exchange, a live classroom stock-market game (Firebase)
Expand Down
16 changes: 8 additions & 8 deletions about/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
<title>About Arjun&#x27;s Projects</title>
<meta name="description" content="About Arjun&#x27;s Projects: free browser games for the classroom, study tools for students, and engineering projects, built by hand by Arjun. Who makes it, how it is built, and how to get in touch.">
<title>About ASCoding</title>
<meta name="description" content="About ASCoding: free browser games for the classroom, study tools for students, and engineering projects, built by hand by two students. Who makes it, how it is built, and how to get in touch.">
<link rel="canonical" href="https://ascoding11.github.io/about/">
<meta name="robots" content="index,follow">
<meta property="og:type" content="article">
<meta property="og:site_name" content="Arjun's Projects">
<meta property="og:title" content="About Arjun&#x27;s Projects">
<meta property="og:description" content="About Arjun&#x27;s Projects: free browser games for the classroom, study tools for students, and engineering projects, built by hand by Arjun. Who makes it, how it is built, and how to get in touch.">
<meta property="og:site_name" content="ASCoding">
<meta property="og:title" content="About ASCoding">
<meta property="og:description" content="About ASCoding: free browser games for the classroom, study tools for students, and engineering projects, built by hand by two students. Who makes it, how it is built, and how to get in touch.">
<meta property="og:url" content="https://ascoding11.github.io/about/">
<meta property="og:image" content="https://ascoding11.github.io/icons/app-512.png">
<meta name="twitter:card" content="summary">
Expand All @@ -26,7 +26,7 @@
<body>
<div class="wrap">
<div class="topbar">
<a class="wordmark" href="../">Arjun</a>
<a class="wordmark" href="../">ASCoding</a>
<nav class="nav" aria-label="Site"><a href="../">Home</a><a href="../projects/">Web Development Projects</a><a href="../productivity/">Productivity</a><a href="../engineering/">Engineering Projects</a><a href="../marketplace/">Marketplace</a></nav>
</div>
<header>
Expand All @@ -46,7 +46,7 @@ <h2>What this site is</h2>
</ul>

<h2>Who makes it</h2>
<p>I'm Arjun, a student who builds things for the web. This site collects the games, study tools and engineering projects I've made, and I keep adding to it and updating it. Other students contribute too: they send changes as pull requests, which I review before anything goes live.</p>
<p>We're ASCoding, two students who build things for the web. This site collects the games, study tools and engineering projects we've made, and we keep adding to it and updating it. Other students contribute too: they send changes as pull requests, which we review before anything goes live.</p>

<h2>How it's built</h2>
<p>Every page is written by hand in plain HTML, CSS and JavaScript, with no framework and no build step. The live multiplayer games use Google Firebase so that players in the same room can see each other's moves. The study tools don't use a server at all: what you type is saved only in your own browser. Problems in Boxed come from the American Mathematics Competitions (© Mathematical Association of America) and load from the AoPS Wiki while you play; everything else, including the writing on these pages, is original.</p>
Expand All @@ -69,7 +69,7 @@ <h2>Contact</h2>
<h2 id="more">More from the site</h2>
<ul class="related"><li><a href="../hype-cycle-exchange/guide/"><b>How to run Hype Cycle Exchange in class</b><span>Teaching investing with a live stock market game</span></a></li><li><a href="../boxed/guide/"><b>How to prepare for the AMC 10 and AIME</b><span>A practice plan, with Boxed</span></a></li><li><a href="../docket/guide/"><b>How to plan your study time around Canvas</b><span>Turning a list of due dates into a plan</span></a></li></ul>
</section>
<footer>© 2026 Arjun · <a href="../about/">About</a> · <a href="../contact/">Contact</a> · <a href="../privacy.html">Privacy policy</a> · <a href="../terms/">Terms</a></footer>
<footer>© 2026 ASCoding · <a href="../about/">About</a> · <a href="../contact/">Contact</a> · <a href="../privacy.html">Privacy policy</a> · <a href="../terms/">Terms</a></footer>
</div>
<script src="/analytics/tracker.js" data-site="about" defer></script>
<script src="/account/account.js" defer></script>
Expand Down
4 changes: 2 additions & 2 deletions abyssal/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>Arjun</title>
<title>ASCoding</title>
<meta name="robots" content="noindex">
<meta http-equiv="refresh" content="0; url=/">
<script>location.replace('/' + location.hash);</script>
</head>
<body><p><a href="/">Arjun</a></p></body>
<body><p><a href="/">ASCoding</a></p></body>
</html>
Loading
Loading