Interactive educational geometry widgets (open educational resources) built with Astro, Svelte, D3 and Three.js. The site contains localized content under src/content/docs/ (for example en, ja, pt, zh-cn, hi, bn).
Prerequisites:
- Node 24 (Volta recommended — see
package.jsonfor the pinned Node version). npm(orpnpm/yarn) installed.
Install dependencies:
npm installRun local development server:
npm run dev
# open http://localhost:4321Build and preview:
npm run previewRun Playwright tests:
npm run test
# Run specific tests:
npm run test -- tests/hi/geometry --project=chromium
# or: npm run test -- tests/pt/geometry --project=chromiumsrc/components/— reusable Svelte components (D3 and Three widgets live here).src/content/docs/— localized MDX pages (folders per locale:en,ja,pt,zh-cn,hi,bn, etc.).tests/— Playwright specs grouped by locale (tests/<locale>/geometry/).astro.config.mjs,package.json— project configuration and scripts.AGENTS.md— instructions & checklist for adding locales and CI guidance.
Follow the checklist in AGENTS.md