CAFE
Shopify + Visa for Telegram — a tokenised commerce platform where luxury brands launch drops, sell NFT-backed goods and settle in stablecoins across two blockchains.
Cafe
A drop sells inside Telegram, mints as an NFT, and is burned to claim the physical good — while the brand gets paid in stablecoins on a different chain entirely.
Context
Luxury partners — fine art, fashion, horology, hospitality — want branded drops where provenance is real and settlement is clean. CAFE puts the whole loop inside Telegram: browse a marketplace Mini App, buy a TEP-62 NFT as proof of ownership, burn it on-chain to redeem, and let the partner settle in USDC/USDT.
What I built
- Four drop types — open sale, allowlist, commit-reveal lottery, and private — behind a single eligibility engine.
- A burn-to-claim redemption flow with on-chain double-spend prevention, QR redemption and ship/collect dispatch.
- A dual-chain settlement engine bridging TON payments to Tempo stablecoin payouts with reconciliation.
- A Machine Payments Protocol gateway (HTTP 402) for AI-agent commerce, built in from day one.
- A multi-tenant admin dashboard, a Telegram bot for lifecycle notifications, and a partner SDK with signed webhooks.
How it's built
A Turborepo monorepo of seven workspaces. On TON, eight Tact contracts (NFT item and collection, a collection factory, a payment processor, a burn-to-claim registry, soulbound variants) handle fast payments and minting. On Tempo, ten Solidity contracts (an MPP gateway, per-merchant wallets from a factory, a settlement pool and escrow, a bridge receiver) handle merchant settlement — chosen because TON is fast for buyers and Tempo is right for stablecoin payouts.
A Fastify backend exposes 30+ routes over Prisma/PostgreSQL, with twelve BullMQ workers doing the async work: scanning payments idempotently, processing burns, running the settlement bridge, drawing lotteries, minting. The buyer surface is a React/Vite Mini App with TonConnect; the operator surface is a Next.js dashboard. Row-level security keeps every partner inside their own tenant.
Outcome
A full tokenised-commerce stack — contracts, settlement, storefront and agent-commerce gateway — with double-spend-safe redemption and clean cross-chain payouts.
Core feature
The Mini App browse surface — luxury drop cards showing TON price with live USD, a remaining-supply bar, drop-type and status badges, and a Telegram-blue Claim / Enter Lottery action, all settled on TON with burn-to-claim redemption.
Hey, Mitch
@mmclennan
7 drops found