Skip to content

feat: add the CrawlProof stats tracker - #3

Merged
ralyodio merged 1 commit into
mainfrom
feat/crawlproof-stats
Sep 30, 2026
Merged

ralyodio merged 1 commit into
mainfrom
feat/crawlproof-stats

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

Adds the CrawlProof stats tag for project 7fdf1cb0-2240-4709-8896-63262cb35f7f to the shared head() in src/site.mjs, so it loads once on every HTML page (home, blog index, posts). Non-HTML routes (/healthz, /install.sh, RSS, sitemap) are untouched.

The CSP in src/server.mjs now allows https://crawlproof.com in script-src and connect-src (stats.js beacons to https://crawlproof.com/api/track). Same pattern as profullstack/r4ck.dev#9.

Local: npm test 18/18. npm run check fails with "data/commands.json is stale" on this branch and identically on a clean copy of main: it compares against the upstream moshcode README, unrelated to this change, and it is not run by CI.

🤖 Generated with Claude Code

The shared head() emits the stats.js tag with the moshcode.sh project id,
so it loads once on the home page and every blog page. The CSP now allows
https://crawlproof.com in script-src and connect-src (the /api/track beacon).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@ralyodio
ralyodio merged commit fd6d83e into main Sep 30, 2026
2 checks passed
@ralyodio
ralyodio deleted the feat/crawlproof-stats branch September 30, 2026 07:05
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