Cartsage
"Turn every receipt into climate action"
Created on 28th December 2025
•
Cartsage
"Turn every receipt into climate action"
The problem Cartsage solves
The climate crisis is fueled by everyday consumption, yet consumers remain completely blind to their impact.
Here's the reality: the average household generates 48 tons of CO₂ annually — and most of it comes from what we buy, not just how we travel. A single kilogram of beef produces 27 kg of CO₂. A bottle of imported wine? 3 kg. That weekly grocery run you don't think twice about? Easily 20+ kg of emissions.
But here's the real problem: nobody knows this. There's a massive awareness gap between our purchases and their environmental cost. And even when people care, they face three barriers:
- Visibility — There's no easy way to see the carbon impact of what's in your
shopping cart - Alternatives — Even if you knew, what should you buy instead? Which swap
actually matters? - Motivation — Tracking carbon is tedious, unrewarding, and frankly boring
Existing solutions fail because they treat sustainability like homework. Carbon
calculators require manual data entry. Eco apps lecture you with guilt. None of them give you a reason to come back tomorrow.
CartSage flips the script. We make carbon tracking effortless — just snap a photo of your receipt and AI does the rest. We show you exactly which items contribute the most CO₂ and suggest greener alternatives with real savings percentages. And we make it rewarding — you earn SAGE tokens on Solana for every eco-friendly choice, compete in ranked Carbon Battles against other users, and mint achievement NFTs to show off your environmental impact.
We're not asking people to sacrifice. We're making sustainability profitable, competitive, and genuinely fun. Because the best way to change behavior isn't guilt — it's gamification.
Challenges we ran into
-
Receipt OCR was way harder than expected. Photo quality varies wildly -
crumpled receipts, bad lighting, weird fonts. We learned to build fallback chains
(OpenRouter → Gemini Vision → manual entry) because no single AI provider
handles every edge case. Even then, item categorization for carbon calculation
required extensive mapping. -
Keeping token balances in sync between our database and Solana Devnet was
a constant battle. We'd mint SAGE tokens on-chain, but if the database update
failed, the UI showed the wrong balance. Ended up building an in-memory
cache with optimistic updates that falls back gracefully when Supabase is
unreliable. -
Solana Devnet has its own quirks. Airdrop limits, occasional network
congestion, and the learning curve of SPL token minting from a backend service.
We had to persist our token mint address to disk because losing it would mean
recreating the entire token economy. -
The staked battle mode introduced race conditions. What happens if someone
disconnects mid-battle? What if both players answer at the exact same
moment? We had to implement proper game state management and timeout
handling to prevent exploits where losers could avoid paying their stake. -
Connecting Phantom wallet state across page refreshes was trickier than
expected. The wallet would show "disconnected" after refresh even though the
user had previously approved our app. We had to implement eager connection
detection to restore wallet state automatically. -
Building a fair ELO matchmaking system for Carbon Battles required balancing
competitiveness with accessibility. We had to create AI bots with skill-tiered
difficulty so new players aren't crushed, while still making ranked mode feel
rewarding for experienced users.
Tracks Applied (3)
Solana
Solana
ELeven Labs
Eleven Labs
Gemini API
Gemini
Technologies used
