A private, self-hosted menstrual cycle tracker. Named for Artemisia — mugwort, the moon-herb of Artemis. Your data lives in one SQLite file on your own computer. No accounts, no cloud, no ads, no subscription, no one monetising your luteal phase.
Built in an afternoon by a researcher — not a developer — with Claude as gardener's assistant: the code, the moon maths, and the odds ratios are his handiwork; the decade of data, the taste, and the stubbornness about owning it are hers. If you'd rather grow your own than run this one, see PROMPT.md for a copy-paste prompt to give any capable AI assistant.
- Calendar — log flow, symptoms, mood, energy, discharge, and notes with a tap. Cycle day numbers in every cell. Real lunar phases marked (🌑🌓🌕🌗).
- Honest predictions — next period as an 80% window computed from your history ("likely between the 28th and the 2nd"), not a false-confident date. Fertile window and ovulation estimates, clearly labelled as estimates.
- Moments — a day is long, and bodies and moods shift within it. Tap + moment to log what's happening now (or earlier: the time is editable): mood, a 1–5 mood score, body symptoms, digestion, where it hurts, what kind of pain and how strong, tears, painkillers (common UK doses), cravings, and the bleeding itself: colour, texture, clots, and where it went ("mostly in the toilet" is a real answer: flow isn't always measurable in pads). Each moment keeps its own time, and every day shows its moments as a small timeline. A moment also ticks the matching chip on its day, so insights and the almanac keep counting everything.
- Your own words — every chip group ends with + your own. The words you keep reaching for in the notes box ("phantom drip", "womb sense", "bristling") become chips you can tap next time. Retire one whenever you like from tidy my own words; past entries keep it.
- Year view — twelve months at a glance; a decade becomes visible.
- Insights — cycle length over the years, distribution, symptom and mood frequencies.
- The Almanac — real statistics on your own data: which symptoms cluster in which cycle phase (odds ratios with 95% CIs), a Rayleigh test of whether your cycles track the moon (spoiler: population studies say they won't — but now you can know for you), rolling variability with the STRAW+10 ≥7-day marker so perimenopause announces itself early and calmly, seasonality, and a phase compass with schematic hormone curves.
- Clue import — swallows a Clue GDPR export whole (
measurements.json+cycle_attributes.json). Additive and idempotent; nothing in your history is lost — even data types the app doesn't edit are preserved and displayed. - Backup & export — download everything as CSV (the day sheets and the moments, separately) or the SQLite file itself.
- Installable phone app (PWA) — with HTTPS, installs on Android/iOS with its own icon, standalone window, and a long-press "Log today" shortcut.
Never used GitHub, Python, or a terminal? This section is for you. Ten
minutes, no prior knowledge. (Already comfortable? The short version:
Python 3.9+, pip install -r requirements.txt, python3 app.py,
visit http://localhost:5876.)
At the top of this page, find the green Code button → Download ZIP.
Unzip it (right-click → Extract All on Windows; double-click on a Mac) and
move the artemisia-main folder somewhere permanent that gets backed up —
your Documents folder is perfect. Your cycle data will live inside this
folder, so don't leave it in Downloads where future-you might tidy it away.
- Windows: get the installer from python.org/downloads. When it opens, tick the box that says "Add python.exe to PATH" before clicking Install — this is the single most important click in this guide.
- Mac: open the Terminal app (⌘-space, type "terminal"), type
python3 --versionand press Enter. If macOS offers to install "command line developer tools", say yes — that is the Python install. - Linux / Raspberry Pi: you almost certainly have it.
python3 --versionto confirm.
- Windows: open the
artemisia-mainfolder in File Explorer, click in the address bar at the top, typecmdand press Enter. A black window appears, already standing in the right place. - Mac: right-click the
artemisia-mainfolder → Services → New Terminal at Folder (or drag the folder onto the Terminal icon).
In that terminal window, run (type it, press Enter, let it finish):
python3 -m pip install -r requirements.txt(On Windows, if python3 isn't recognised, use py instead: py -m pip install -r requirements.txt.)
python3 app.py(Windows: py app.py.) You'll see Artemisia unfurling at
http://127.0.0.1:5876. Open your web browser and visit
http://localhost:5876 — there she is. Log something. She's yours.
Notes for the road: the terminal window must stay open while she runs
(Ctrl+C stops her; running the Step 5 command again wakes her). Your data
lives in a single file, artemisia.db, which appears in her folder after
first run — that file is your history, so let your backups include it.
To start her automatically and keep her running quietly, see
"Run at startup" below.
Environment knobs for the curious: ARTEMISIA_DB (database path),
ARTEMISIA_HOST (default 127.0.0.1; set 0.0.0.0 to allow other devices
on a trusted network), ARTEMISIA_PORT (default 5876).
- Stop Artemisia and copy
artemisia.dbsomewhere safe. - Replace the program files with the new ones, leaving
artemisia.dbwhere it is. - Start her again. Anything new (moments, your own chips) gets its own tables on first start; nothing already in your database is changed.
- Clue app → ☰ → Settings → Download my data → Request data
- Copy the password shown; Clue emails a link (expires in 72 h)
- Download, unzip with the password
- Import the folder:
python3 app.py import /path/to/ClueDataDownload-folder(or uploadmeasurements.jsonon the app's import page)
Safe to re-run — it never duplicates.
- macOS: edit paths in
com.example.artemisia.plist, copy to~/Library/LaunchAgents/, thenlaunchctl loadit. - Linux (systemd): edit paths in
artemisia.service, copy to/etc/systemd/system/, thensystemctl enable --now artemisia.
The PWA needs HTTPS. The gentlest path is Tailscale
(free for personal use): install it on the server and your phone, then on the
server run tailscale serve --bg 5876 — you get a valid-HTTPS URL reachable
from your devices anywhere, visible to no one else. Open it in Chrome on your
phone → menu → Add to Home screen → Install.
Hard-won gotcha: Android identifies installed web apps by hostname and ignores the port. If you self-host several apps on one machine, each installable app needs its own hostname (e.g. via Tailscale's named Services), not just its own port — otherwise Android will insist your second app is "already installed".
Everything is one file: artemisia.db. Copy it anywhere. Restoring is putting
it back.
Cycle-day counting starts on the first day of true bleeding (spotting doesn't start a cycle). Ovulation is estimated at 14 days before the next predicted period; fertile-window marks are calendar estimates from your own averages — a compass, not a contraceptive. The almanac's hormone curves are population-typical schematics, not measurements. None of this is medical advice; it's your own data, described carefully.
MIT — see LICENSE. Take her, rename her, make her yours.
Gentle, cycle-aware reminders to log a moment, sent through
Home Assistant to your phone: up to three a
day while you bleed, twice a day for about ten days before your predicted
start, and one every other evening the rest of the month. Never before 9:00
or after 21:30, never if you've logged in the last three hours, and fewer if
you've been ignoring them. Tap a nudge and a moment opens. Pause them for the
day ("not today") or switch them off at /nudges.
- In Home Assistant, make a long-lived access token (your profile → Security → Long-lived access tokens).
- Beside
artemisia.db, createha.jsonand keep it private (chmod 600; it's already in.gitignore):{"url": "http://homeassistant.local:8123", "token": "…", "service": "notify/mobile_app_yourphone"} - Check it:
python3 nudges.py --test(or--dryto see what it would do right now without sending). - Run it every 15 minutes, e.g. with cron:
*/15 9-21 * * * cd /path/to/artemisia && ARTEMISIA_URL=https://your-artemisia-address python3 nudges.py(ARTEMISIA_URLis where tapping the nudge takes you.)
artemisia_mcp.py is a small read-only bridge that lets Claude (or any app that
speaks MCP) ask Artemisia where you are in your cycle, what you've logged
recently, your cycle history and how often each symptom or mood turns up.
It opens the database read-only and has no writing tools: logging still
happens in Artemisia herself. It reads the day sheets and, with the moments tool, the
timed moments too.
Run it beside app.py and expose it privately with Tailscale, as described
at the top of the file. Set up this way, Artemisia fully replaces a hosted
tracker such as Clue: you log on your phone, an assistant can read your
cycle when you ask it to, and your data never leaves your own machine.
A note from experience: the Claude apps reach custom connectors only over port 443 on a public address, so a tailnet-only URL works for local clients but not for claude.ai. If you want it there, put the bridge behind a gateway that checks a secret token (Tailscale Funnel on 443 is one way). Never expose it without one.