尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证A cute, guilt-free added-sugar tracker for people who are prediabetic or not sure: a personal, sourced daily limit, and every treat's number traced to its Nutrition Facts label. Built for Devpost's Build With AI: Basics.
翻译准备中
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
A cute, guilt-free added-sugar tracker. Answer two questions, get a personal daily added-sugar limit with its source, then tap treats to see how close you are. Honey the bear keeps you company, and nothing you enter leaves your browser.
Built as a small proof of concept for Devpost's Build With AI: Basics hackathon with the Devpost Learn skill pack, following its plan-first workflow (scope → PRD → spec → build). The planning documents are in devpost/: scope.md, prd.md, spec.md, the build checklist.md, and a take-home app map. skills-lock.json records which skill-pack versions were used.查看完整 README ↗A cute, guilt-free added-sugar tracker. Answer two questions, get a personal daily added-sugar limit with its source, then tap treats to see how close you are. Honey the bear keeps you company, and nothing you enter leaves your browser.
Built as a small proof of concept for Devpost's Build With AI: Basics hackathon with the Devpost Learn skill pack, following its plan-first workflow (scope → PRD → spec → build). The planning documents are in devpost/: scope.md, prd.md, spec.md, the build checklist.md, and a take-home app map. skills-lock.json records which skill-pack versions were used.
Try it: https://rachelselbrede.github.io/sugar-tracker/ · Code: https://github.com/rachelselbrede/sugar-tracker
Someone who is prediabetic, or isn't sure, and wants to notice how much added sugar they eat without a diet app that feels like calorie-shaming. Anyone can use it, but the default limits and the wording are tuned for them.
Why it matters: more than 2 in 5 American adults have prediabetes, which raises the risk of type 2 diabetes, heart disease, and stroke (CDC). US adults average about 17 teaspoons of added sugar a day, roughly 68 g at 4 g per teaspoon, and the leading sources are sugar-sweetened beverages, desserts, and sweet snacks (CDC). The American Heart Association's limit for women is 25 g. The app counts added sugar only, because that is what the public limits are written about, and because it's the sugar you can actually choose.
devpost/checklist.md > Revisions).No build step and nothing to install. Serve the folder, then open the page:
python3 -m http.server 8000
Then visit http://localhost:8000. Opening index.html directly won't work, because browsers block JavaScript modules on file://.
npm test
This uses Node's built-in test runner and installs nothing. The tests cover the limit table, the scale math, goal validation, the day key, safe storage, a check that every built-in treat has a positive added-sugar value, a serving, a valid basis, an https source, and a check date, plus validation and safe storage of treats you add yourself.
Daily limits (added sugar per day):
| Profile | Limit | Source |
|---|---|---|
| Prediabetic, or not sure | 25 g, labeled as general guidance | There is no official added-sugar number for prediabetes. This uses the careful end of public guidance: the WHO's conditional target of under 5% of energy and the AHA's limit for women. |
| Not prediabetic, female | 25 g | American Heart Association |
| Not prediabetic, male | 36 g | American Heart Association |
| Not prediabetic, prefer not to say | 25 g | American Heart Association (the more careful limit) |
Treats. A treat only goes on the built-in list if its added sugar is known, not guessed. Each value is the "Includes Xg Added Sugars" line from the product's US Nutrition Facts panel, read from a grocery-store product page that shows the full panel, for the serving shown. Items whose labels only give total sugar and contain milk, fruit, or juice were left out. The list and its source links live in js/treats.js, and the research notes are in devpost/sources.md. Treats you add under My treats come from your own label and are stored only in your browser.
Product names appear only to identify which Nutrition Facts panel a number came from. No logos or brand assets are used.
Treat Yourself is general guidance, not medical advice. Talk to your clinician about what's right for you.
Plain HTML, CSS, and JavaScript modules, with no framework and no dependencies.
index.html — both screens (Profile and Tracker), the goal panel, the source popup, the add-your-own-treat form, and the footerstyles.css — the pastel candy-shop look, layout, and reduced-motion fallbackjs/app.js — wires the page together: loads saved state, renders, handles taps, checks for a new dayjs/logic.js — the rules, as pure functions: recommendedLimit, scaleState, isValidGoal, todayKey, customTreatErrorsjs/storage.js — safe localStorage reads and writes (ty.profile, ty.goal, ty.log, ty.custom) that never crash on blocked or corrupt datajs/treats.js — the treat list with added sugar, serving, basis, and source linkjs/honey.js — Honey the bear, drawn as SVG in four moodstests/ — the Node testsHoney the character comes from our earlier Treat Yourself project and was redrawn for this build; no earlier code was reused. The fonts (Fredoka, Nunito, Pacifico) and the pastel palette carry over as the design direction.
MIT. See LICENSE.