The problem
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 report, 72.0% of the 1,096 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 picked this problem. I have not yet collected feedback from other users, so the need is supported here by the survey above and not by my own interviews.
Who it is for
Households where at least one person has a food allergy, and the shelter staff who would have to feed them after a disaster.
What it does
MyStock has three steps.
- 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".
- 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). Enter the date you stocked the food and the months between checks, and the app shows the next check date.
- 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 I built it
A plain HTML, CSS and JavaScript page hosted on GitHub Pages. 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).
Setup: open the demo link. To run it locally, download the repository and open index.html. To run the tests, use node --test test/logic.test.js and node test/dom_check.js.
Built during the hackathon
The repository was created on November 29, 2026, inside the hackathon period (October 16 to December 4). All of the code was written for this project in that period. I also entered MyStock in Code for Change, another Devpost hackathon that ran at the same time.
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. Input errors were the second: typing a smaller number of people never deletes a person, and a date that does not exist (such as 2026-02-30) is shown as an error and is not moved to another day.
What I learned
A safety tool has to show what it does not know. A person with no boxes ticked must not read as a person who can eat anything, so the card prints "not confirmed" for them. I also learned to leave things out. The app has no product list: the labeling rules changed on April 1, 2026, when cashew joined the mandatory list, so a stored product list would go stale and could be wrong. The app plans types of food and tells you which allergens to check, and the label stays the final check.
Limits
It has not been tested with families or shelter staff. It covers the nine mandatory items on Japanese labels and whatever the user types in, and nothing else. It does not check products.
What's next
Test the card with families who have food allergies and with shelter staff, then add more languages to the card. These are plans, not done work.
Credits
- AI assistance: Claude (Anthropic, Claude Code) was used to write parts of the code, the tests and this text.
- No third-party libraries, datasets or assets are used.
- Sources: Ministry of Agriculture, Forestry and Fisheries, stock guidance (https://www.maff.go.jp/j/pr/aff/1909/spe1_01.html). Ministry of Health, Labour and Welfare research grant report, 2021 (https://mhlw-grants.niph.go.jp/system/files/report_pdf/202113004A-buntan2.pdf). Consumer Affairs Agency, food allergen labeling (https://www.caa.go.jp/policies/policy/food_labeling/food_sanitation/allergy/).