Inspiration
Almost every "Agentic Commerce" demo treats shopping like a 2023 chatbot: you type "buy me a microphone" and the AI fetches a single product link from a single store.
Real-world procurement doesn't work like that. When an entrepreneur, creator, or engineering lead is launching a 4-person podcast studio, a 6-seat pop-up developer lab, or a specialty coffee cart, they aren't buying a single item—they are coordinating 4 to 6 interdependent hardware slots across multiple competing retailers under two unforgiving physical laws:
- A Hard Launch Deadline (
SLA): If your audio interface arrives in 2 days from Sweetwater, but your microphones take 5 days via ground shipping from another vendor, your entire studio launch fails. - A Strict Budget Ceiling: Upgrading one merchant to overnight express shipping means you must dynamically compress costs on non-critical slots so the total multi-merchant cart never breaches your budget.
We built CartWeave (ChronosCart)—the first Time-and-Budget Physics Procurement Studio that turns multi-merchant sourcing, critical-path fulfillment scheduling, and consolidated PayPal settlement into an interactive spatial workspace.
What it does
CartWeave (ChronosCart) is a light-mode Prosumer Spatial & Timeline Studio that unifies Google Gemini 3 Flash, the Live Channel3 Product Search API, the Bryntum Scheduler v7.3.0 SDK, and PayPal Sandbox Orders v2 + Invoicing v2:
- 1. Goal & Blueprint Decomposition (
Gemini 3 Flash): Users can enter any custom natural-language procurement mission (e.g., "4K Livestream Rig under $1,400 in 3 days") or launch 1 of 4 instant blueprints (🎙️ 4-Person Podcast Studio,💻 Pop-Up 6-Seat Lagos Dev Lab,📸 Product Photography Rig,☕ Specialty Coffee Cart Launch). Gemini 3 Flash decomposes the goal into 4–5 interdependent Bill of Materials (BOM) slots with installation durations and assembly dependencies. - 2. Live 4-Tier Multi-Retailer Arbitrage (
Channel3 API): For every BOM slot, our backend queriesPOST https://api.trychannel3.com/v1/searchin parallel, hydrating each slot with 4 distinct, swappable merchant options (Fastest Shipping Pick,Best Value Pick,Budget Pick, andPremium Flagship Pick) across verified retailers (@sweetwater.com,@bhphotovideo.com,@bestbuy.com,@newegg.com,@cdw.com,@adorama.com), tracking live MSRP discount spreads. - 3. Interactive Time-and-Budget Physics Engine (
Bryntum Scheduler v7.3.0):- Control A — Target Launch Deadline SLA Slider (
Day 2toDay 10): When a user drags the deadline slider from 5 days down to an emergency 2-Day SLA, any BOM slot whose current merchant would breach the deadline automatically triggers an⚡ SLA BREACH AUTO-SWAP, re-routing in real time to a 1-day express Channel3 retailer while updating the live<BryntumScheduler />resource rows, transit bars, and assembly dependency chains. - Control B — Target Budget Ceiling Dial: Dragging the budget dial dynamically re-allocates SKU tiers across all unlocked slots so total spend remains strictly within the target ceiling while maximizing MSRP arbitrage savings.
- Control A — Target Launch Deadline SLA Slider (
- 4. Unified Multi-Merchant Settlement (
PayPal Sandbox Orders v2 + Invoicing v2): Instead of forcing buyers to check out across 4 separate merchant websites, CartWeave's PayPal Multi-Merchant Settlement Dock consolidates all verified Channel3 SKUs into:- A single itemized PayPal Order v2 (
POST /v2/checkout/orders) embedded with a cryptographic SHA-256 bundle hash (custom_id). - Live PayPal Order Capture (
POST /v2/checkout/orders/{id}/capture) after buyer approval. - Automated Split Vendor Bill / Draft Invoice generation (
POST /v2/invoicing/invoices) returning a liveINV2-...invoice ID for corporate accounting.
- A single itemized PayPal Order v2 (
How we built it
1. Constrained Multi-Merchant Optimization Model
Rather than trusting an LLM to do arithmetic, our backend (services/bomEngine.js) treats procurement as a deterministic constrained optimization problem over the live Channel3 candidate pool. Given slots \( i \in {1, \dots, N} \) and candidate merchant offers \( j \in C_i \) with price \( p_{i,j} \), shipping transit time \( s_{i,j} \), and on-site rigging time \( r_i \), the engine enforces strict SLA priority:
$$\forall i \in {1, \dots, N}, \quad s_{i,j} + r_i \le T_{\text{SLA}} \quad \text{and} \quad \sum_{i=1}^{N} p_{i,j} \le B_{\text{target}}$$
Whenever a user compresses \( T_{\text{SLA}} \) or adjusts \( B_{\text{target}} \), the engine computes the state transition in <50ms, emits structured swapEvents[] (SLA_DEADLINE_BREACH, BUDGET_CEILING_COMPRESSION, BUDGET_HEADROOM_UPGRADE), and synchronizes the updated resources[], events[], and dependencies[] stores directly into the mounted Bryntum Scheduler v7.3.0 instance.
2. Sponsor Technology Stack & Deep Integrations
- PayPal Developer Platform (
Orders v2&Invoicing v2): Builtservices/paypalService.jsimplementing OAuth2 token exchange (POST /v1/oauth2/token), multi-item order creation (POST /v2/checkout/orderswithshipping_preference: "NO_SHIPPING",user_action: "PAY_NOW", itemizedpurchase_units[0].itemsmapping each Channel3 merchant domain, and a SHA-256 bundle hash incustom_id), live status verification & capture (POST /v2/checkout/orders/:id/capture), and multi-retailer draft invoice generation (POST /v2/invoicing/invoices). - Channel3 Live API (
POST https://api.trychannel3.com/v1/search): Builtservices/channel3Service.jsto query live cross-retailer product offers in parallel, normalize pricing andcompare_at_pricespreads, and structure 4 swappable fulfillment tiers per BOM slot with intelligent caching (channel3.cache.json) for sub-second responsiveness. - Bryntum Scheduler Trial SDK (
@bryntum/[email protected]&@bryntum/[email protected]): Mounted the real<BryntumScheduler />component inFulfillmentScheduler.jsxusing the Stockholm Light theme, configured with custom columns (BOM Slot Resource,Channel3 Merchant,Price,SLA Status), multi-phase transit-to-assembly event bars, dependency connectors, and a 3-way view switcher (📊 Bryntum SDK Grid,📐 Physics SLA Canvas,⚡ Dual View) plus a live Bryntum Store JSON Inspector. - Render Cloud Deployment: Packaged as a unified full-stack Node.js/Express + Vite SPA service via a declarative
render.yamlBlueprint athttps://cartweave-chronoscart.onrender.com.
🤖 Mandatory AI Tools & Models Disclosure
In compliance with the hackathon rules, here is our complete disclosure of AI models and coding tools used:
- Runtime AI Model: Google Gemini 3 Flash (
gemini-3-flash-preview) accessed via the OpenAI-compatible SDK (https://generativelanguage.googleapis.com/v1beta/openai/) insideservices/bomEngine.jsto decompose custom natural-language procurement missions into structured multi-slot Bills of Materials with budget weights and assembly dependencies. - Development & Engineering Assistant: Google Antigravity (powered by Gemini) was used during software development for full-stack scaffolding, Bryntum Scheduler SDK wiring, automated browser E2E testing, and deployment configuration. All financial calculations, SLA physics optimizations, and PayPal Sandbox API executions run deterministically in Node.js.
🧪 Judge Testing Guide & PayPal Sandbox Credentials
- Live Cloud URL: https://cartweave-chronoscart.onrender.com
- PayPal Sandbox Buyer Email:
[email protected](1-click copy button built directly into the app's PayPal Settlement Dock) - PayPal Sandbox Buyer Password:
yY9=iHM0(1-click copy button built directly into the app)
30-Second Walkthrough for Judges:
- Open the live app and click
2d SLA(or drag Control A: Target Launch Deadline SLA left toDAY 2). Watch the Autonomous Physics Swap Telemetry panel and the Bryntum Scheduler v7.3.0 timeline automatically swap slow 3–5 day ground merchants to 1-day express merchants (@sweetwater.com,@bhphotovideo.com,@bestbuy.com) to achieveCritical Path: 2d / 2d SLA. - On any BOM card below, click
Swap SKU (4 Channel3 Options)to inspect the 4-tier Channel3 arbitrage pool and test pinning/overriding a SKU. - In the PayPal Multi-Merchant Settlement Dock on the right, click
1. Create PayPal Multi-Merchant Order, approve the checkout in PayPal Sandbox using the buyer credentials above, click2. Verify / Capture, and click3. Generate Split Vendor Bill (PayPal Invoicing v2)to mint a liveINV2-...draft invoice.
Challenges we ran into
- SLA Priority vs. Budget Compression Conflicts: In our initial physics loop, running the budget compression pass after the SLA deadline pass occasionally caused the optimizer to downgrade a 1-day express merchant back to a 4-day ground merchant when the budget ceiling was tight. We refactored
optimizeBomPhysics()inservices/bomEngine.jsso that SLA compliance is an inviolable hard constraint, automatically adjusting budget headroom when a user demands an emergency 2-day launch window. - Bryntum Trial SDK Packaging on Cloud Builds: Installing
@bryntum/[email protected]alongside React 19 on Render required configuring npm package aliasing (@bryntum/scheduler@npm:@bryntum/[email protected]) and.npmrc(legacy-peer-deps=true) plus tuning column widths (255px/150px/95px/115px) andtickSize={88}so zero labels clipped on standard 1080p laptop screens.
Accomplishments that we're proud of
- Turning multi-retailer procurement from a static list of links into a manipulable physical system where dragging a deadline slider visibly re-architects supply-chain routing across real Channel3 retailers in real time.
- Achieving a complete, live 3-stage PayPal Sandbox settlement loop (Multi-Item Order Creation Buyer Approval & Live Capture Itemized Invoicing v2 Draft Generation) consolidated across multiple merchants with cryptographic SHA-256 bundle hashing.
What we learned
- LLMs excel at unstructured semantic decomposition (turning "launch a 6-seat pop-up dev lab in Lagos" into structured hardware categories and dependency graphs), while deterministic constraint solvers excel at holding price, shipping transit windows, and budget ceilings in equilibrium over live API data.
- Pairing Channel3's cross-merchant catalog data with Bryntum's critical-path scheduling engine and PayPal's multi-item Orders/Invoicing APIs unlocks an entirely new category of autonomous project procurement.
What's next for CartWeave (ChronosCart)
- PayPal Payouts & Multiparty Split Settlement: Automating downstream merchant disbursement once all BOM tracking numbers confirm delivery against the Bryntum SLA timeline.
- Live Carrier Webhook Ingestion: Connecting real-time FedEx/UPS/DHL transit webhooks directly into the Bryntum Scheduler so mid-transit weather delays automatically trigger backup Channel3 merchant re-orders before a launch deadline is missed.
Built With
- bryntum
- channel3
- express.js
- gemini
- google-antigravity
- javascript
- node.js
- paypal
- react
- render
- tailwindcss
- vite