Instacart Clone
Instacart clone · Grocery delivery app · from our videos on X
Instacart Clone is an Instacart-style grocery delivery app rebuilt in SwiftUI as Bagful, with its own name and code-drawn wordmark. Pick a store, tap the green + on Thanksgiving groceries and watch each one fly into the cart, choose how ripe your bananas should be, and check out with Priority or Standard delivery and a tip. Then a shopper, Maria, shops your order live: items tick off as she finds them, a sold-out turkey brings up her replacement card to approve, and she chats with you. Her car crosses a Brooklyn map to your door and the order ends on a doorstep photo. A hidden HOOK MODE replays the replacement for videos.
- iPhone · Swift
- Built in 1 prompt
- Free to remix

Remix copies the working app into your account for free, exactly as we built it. It runs in Vibecode's cloud iOS simulator, in your browser.
Watch the video on X@vibecodeapp · Nov 23, 2026The prompt that builds it
We built Instacart Clone in one prompt. Paste it into a new app to build your own copy, or change it first.
Prompt · 3,345 words
Build Bagful, a polished native iPhone app in SwiftUI: an Instacart-style grocery delivery app. You pick a store, add groceries with green + buttons, check out, and a personal shopper shops your order live: items tick off as she finds them, she sends replacements for sold-out items that you approve, then she drives to your door and leaves a photo. The user is Alex Rivera in Brooklyn. Today is Monday, November 23, 2026, Thanksgiving week.
ASSETS
curl -L once and unzip flat: https://vibecode-bagful-media.beacon.host/media.zip (bagful-icon.png: the app icon; 30 product photos on white, 768x768, named by product id below; banana-green, banana-yellow, banana-spotted for the ripeness picker; maria.jpg, alex.jpg, grandma.jpg portraits; promo.jpg 1200x800; doorstep.jpg 768x1152; grandma-pie.jpg and grandma.jpg are spare files the app doesn't show yet, kept for remixes). Add them all to the asset catalog. No image generation is needed.
SHELL
Opens on Home: no splash, onboarding, sign-in or permission prompts. Light only (force .light), the status bar visible with dark text on every screen. Root = one ZStack: a TabView (Home, Orders, Account; house.fill, bag.fill, person.crop.circle; tint brand green), the sheet layer (ReplacementSheet), the banner layer, the cart-flight layer, the touch dot, and the HOOK MODE window. Screens under a sheet or banner stay rendered at all times.
FORMAT (Format/)
One Money formatter with Locale(identifier: "en_US") ("$38.97"); the simulator's region is not en_US, never use the device locale. Times "2:15pm", windows "2:10–2:25pm". Counts "11 of 14 items found", "3 items". Digits roll with .contentTransition(.numericText()) and .monospacedDigit().
FIXTURES (Data/Fixtures.swift: ONE list per kind; a new product, store, person or request is one entry)
Me: id "me", "Alex Rivera", photo alex, address "84 St Johns Pl, Apt 3", "Brooklyn, NY 11217".
People (id · name · role · photo · line): maria · Maria · shopper · maria · "4.9 ★ · 1,284 orders"; grandma · Grandma Rose · family · grandma · "Family" (not shown anywhere yet).
Stores (id · name · logo circle colour · logo text · eta), logos drawn in code (a circle with the text in white SF Pro .heavy, no images): greenleaf · Greenleaf Market · #2E7D32 · "green leaf" (two lines) · "by 2:15pm"; costwise · Costwise · #C62828 · "COSTWISE" · "by 3:00pm"; harbor · Harbor Foods · #1A3A6B · "Harbor" · "by 2:40pm"; sunny · Sunny Mart · #F9A825 · "sunny" · "by 2:30pm"; freshco · Fresh & Co · #7CB342 · "FRESH&CO" · "by 3:15pm"; petpantry · Pet Pantry · #6A1B9A · "PET" · "by 4:00pm". Only Greenleaf opens; the others toast "Coming soon".
Products (id · name · size · price · was-price for deals), photo = id:
turkey · Whole Turkey, Fresh · 14 lb · 38.97
turkey-breast · Bone-in Turkey Breast · 3 lb · 17.49
cranberry · Cranberry Sauce, Jellied · 14 oz · 2.29 · 2.79
stuffing · Herb Stuffing Mix · 12 oz · 3.49
sweet-potatoes · Sweet Potatoes · 3 lb bag · 4.47
potatoes · Russet Potatoes · 5 lb bag · 4.99
green-beans · Fresh Green Beans · 1 lb · 2.99
pie · Pumpkin Pie · 24 oz · 7.99 · 9.99
rolls · Dinner Rolls · 12 ct · 3.99
butter · Salted Butter · 4 sticks · 5.49
cream · Heavy Whipping Cream · 16 oz · 4.29
broth · Chicken Broth · 32 oz · 2.79
pumpkin-can · Pumpkin Purée · 15 oz · 2.49
marshmallows · Mini Marshmallows · 10 oz · 1.99
pecans · Pecan Halves · 8 oz · 6.99 · 8.49
sage · Fresh Sage · 0.75 oz · 2.49
celery · Celery Hearts · 1 bag · 2.99
onions · Yellow Onions · 3 lb bag · 3.49
cider · Sparkling Apple Cider · 25.4 fl oz · 4.99 · 5.99
whipped · Whipped Cream · 6.5 oz · 3.79
bananas · Bananas · each · 0.29 (photo banana-yellow; has the ripeness picker)
apples · Honeycrisp Apples · per lb · 2.99
avocados · Hass Avocados · each · 1.25
strawberries · Strawberries · 1 lb · 3.99 · 5.49
milk · Whole Milk · 1 gal · 4.29
eggs · Large Brown Eggs · 12 ct · 4.99
carrots · Carrots · 2 lb bag · 1.99
coffee · Ground Coffee · 12 oz · 8.99 · 10.99
grandma-pie · Grandma's Pumpkin Pie · Homemade · 0.00 (in no aisle; not shown yet)
Greenleaf aisles: Thanksgiving (turkey, pie, cranberry, stuffing, sweet-potatoes, green-beans, rolls, butter, cream, broth, pumpkin-can, marshmallows, pecans, sage, celery, onions, cider, whipped); Produce (bananas, apples, avocados, strawberries, carrots, sweet-potatoes, potatoes, green-beans, celery, onions, sage); Dairy & Eggs (milk, eggs, butter, cream, whipped); Bakery (rolls, pie); Pantry (stuffing, cranberry, broth, pumpkin-can, marshmallows, pecans, coffee); Drinks (cider, coffee).
The Thanksgiving order (id "thanksgiving", Greenleaf, shopper maria), 14 lines in this order: turkey, pie, cream, marshmallows, cranberry, stuffing, sweet-potatoes, potatoes, green-beans, rolls, butter, broth, celery, sage (qty 1 each, estimated total $89.22). Turkey is the one sold-out item.
Past orders: Greenleaf Market · Nov 16 · Delivered · $54.12; Sunny Mart · Nov 9 · Delivered · $31.80.
Chat (Maria): "Hi Alex! I'm Maria and I'll be shopping your order today 🛒" · "Grabbing the sides first, then the turkey 🦃".
REPLACEMENTS (Replacements/: the seam a remix uses)
- ReplacementRequest: id, lineId (the order line it changes), replacementProductId, requesterId, headline, title, quote (optional), originalTag + colour, replacementTag + colour, approveLabel, secondaryActions ([String]), outcomeChip, priceOverride (optional), countdown (Bool). RequestCatalog.all = [turkey]; turkey: line turkey → turkey-breast, requester maria, headline "Maria found a replacement", title "Whole Turkey, Fresh is out of stock", quote "Last fresh 14 lb one just sold 😬", tags "Out of stock" red / "Replacement" green, approve "Approve", secondary ["Choose another", "Refund item"], outcome "Replaced", no price override, countdown true. A new request is one entry; the sheet, the row and the totals already read it.
- ReplacementSheet (custom, in the root ZStack, NOT .sheet): a white card from the bottom (corner 28 at the top, ~62% of the screen) over a 25% black dim, rising with a spring (0.30 s, no bounce past its rest). Inside: a grabber; the requester's 32 pt photo + headline (15 pt semibold) + "now" (13 pt secondary); the title (22 pt bold, 2 lines); the quote, when present, as a speech bubble (#F2F4F2, corner 16, 17 pt semibold, the requester's 28 pt photo at its left); two product tiles side by side (each 150 pt square photo on white, corner 14, 1 pt #E6E9E6 border; the original at 45% saturation with its tag capsule at the top-left, an arrow.right in a 32 pt white circle between them, the replacement with its tag), under each the name (14 pt semibold, 2 lines) and "size · $price" (13 pt secondary; the replacement's price is priceOverride when set); the approve button (full width, 54 pt, brand green capsule, 17 pt semibold white); the secondary actions in one row (15 pt semibold brand green); with countdown, "Respond in 4:59" (13 pt secondary) ticking down.
- approve(): the button presses to 0.96x, the card slides down (0.25 s) and the dim fades; 0.05 s later the line's row flips (rotation3DEffect around y, 0.30 s) to the replacement's photo and name with the original's name struck in 12 pt secondary under it, the outcome chip replaces its status, the found count and the estimated total roll. Success haptic. "Choose another" and "Refund item" close the card and toast.
ORDER ENGINE (Order/)
- OrderStore (@Observable, one, at the root): cart lines, the current order (lines with status pending/looking/found/outOfStock/replaced, phase placed/shopping/checkingOut/onTheWay/delivered, found count, estimated total, shopper), past orders, chat messages, banner, sheets, toasts.
- Live mode (after Place order): the Order placed screen for 1.6 s, then the Order screen; Maria finds the cart's lines one by one every 0.6 s in cart order (each: looking for 0.6 s, then found). If the turkey is in the cart, when she reaches it the line turns out of stock and the turkey request opens and waits for the user; after the answer she continues. When all are done: "Maria is checking out" for 2.0 s, then "Heading to you" (the map), then Delivered.
- ScriptStep (absolute seconds from the start, action): reset(orderId:, found:), tick(lineId), outOfStock(lineId), openRequest(requestId), approve, banner(personId, title, body), dot(to: CGPoint, duration:), press(CGPoint), dotHide, hold. ScriptPlayer runs a [ScriptStep] on the main actor against its start time (absolute times, so drift never builds). Scripted steps call the same actions as real taps.
- DemoScript.replacement(start:requestId:) returns the standard run: +0.00 openRequest, +0.35 the dot appears beside the approve button and glides onto it (0.17 s), +0.68 press, +0.78 approve, +1.00 dotHide. A remix appends a banner and another replacement(start:) to the hook.
- InAppBanner: drops from the top under the status bar (spring 0.3 s), 12 pt side margins, white, corner 20, shadow 12 pt at 12%: the person's 36 pt photo, title (15 pt semibold), body (14 pt secondary), "now" at the right; stays 3 s or until swiped up. Live mode uses it for Maria's chat lines.
- TouchDot: drawn above everything in HOOK MODE only: a 44 pt circle, black 35% fill, a 3 pt white ring, a soft shadow; scales in as it lands (0.12 s) and glides between points.
SCREENS
1. Home: header: the Wordmark at the left (a code-drawn bag glyph: a cream #FFF4DE rounded bag with a darker folded top band and a two-leaf lime sprout, then "bagful" lowercase 24 pt SF Pro .heavy #0D3B2C, tracking -0.5); at the right a person.crop.circle button (Account) and the cart button (cart.fill in a 40 pt #F2F4F2 circle, a brand green count badge that bounces and rolls). Under it "Deliver to" (12 pt secondary) over "84 St Johns Pl ⌄" (17 pt semibold). A search capsule "Search products and stores" (magnifyingglass, #F2F4F2, 44 pt). Categories: six 56 pt #F2F4F2 circles with a 28 pt emoji and a 12 pt label: 🥕 Grocery, 🦃 Thanksgiving, 🍷 Alcohol, ⚡️ Express, 🐶 Pets, 💊 Health (Thanksgiving and Grocery open Greenleaf; the rest toast "Coming soon"). Promo card (corner 20, lime #D9F7B8): "Thanksgiving, sorted." (22 pt heavy #0D3B2C), "Turkey, sides and pie by Wednesday" (14 pt), a #0D3B2C capsule "Shop now" (white 13 pt semibold), promo.jpg filling the right half under a rounded mask; opens Greenleaf on Thanksgiving. "Stores near you" (20 pt bold): the store logos (64 pt) with name (13 pt semibold) and eta (12 pt secondary). "Thanksgiving essentials" (20 pt bold, "View all" in brand green): ProductTiles of the Thanksgiving aisle. "Fresh deals near you": the products with a was-price.
2. ProductTile (one component everywhere, 140 pt wide in rows, a third of the width in grids): the photo (square, aspect fit on white, corner 12) with the + button at its top-right (a 34 pt brand green circle, plus 16 pt bold white, a white 2 pt ring). Tap +: it expands leftwards into a stepper capsule (trash or minus · qty · plus, 112 pt, spring 0.3 s) and collapses to a green qty circle after 2.5 s idle; a copy of the photo (a 44 pt circle, white fill, a 2 pt brand green ring, so it reads on white) flies on an arc to the cart button (0.45 s, visible every frame), then the badge bounces (1.3 → 1, 0.2 s) and its count rolls. Under the photo: the price (17 pt heavy; deals on a #FFE14D highlight capsule with the was-price struck, 13 pt secondary), the name (14 pt, 2 lines), the size (13 pt secondary). Tapping the photo opens Product detail.
3. Store (pushed): the store logo (44 pt) + "Greenleaf Market" (22 pt bold) + "Delivery by 2:15pm · $0 delivery fee on $35+" (13 pt secondary); a search capsule "Search Greenleaf Market"; aisle chips (Thanksgiving, Produce, Dairy & Eggs, Bakery, Pantry, Drinks; selected #0D3B2C with white text, others #F2F4F2); a 3-column grid of ProductTiles; with items in the cart a floating bar at the bottom: a brand green capsule "View cart · 3 items · $49.25" (opens Cart).
4. Product detail (.large sheet): the photo (300 pt), name (22 pt bold), "size · $price", the deal tag; for bananas a card "Choose your ripeness" (17 pt semibold) + "Your shopper picks to match" (13 pt secondary) with three 96 pt circle photos: banana-green "Not ripe · Green", banana-yellow "Ripe · Yellow", banana-spotted "Extra ripe · Spotted" (selected: a 3 pt brand green ring and a checkmark badge, spring); then the big "Add to cart" button that turns into a stepper.
5. Cart (.large sheet): "Greenleaf Market" + "Delivery by 2:15pm"; lines (56 pt photo, name, size, a stepper, the price); Subtotal; "Go to checkout" (brand green 56 pt capsule, the subtotal at its right) pushes Checkout.
6. Checkout: "Delivery address" (mappin.circle.fill, the address); "Delivery time" option cards: "Priority · 25–40 min · $2.99", "Standard · 1–2 hr · FREE" (selected), "Schedule · Pick a time" (selected: a 2 pt brand green ring, spring); "Payment" (creditcard.fill, "Visa •••• 4242"); "Tip your shopper": 10%, 15% (selected), 20%, Other with amounts; the summary (Items subtotal, Service fee $3.49, Delivery fee FREE, Tip, Total); "Place order" (56 pt capsule with the total).
7. Order placed: full screen white: a brand green circle whose checkmark draws in (trim 0 → 1, 0.5 s), "Order placed!" (28 pt heavy), "Maria will start shopping soon" (15 pt secondary).
8. Order screen (the hero): header: chevron.left, "Greenleaf Market" (15 pt semibold), "Help" (brand green). The tracker: four 36 pt circles joined by a 4 pt line (checkmark, cart.fill, car.fill, house.fill): done steps brand green with white icons, the current one brand green with a soft pulsing ring, later ones #E6E9E6; the line fills as phases pass. The title (28 pt bold): "Maria is shopping" / "Maria is checking out" / "Heading to you" / "Delivered" (words swap in one frame, never a fade through empty) with "Arriving 2:10–2:25pm" (15 pt secondary). The shopper card: Maria's 44 pt photo, "Maria" (17 pt semibold), "4.9 ★ · 1,284 orders", a 44 pt brand green chat button (bubble.left.fill, a red unread badge) that pushes Chat. Then "11 of 14 items found" (17 pt semibold) over a 6 pt brand green progress bar, "Estimated total $89.22" (15 pt secondary). Rows (68 pt): the 56 pt photo (white, 1 pt border, corner 10), the name (15 pt semibold) over the size (13 pt secondary), the status at the right: "Found" + checkmark.circle.fill (brand green; the check pops 0 → 1.2 → 1 in 0.2 s), "Looking…" (secondary, a shimmer sweeping left to right every 1.2 s), "Out of stock" (red), or the outcome chip (#F2F4F2 capsule, arrow.triangle.2.circlepath, 13 pt semibold).
Heading to you: a Map (MapKit, standard, no points of interest) fills the top 45%, a fixed camera fitting this route with 60 pt padding: (40.68431, -73.97777), (40.68390, -73.97741), (40.68019, -73.97474), (40.67743, -73.97662), (40.67686, -73.97516). The route is a 6 pt brand green MapPolyline; the home pin (a 36 pt #0D3B2C circle, house.fill white) at the last point; the car (a 40 pt white circle, car.fill brand green, shadow) is a SwiftUI overlay positioned every frame with MapReader's proxy.convert, moving along the route by distance over 12 s; "Arriving in 4 min" counts down to "Arriving now". On arrival the car shrinks into the home pin over 0.3 s, then "Delivered" and a card rises: doorstep.jpg (corner 16), "Left at your door · 2:18pm", "Rate your order" with five stars (tap fills them with a pop) and "Add tip".
9. Chat (pushed): Maria's bubbles #F2F4F2 at the left with her photo, mine brand green at the right; a resolved request shows as a small card ("Replacement approved ✓" with both thumbnails); quick replies "Thank you!", "Sounds good"; a field + arrow.up.circle.fill; my message appends with a spring, then typing dots and Maria's "You got it! 😊" after 1.5 s.
10. Orders tab: "Current order" card (store, phase line, found count) → the Order screen; "Past orders" rows. Account tab: alex photo, "Alex Rivera", rows (Your orders, Addresses, Payment methods, Bagful+ "Free delivery on $35+", Help) that toast.
HOOK (the video's first 3 seconds)
- HOOK MODE: tapping an invisible 24x60 pt strip at the RIGHT edge (x 378-402, y 430-490 pt), drawn in its own window above every sheet, banner and cover (a tap there closes whatever is open), resets everything and plays DemoScript.hook through the real ScriptPlayer, OrderStore, ReplacementSheet and Order screen, identical every time (seconds from the tap):
0.00 reset with no animation: the Orders tab with the Thanksgiving order's Order screen pushed, Shopping phase, the list at the top, lines cranberry … sage found (10 of 14), turkey, pie, cream and marshmallows "Looking…" with their shimmers PRE-WARMED mid-sweep (never a fade-in), estimated total $89.22, banners, sheets and toasts closed, the dot hidden.
0.25 tick(pie): the check pops, "11 of 14", the bar grows (0.25 s).
0.45 outOfStock(turkey): the status turns red in one frame.
replacement(start: 0.50, "turkey"): the card rises 0.50-0.80, the dot glides to Approve 0.85-1.02, press 1.18, approve 1.28 (card down, the turkey row flips to the breast with "Replaced", "12 of 14", $89.22 → $67.74), dotHide 1.50.
Then hold (real taps work again; the live mode does not run in HOOK MODE).
- Every wait uses the step's own time, never the live delays.
- What the eye must see: frame 0 fully drawn (tracker, title, Maria, rows with photos; no fade-in, no empty screen); something moves every half second; the card rises in one clean motion with both photos already drawn; the dot is visible on white; the flip is one smooth turn; digits roll, never jump.
LOOK
White #FFFFFF, surfaces #F2F4F2, separators #E6E9E6, text #18201B, secondary #69716C, brand green #11843D (buttons, +, checks, bars), deep green #0D3B2C (wordmark, selected chips), lime #D9F7B8 (promo), deal yellow #FFE14D, red #D93025, cream #FFF4DE. SF Pro (no rounded fonts). Springs under 450 ms, light haptics on taps, pressed states (scale 0.97). Photos decoded at launch off the main thread into one image cache.
RULES
- Native SwiftUI, iOS 26 (keep the template's target), iPhone portrait.
- Deterministic fixtures. No backend, login, permissions, location, notifications, analytics or network calls at runtime (MapKit tiles are fine). No persistence: delete the SwiftData starter, no UserDefaults or files.
- Files under 300 lines, big bodies split into subviews, no long chained expressions; every animation smooth at 60 fps.
- Keep every file inside /home/user/workspace (/tmp is denied).
REMIX-READY
Theme/Theme.swift (colours, fonts, metrics; no colour literals elsewhere), Theme/Copy.swift (every word), Data/Fixtures.swift, Data/DemoScript.swift. Codable models with String ids (Product, Store, Aisle, Person, OrderLine, Order, ReplacementRequest, ChatMessage) behind one BagfulDataSource protocol (FixtureSource) feeding OrderStore. OrderStore, RequestCatalog, ScriptPlayer, InAppBanner and the outcome chip are the seams. Components/: ProductTile, StepperButton, StoreLogo, Wordmark, InAppBanner, TouchDot, Toast, TrackerBar; Replacements/: ReplacementSheet, ProductCompareTile; Features/Home, Features/Store, Features/Cart, Features/Checkout, Features/Order, Features/Chat, Features/Account. README.md under 80 lines: the file map; how to rename the app, restyle it, add a store, a product or a replacement request; 3 one-prompt remixes (a farmers' market delivery app with stalls instead of stores; a pharmacy run where the replacement card offers the generic; an office snack run where a coworker is the shopper). "Read README.md first." atop CLAUDE.md and ios/AGENTS.md; replace ios/CLAUDE.md's structure block with this app's files. No scratch folders.
FILMING
Long-press the Home's address for 1 s to reset everything to launch (Home tab, empty cart, no current order, sheets, banners and toasts closed).
BUILD
Theme, Copy, Format and Fixtures, then Home with ProductTile and the cart flight (launch and look first), then Store, Product detail with the ripeness picker, Cart and Checkout, then the Order screen with OrderStore's live mode, the ReplacementSheet and RequestCatalog, then ScriptPlayer, TouchDot and HOOK MODE, then the map phase, Delivered, Chat and the Orders and Account tabs; a one-line status per screen; launch in the simulator every two or three files. Fetch media.zip as soon as the shell runs; check the files exist, never view them. Walk each flow once and fix what breaks; no pixel measuring or debug modes. Deliver the whole app, not a plan. Do not publish.More templates
All templates- View template

Tilt
iOSWatch faces piled with tennis balls, diamonds, basketballs, gold bars and soccer balls that roll as you tilt.
- View template

Amazon Clone
iOSAn Amazon-style store: Black Friday deals, search, product pages, add to cart, checkout and package tracking.
- View template

Scia
iOSReal motion blur for iPhone UI: lists, cards, carousels and app pages smear as they move, like a camera.
- View template

Kickoff
iOSA football ticket app: tap a section, pick a seat, and fly into a 3D stadium to see your exact view.


