Inspiration

In a 2021 report from a research grant of Japan's Ministry of Health, Labour and Welfare (survey in January and February 2021), 998 of 1,221 caregivers of children under 20 with allergies (81.7%) named "getting food they can eat" as one of their worries at public shelters. Multiple answers were allowed. In the same report, 907 of 1,096 people who need special meals in an evacuation (82.8%) did not know whether the public shelter had allergy-friendly food stored.

The stock at home comes first. The Ministry of Agriculture, Forestry and Fisheries advises keeping at least three days of food, and ideally seven. In the same 2021 report, only 72.0% of 1,096 households that need allergy-friendly food keep three days or more at home, and 15.1% keep seven days or more.

I have egg and wheat allergies myself, which is why I built this. I have not yet collected feedback from other users; testing with families and shelter staff is the next step.

What it does

MyStock has three steps.

  1. Household: enter how many people live with you, the days to cover, and the meals per day. For each person, tick the foods they cannot eat, using the nine items that Japanese food labels must name. Or tick "No food allergies" only if the person confirms it. Unticked people are marked "not confirmed" on the card, never as "no allergies".
  2. Stock plan: the app multiplies people, days and meals. For two people, three days and three meals, that is 18 meals. It shows which allergens are shared by everyone and which only one person needs, and lists six food categories with the allergens to check on each label, including any foods typed in by hand (for example sesame). Rotation: enter the date you stocked the food and the months between checks, and the app shows the next check date.
  3. Emergency card: a one-page text card in Japanese and English, one line per person, with optional notes and a contact. You can print it, copy it, or keep it on this device.

How it works

It is a plain HTML, CSS and JavaScript page. There is no account, no server, no API key, and no network request. Entries are saved only in this browser, and a button clears them. The logic is separate from the page code, and two test files check it with Node's built-in test runner (15 logic tests and 20 page checks). Typing a number out of range shows a reason and keeps the entries. Typing a smaller number never deletes a person. A date that does not exist (such as 2026-02-30) is shown as an error, not moved to another day. "Clear saved data" really empties the saved entries.

What it does not do (on purpose)

It does not list products. An allergen database would need constant updates. The labeling rules changed on April 1, 2026, when cashew was added to the mandatory list, so a product's label can change. The app therefore plans types of food and tells you which allergens to check. The label stays the final check.

Challenges

Scope was the main decision. Every extra input asks people to enter more, and the app is meant for people who may be under stress. So each step is one screen, and the card fits on one page. Unchecked boxes were the hardest case: a blank is not a "no", so the card says "not confirmed" until someone confirms it.

Accomplishments

A prototype that turns a household's needs into a shopping checklist, a rotation date and a printable card, with no setup and no server. The logic has 15 unit tests, and the page has 20 checks that replay user steps (including the case where the people field is cleared and filled again, and the clear button).

What's next

Add verified allergen-free products through partnerships with food makers and pharmacies, add more languages to the card, and test the card with families who have food allergies and with shelter staff. These are plans, not done work.

Sources

Links

Share this project:

Updates

Submission history