Fruit Quince
v1.0A fruit and nutrition tracker for iOS and Android: frosted glass cards on a mint-to-peach orchard morning, with rings, a macro donut, a weekly chart and a meal plan.
Ingebouwd
Wat je krijgt- Licht en donkerGebruikt de kleuren van je thema
- telefoon en tabletDe schermen waarvoor het is gebouwd
- Pakketten…
- Codegrootte…
- Zuinig voor de batterij30 fps, rust als er niets beweegt
- Pauzeert als het verborgen isBuiten beeld of ander tabblad
- Minder bewegingRustig voor wie erom vraagt
Bij elke wijziging gecheckt
Beveiliging gecheckt op 3 dec- TypecheckTypeScript strict
- Lint en opmaakESLint · Prettier
- Tests en buildScreenshots in licht en donker
- BeveiligingsauditGeen hoge of kritieke advisories
- Leeftijd van pakkettenElke versie al 7+ dagen openbaar
- CPU in rustOnder een halve core in rust, ≤ 30 fps
Code
fruit-quinceReact Native
- README.mdHow to run it, change it and ship it.
- app.config.tsThe app's name, ids and platform settings.
- package.jsonThe app's packages: Expo, React Native.
- package-lock.jsonThe exact package versions npm ci installs.
- tsconfig.jsonTypeScript settings: strict, typed routes.
- .npmrcnpm settings: exact versions, no install scripts.
- .gitignoreWhat git leaves out: packages, builds, keys.
- images.d.tsLets the app import its photos (data/photos.ts): Metro turns each .png cut-out and .jpg photo into an image source <Image> takes.
- appThe screens, one file per route (Expo Router).
- (tabs)The screens, one file per route (Expo Router).
- _layout.tsxThe tabs: Home, Fruits, Stats and Profile with the green + disc between them.
- fruits.tsxFruits, as drawn in the orchard screens: the top bar with the filter, the group chips (All, Berry, Tropical, Citrus, Orchard) and every fruit in a two-column grid of glass cards, each with its calories and a "+".
- home.tsxHome, as drawn in the orchard screens: the greeting with the avatar, the search pill, Today's Goal (the day's calories, a bar and a ring filling to the share eaten), the Nutrition Overview tiles and the Top Fruits row.
- profile.tsxProfile: the person (avatar, name, email), three of today's numbers (day streak, fruits eaten, glasses of water), then the places to manage it all (Food Log, Meal Plan, Water, Goals, Settings) and Sign Out, which asks first, fades out and lands on sign in.
- stats.tsxStatistics, as drawn in the orchard screens: Day / Week / Month / Year, the Calorie Intake card (the span's total counting up and its bars, the picked one deep green with its number above; tap a bar to pick it) and the Nutrients Ratio card (a donut with its legend).
- fruitThe screens, one file per route (Expo Router).
- [id].tsxA fruit's page: its photo dropping onto a soft glass disc, its name, group and a line about it, the portion stepper and the meal to add it to, what that amount holds (calories counting, then each nutrient), the planned bowls it is in, and Add to Log (the fruit flies to the log).
- mealThe screens, one file per route (Expo Router).
- [id].tsxA planned meal: the bowl's photo dropping onto a glass disc, its slot and day, its name and calories, what a serving holds, the fruit in it (each opens its page), then Add to Log (the bowl flies to the log), Edit Meal and Delete Meal (asks first, then goes back with Undo).
- _layout.tsxThe root: loads the Inter weights, follows the phone's dark or light setting and stacks the screens.
- goals.tsxGoals: calories a day, glasses of water and fruit portions, each with − and +, and Save, which sets the rings on Home and Nutrition and goes back with a note.
- index.tsxThe welcome screen, as drawn in the orchard screens: a round menu button and the Quince mark at the top, "Eat Fruits / Live Healthy", a line under it, Get Started (to sign up) and the fruit pile filling the bottom.
- log.tsxToday's food log: what was eaten against the goal (a ring and the calories counting up), then every entry grouped by meal (Breakfast, Lunch, Dinner, Snack), each with its picture, amount and calories.
- meal-form.tsxA new meal for the plan, or a planned one changed: its name, slot, bowl photo, the fruit in it and what a serving holds.
- meal-plan.tsxMeal Plan, as drawn in the orchard screens: the date pill, the day's Recommended Meals (each bowl with its slot, name, calories and a green "+" that adds it to the log) and the Daily Progress card (today's calories eaten against the goal).
- nutrition.tsxNutrition, as drawn in the orchard screens: the date pill, a big multicolor donut with the day's calories counting up in the middle, the legend (each nutrient's grams and share) and the Water Intake card.
- search.tsxSearch, opened from Home's search pill: the field (focused at once), then recent searches and popular fruits while it is empty, or the fruits and planned bowls that match as you type.
- settings.tsxSettings: the three reminders (meals, water, the weekly summary), each a switch that takes effect at once, and the app's version.
- sign-in.tsxSign in: email and password (with show/hide), Forgot password, the demo account to fill in with one tap, and a link to sign up.
- sign-up.tsxSign up: full name, email and password (with show/hide), then Sign Up, which fades to Home.
- water.tsxThe water log: today's glasses in a big blue ring with − and + to take one back or add one (with a note and Undo), how many are left to the goal, and the last seven days as bars (today picked).
- componentsThe parts the screens are built from.
- auth-frame.tsxThe frame of sign in and sign up: the Quince logo, the title and a line under it, the form on a frosted card and a footer line to the other screen, over the orchard backdrop.
- backdrop.tsxThe soft orchard light behind every screen: mint at the top, cream in the middle and peach toward the bottom corner, with three big round glows (mint top start, peach bottom end, blush at the side) that the glass cards float over.
- bar-chart.tsxThe calorie bars on Statistics: one soft green bar per day (or week, month, year), the picked one deep green with its number in a bubble above it.
- build.tsxA part coming in (MOTION in constants/motion.ts): from its first frame it waits at its moment's pose (a block clear and 10pt low, a fruit picture a little above), then moves to its place at its turn.
- button.tsxThe main action: a green pill with its label, at least one touch target tall.
- card.tsxA frosted glass card: see-through white with a fine light rim, an inner top highlight and a soft lift (no blur, so many can sit on one screen and Android looks the same).
- chips.tsxA row of glass pills with one picked (All / Berry / Tropical / Citrus, Day / Week / Month / Year): a green pill glides under the picked one, placed at once on its first measure (hooks/use-slide.ts).
- confirm-sheet.tsxA yes-or-no question in a sheet before something that can't be taken back (sign out, delete a planned meal): the question, a line under it and two buttons, Cancel and the action.
- date-pill.tsxThe date pill at the top of Nutrition and Meal Plan ("Today, 20 May" with a calendar): it opens a sheet listing today and the six days after it, the picked one green; picking a day closes the sheet.
- donut.tsxA multicolor donut (today's calories split into carbs, protein, fats and others; the week's nutrient ratio): each part an arc in its pastel, sweeping round clockwise from the top in turn as it first shows, then gliding to new shares.
- entry-sheet.tsxChanging one food log entry: how much (grams of a fruit in 25 g steps, servings of a meal in halves), which meal it belongs to, Save, and Remove from Log (with Undo).
- field.tsxA labelled text field on glass with one designed focus state on every platform: the rim takes the green (same width, so nothing shifts).
- fly.tsxThe flying fruit (hooks/use-fly.ts), drawn once at the root over every screen: the picture rises in a soft arc from the + that was tapped to the green + disc, shrinking as it goes, and the disc pops as it lands.
- forgot-sheet.tsxForgot password, in a sheet over sign in: the email (filled from the form), Send Link, then a line saying a link is on its way.
- fruit-card.tsxA fruit in the Fruits grid: a frosted card with the fruit's cut-out photo dropping in, its name, its portion's calories and a small white "+" that adds a portion to the log (the fruit flies to the + disc and the button pops).
- fruit-picture.tsxA fruit or bowl picture: its cut-out photo fitted inside a square box over a soft contact shadow, so it sits on the glass like the real thing.
- fruit-pile.tsxThe welcome screen's hero: a pile of cut-out fruit at the bottom (a pineapple standing at the back, half an orange, half a grapefruit, an apple, half a kiwi and a bunch of grapes in front) with a few drawn leaves drifting above.
- glass.tsxA frosted glass panel for the navigation: real blur on iOS and the web; on Android, where blur is still experimental, a translucent tint (the same look, unblurred), so it is designed to look right as plain tint.
- icon.tsxLine icons on a 24-point grid, drawn so the app needs no icon font.
- legend-row.tsxOne line of a donut's legend: the part's colored dot, its name and its amount at the end.
- list-row.tsxA row that opens something (Profile's places, a screen's menu): a soft green round with an icon, its name, an optional detail under it and a chevron at the end.
- logo.tsxQuince's mark, drawn for the app: a green disc holding a plump white quince (round below, a soft neck above) with a stem and one leaf.
- meal-row.tsxA planned meal on Meal Plan: a glass card with the bowl's photo dropping in at the start, its slot (Breakfast, Lunch, Dinner), its name, its calories and a green "+" disc that adds it to today's log (the bowl flies to the + disc).
- menu-sheet.tsxThe four-dot menu of a screen (Nutrition, Statistics, Meal Plan): a sheet listing where to go next or what to do; picking a row closes the sheet first.
- nav-rail.tsxThe tablet's navigation: the phone's bar stood upright at the start side, a frosted column with the Quince mark, the green + disc, then Home, Fruits, Stats and Profile, the open place in green.
- nav-tab.tsxOne place in the navigation (Home, Fruits, Stats, Profile): its icon with its name under it, green when it is the open place, soft grey otherwise; the icon lifts a touch as it is picked.
- pick-fruit-sheet.tsxQuick add's fruit picker: every fruit in a grid of small glass tiles with its calories; tapping one adds its usual portion to the log (the fruit flies to the + disc) and closes the sheet.
- plus-disc.tsxThe raised green "+" disc in the middle of the navigation: it opens and closes quick add (the + turns into a ×), tells the flying fruit where to land (hooks/use-fly.ts) and pops each time one lands.
- pressable-scale.tsxA Pressable that shrinks a little under the finger and springs back.
- progress-bar.tsxA thin rounded progress bar: a soft track and a fill (the green by default, the water blue for water) that grows from the start the first time it shows, then glides to each new value.
- quick-add.tsxQuick add, opened by the green + disc: the screen dims and three glass bubbles pop out around the disc one after another (a fruit, a meal, a glass of water).
- ring.tsxA progress ring: a soft track and a green arc that grows clockwise from the top, filling from empty the first time it shows, then gliding to each new value (hooks/use-fill.ts).
- round-button.tsxA small round button with one icon: the white glass "+" on a fruit card, the green "+" disc on a meal, a back arrow or a menu.
- screen.tsxEvery screen's frame: the orchard backdrop and the safe-area insets, so nothing sits under the notch, the status bar or the home indicator.
- section-head.tsxA section's title with an optional "See All" link at the end.
- sheet.tsxA bottom sheet over a dimmed screen (a portion, a day, the filters, sign out).
- stepper.tsxA number with − and + on either side (portions, servings, goals): it stays between `min` and `max`, and screen readers hear it as an adjustable value they can swipe up or down.
- tab-bar.tsxThe phone's navigation, as drawn in the orchard screens: a frosted bar along the bottom with Home, Fruits, the raised green + disc, Stats and Profile, the open place in green.
- text-link.tsxA green word link (Forgot password?, Sign in), with a full touch target around it however short it is.
- tile.tsxOne of Home's Nutrition Overview tiles: a colored glyph (a flame for calories, a leaf for carbs, drops for protein and fats), the nutrient's name and today's amount, counting up as it shows.
- toast.tsxThe note after an action ("Kiwi added to your log", "Lunch deleted · Undo"): a deep green pill that rises above the navigation, stays four seconds and fades away.
- toggle.tsxA row with an on/off switch: its name, a line under it, and a pill switch whose knob slides across.
- top-bar.tsxA screen's top row as in the orchard screens: a back arrow at the start, the title in the middle and one action at the end (the filter, the four-dot menu), each with a full touch target.
- water-card.tsxThe Water Intake card on Nutrition: a blue drop, today's glasses out of the goal, a glass "+" that adds one (with a note and Undo) and a blue bar filling toward the goal.
- words.tsxEvery line of text: a size from TYPE, a weight (regular, medium, bold or the heading face) and a tone (the text color, muted, faint, the green or the water blue), so the screens stay on one small type scale.
- constantsColors, sizes, motion and the brand defaults.
- color.tsSmall color math for the shades that follow the brand colors.
- motion.tsMotion settings shared by every animation: Quince's "fresh pop".
- theme.tsQuince's colors, the brand defaults and the sizes every screen shares.
- hooksState and theme hooks.
- store.tsA tiny store for the app's state: one value, changed with `update`, and read in components with useStore, which redraws them when it changes.
- use-account.tsThe account: who is signed in (or that they signed out, which guards the signed-in screens, app/_layout.tsx) and the accounts made on this phone.
- use-add.tsAdding to today's log from anywhere (a fruit card's +, a meal's +, a fruit's page, quick add): the entry is added, a small copy of its picture flies from the + to the navigation's disc, and a note with Undo says what was added.
- use-brand.tsThe brand settings: the values in constants/theme.ts.
- use-count-up.tsA number that counts from where it was to its new value (calories, grams, glasses), easing out over FILL.
- use-fill.tsA shared value that fills from 0 to `value` (0 to 1) the first time it shows, after `delay`, then glides to each new value: rings, donuts and progress bars all fill this way.
- use-fly.tsThe fruit that flies to the log: an add sends a small copy of its picture from the + that was tapped to the green + disc in the navigation, which pops as it lands.
- use-goals.tsThe daily goals (calories, water, fruit portions) and the reminders, set on the Goals and Settings screens.
- use-icons.tsHow the line icons are drawn (ICON in constants/theme.ts).
- use-layout.tsPhone or tablet layout, from the window's width (not the device), so an iPad in Split View or a small Android tablet gets the layout that fits.
- use-leave.tsA soft hand-off between screens that replace each other (Get Started → sign in, sign in → Home, Sign out → sign in): the screen fades out, then the next one comes in.
- use-log.tsToday's food log: every fruit and meal eaten, with its slot in the day.
- use-motion.tsThe app's moments (MOTION in constants/motion.ts): how parts come in and answer a press.
- use-moves.tsThe app's animations (movesOf in constants/motion.ts), built from its moments (hooks/use-motion.ts).
- use-plan.tsThe meal plan: the bowls planned for each day.
- use-scheme.tsDark or light, from the phone's appearance setting (app.config.ts sets userInterfaceStyle "automatic"); on the web, the browser's setting.
- use-slide.tsA position that springs to each new target, except the first one it is measured at: there it starts in place, so the marker under the chosen tab or segment doesn't slide in from the edge when its screen opens.
- use-still.tsWhether the app's own loops and plays stay still: the phone's "Reduce motion" is on, or MOTION.reduce is Always (constants/motion.ts).
- use-theme.tsThe palette of the phone's theme and the styles that depend on it and on the brand, rebuilt only when one of them changes.
- use-toast.tsA short note at the bottom after an action ("Kiwi added to your log"), with an optional Undo.
- use-visit.tsxCounts each visit to a tab, so a tab's screen builds up again every time it is opened, not only the first time (constants/motion.ts).
- use-water.tsWater today, glass by glass, and the six days before it.
- dataEvery word and product the app shows.
- copy-account.tsThe words of the welcome, sign-in and account screens (the rest are in data/copy.ts), so a buyer changes them in one place.
- copy.tsEvery word the screens show, so a buyer changes them in one file.
- fruits.tsEvery fruit the app knows: its group, its usual portion and what 100 g holds (calories, carbs, protein, fat, fiber, sugar and vitamin C in mg, rounded from public food tables).
- history.tsThe calories and nutrient split of the weeks, months and years before today, for Statistics.
- meals.tsThe meal plan's bowls: each meal's slot in the day, its bowl photo, what it holds and the fruit in it.
- photos.tsThe fruit and bowl pictures: real photos cut out onto a clear ground (Unsplash stand-ins, free license; credits in README.md), so they sit on the glass like the fruit in a bowl.
- user.tsThe signed-in person, their goals and today's sample log, so the app opens full.
- pluginsBuild settings Expo has no option for.
- night-window.tsAndroid's window color (behind the screens) for a phone in dark mode.
- assetsThe photos the screens show.
- photosThe photos the screens show.
- apple.pngA photo the app shows.
- avatar.jpgA photo the app shows.
- banana.pngA photo the app shows.
- berries.pngA photo the app shows.
- blueberry.pngA photo the app shows.
- bowl-salad.pngA photo the app shows.
- bowl-smoothie.pngA photo the app shows.
- bowl-yogurt.pngA photo the app shows.
- grapefruit.pngA photo the app shows.
- grapes.pngA photo the app shows.
- kiwi.pngA photo the app shows.
- lemon.pngA photo the app shows.
- mango.pngA photo the app shows.
- orange-whole.pngA photo the app shows.
- orange.pngA photo the app shows.
- pineapple.pngA photo the app shows.
- strawberry.pngA photo the app shows.
- watermelon.pngA photo the app shows.
README.md
How to run it, change it and ship it.
Laden…
- Goed voor
- Fruit, nutrition and diet apps that log meals, water and daily calories, and plan the week's meals.
- Hoe het werkt
- Log fruit, meals and water from the + disc, watch the day's goal fill, read the week's charts and plan meals day by day.
- Hoe je het gebruikt
- Run it in Expo Go, change the words in data/copy.ts, the fruit, meals and user in data/, and the colors in constants/theme.ts, then build with EAS for the stores.