A static educational site that teaches manipulation literacy: recognizing the rhetorical techniques used in politics and media. Built on the inoculation/prebunking model (teach the technique, drill it on fictional zero-stakes scenarios, show sourced real-world examples from opposing camps, self-test, then a final example that tests the skill against the reader's own convictions).
Editorial principles and the example-sourcing checklist live in
CONTRIBUTING.md. Several principles are enforced at
build time; a one-sided or under-sourced example set fails npm run build.
- Astro static output, content collections, TypeScript. No other runtime dependencies.
- Interactive drills and self-tests are small vanilla-JS islands.
- Plain CSS with design tokens in
src/styles/global.css. No Tailwind. - No backend, no accounts, no analytics.
npm install
npm run devDraft techniques render locally with a draft banner. Draft examples render with a visible placeholder badge.
npm run buildOutput goes to dist/. The build runs the editorial validators
(src/lib/validate.ts plus the zod schemas in src/content.config.ts)
and fails with a readable error list if any rule is violated. Draft
techniques are excluded from production output.
- Push this repository to GitHub.
- In the Cloudflare dashboard: Workers & Pages, then Create, then Pages, then Connect to Git, and select the repo.
- Build settings:
- Framework preset: Astro
- Build command:
npm run build - Build output directory:
dist - No environment variables required. (Pages' default Node version
works with Astro 5; if the build image complains, set
NODE_VERSIONto22.)
- Update
siteinastro.config.mjsto the production URL once the domain is attached.
Every push to the connected branch redeploys. Pull requests get preview deployments automatically, which is handy for reviewing new examples before they go live.
src/
content/techniques/ one .md per technique (frontmatter + mechanic prose)
content/examples/ one .md per sourced real-world example
data/quizzes/ drill / self-test / hard-one data, one JSON per technique
components/ SpecimenHeader, Drill, DissectedQuote, SelfTest, ...
pages/ index, about, sources, techniques/[slug]
lib/validate.ts build-time editorial rules (balance, placeholders, spans)
styles/global.css design tokens and shared styles