Working title: cycle-dictionary.
A dictionary for feelings. Tap a category, tap what you're noticing — mood, energy, sleep, skin, appetite — and see where that experience tends to land on an idealized 28-day hormonal cycle, and why.
It is intentionally lightweight: a static site, driven by YAML content, with a small scoring model in TypeScript. Educational and normalizing, not medical advice — and deliberately not a period tracker.
- Shows twelve categories of everyday experiences as a honeycomb of blobs.
- Tapping a category opens a sheet of experience chips ("tearful", "drained", "flirty", …).
- Tapping an experience shows which cycle phases it's commonly reported in, a hormone chart with the estimated day band, a gentle in-voice tip, and related experiences from other categories.
- All content lives in editable YAML, validated at build time.
This project was spec'd as a questionnaire: select several feelings, confirm what you meant, and get a combined phase estimate (docs/SPEC.md describes that design, and its decision log still holds). Building it revealed a simpler product hiding inside: most of the value is in looking up one feeling and getting an immediate, explainable answer. So v1 shipped as a dictionary — no multi-step flow, no confirm screen, no session to complete.
The questionnaire isn't gone, it's runway: the scoring engine (src/lib/scoring.ts) already combines multiple selections naive-Bayes-style, supports the per-chip variant refinements from the spec, and detects flat/contradictory evidence — all unit-tested. The dictionary UI simply calls it with one selection at a time.
This app was designed and built in the browser, together with Claude Code. The point of the project is product thinking — the lexicon, the model, the framing, the interaction decisions — so I optimized for moving fast from decision to shipped screen, not for hand-writing every line.
- SvelteKit + Svelte 5
- Vite
- TypeScript
- Vitest
- Static adapter
- YAML content via
@rollup/plugin-yaml
npm install npm run dev
Open the local URL printed by Vite.
npm run dev # start the dev server npm run check # run Svelte/TypeScript checks npm run test:run # run tests once npm run test # run tests in watch mode npm run build # build the static site into build/ npm run preview # preview the production build
data/
lexicon.yaml experience chips, categories, phase ranges, weights
phases.yaml phase explainer copy
docs/
SPEC.md original spec + decision log (see Evolution above)
lexicon.md lexicon drafting notes
src/lib/
scoring.ts turns selected experiences into phase/day probabilities
lexicon/ validates and types the YAML lexicon
components/ Svelte UI components
src/routes/
+page.svelte app entry point
+layout.ts prerenders the site
Most product content lives in data/lexicon.yaml.
Each experience has:
id: stable kebab-case machine namecategory: one of the category keyslabel: short chip textweights: phase signal strength from0to3variants: optional refinement choices when one chip can mean different thingsrelated_reports: optional cross-category related experience ids
The app validates lexicon.yaml when it imports the file, so broken ids, missing fields, invalid weights, and bad references fail loudly during checks/builds.
Phase explainer text lives in data/phases.yaml.
This project prerenders to static files with @sveltejs/adapter-static.
npm run build
Deploy the generated build/ directory to any static host.