Inspiration

Every evening I ran into the same question: "What do I cook today?" After a full day of decisions, that one small question took far more energy than it should have, and I knew I wasn't the only one. Many women around me deal with the same decision fatigue around food.

For many of us it's harder still, because PCOS/PCOD has become very common. The WHO estimates it affects 8–13% of women of reproductive age, and up to 70% of them may be undiagnosed. With PCOS, food really matters: steady blood sugar, enough iron and protein, and fibre all make a difference. But most meal apps ignore your cycle, and most period trackers ignore what you eat.

So I built HERspace, your space, your health, your choices: one calm place where meals, cycle tracking and nutrition know about each other.

What it does

  • 🍽️ Meal planner: 43 PCOS-friendly recipes for breakfast, lunch, dinner and snacks, filtered by your diet (vegan, vegetarian, pescatarian or non-vegetarian), 7 common allergens and the foods you dislike. It builds a weekly plan and writes your grocery list for you.
  • ♥ Saved recipes: like a recipe and it goes into a list you can plan from.
  • 🌸 Period tracker: log periods on any date, save mood and symptoms for each day, and see your next period predicted on the calendar.
  • ✨ Ask HER AI: tell it what's in your kitchen and it suggests a recipe that respects your diet and allergies.
  • 🌱 Food library: short guides to iron, protein, fibre, seeds and smart food pairings.

How I built it

HERspace is a single-page web app in plain HTML, CSS and JavaScript, with no framework and no backend.

One state object. Everything the app knows lives in one object S (diet, allergies, saved recipes, period days, daily logs). It's saved to localStorage after every change, and the screen is rebuilt from it. Change the state, re-render, done.

Diet filtering as numbers. Each diet gets a level: vegan =0, vegetarian =1, pescatarian =2, non-vegetarian =3. Each recipe stores the lowest level that can eat it, and its set of allergens . A recipe is shown to a user with diet level and allergies only if

So a vegan with a nut allergy never sees a peanut satay, and nobody has to scroll past meals they can't eat.

Predicting the next period. Logged days are grouped into periods (a gap of more than 2 days starts a new one). If periods start on dates .., each cycle length is ... , and the average cycle (using recent cycles between 15 and 60 days long, so logging mistakes don't skew it) is ...

The next period is predicted, where the cycle length you set. Your logged average .... is shown next to it, with a one-tap option to use it instead. Ovulation is estimated about 14 days before the next period, at cycle day, which lets the app work out your current phase (menstrual, follicular, ovulatory or luteal) and suggest phase-friendly foods.

Grocery list from ingredients. Each grocery item has a text pattern. For each planned meal, the app checks every ingredient line against those patterns, then counts and groups the matches by supermarket aisle, so "×3 spinach" means three meals this week use it.

Challenges I ran into

  • Dates are harder than they look. Daylight saving time can make a "day" 23 or 25 hours long, which broke my day counting. I fixed it by storing dates as YYYY-MM-DD text and doing the date maths in UTC.
  • Keeping the calendar honest. When I changed my period length from 7 days to 5, the calendar still showed 7. Setup was only adding days, never removing them. Now every logged period is resized to exactly the length you set, so the calendar always matches.
  • Making restrictions still feel generous. My first version had only 3 recipes per meal, so a vegan with allergies saw almost nothing. I expanded the library (inspired by PCOS-focused recipe collections) and checked every diet and allergy combination so each meal slot always has options.
  • Moving from "today" to "every day". Mood and symptoms were first saved only for today. To make them useful for spotting patterns across a cycle, I changed them to be saved for each date.

What I learned

  • How to design an app around one source of truth (a single state object) so features don't drift out of sync.
  • That good health UX is about removing decisions, not adding features. Filtering out what you can't eat helped more than showing more recipes.
  • Practical date maths, simple averaging for predictions, and why predictions should be shown as estimates, especially since irregular cycles are common with PCOS.
  • A lot about PCOS-friendly nutrition: pairing iron with vitamin C, choosing low-GI carbs, and putting protein and fibre together.

What's next

  • Charts linking mood and symptoms to cycle phases over time
  • More recipes and regional cuisines
  • Reminders before a predicted period
  • Optional account sync across devices

HERspace isn't medical advice. It's a calm, organised space to make everyday health choices a little easier.

Built With

Share this project:

Updates

Submission history