← back to the wall← înapoi la toate proiectele

FORFEITFORFEIT

APPAPLICAȚIE

Commitment Contracts with Real Moneycontracte de angajament cu bani reali

FEB 2026FEB. 2026

FORFEIT - Commitment Contracts with Real MoneyARCHIVEDARHIVAT
built withconstruit cu
Next.js 16React 19TypeScriptSupabaseStripeTelegram Bot APIResendUpstash RedisVitest

"Commitment contracts with real money. Stake cash on your goals — succeed and get it back (minus 10%), fail and it's gone."

Overview

FORFEIT is a consumer product built on one of the most robust findings in behavioral economics: loss aversion is ~2x stronger than gain seeking. Traditional to-do apps reward you for completing goals. FORFEIT punishes you for failing them. You stake real money (via Stripe); you either hit your deadline and get it back, or you forfeit it permanently.

The product is intentionally lean — a transactional loop that weighs as much as the dollars behind it.

The Loop

  1. Set a goal — Define what you'll accomplish and by when
  2. Stake money — Put $5 to $500 on the line via Stripe Checkout
  3. Pick a verification method — photo proof, referee, API integration, or honor system
  4. Track progress — Telegram bot sends escalating reminders: 48h → 24h → 6h → 1h before deadline
  5. Verify or forfeit — Hit the deadline + verify within a 48h window → refund. Miss it → the money is gone.

Why This Works (and Why It's Dangerous)

The psychology

Loss aversion makes a $50 loss feel like a $100 missed gain. Commitment devices (stickK, Beeminder) have decades of RCT evidence for goal completion. FORFEIT pushes this further with real money and no escape hatches.

The risk

You are asking people to risk real money for a product they've never used. Trust, verification integrity, and dispute resolution are existential concerns — not nice-to-haves.

Tech Stack

Core

  • Next.js 16 App Router + React 19
  • TypeScript, Tailwind CSS v4, shadcn/ui (Radix primitives)
  • Supabase — Auth, Postgres (with RLS for stake privacy), Realtime for live commitment status

Money

  • Stripe PaymentIntents for stakes (not subscriptions — one-off holds)
  • Webhook-driven state machine with idempotency keys
  • Refunds on success automated via Stripe API
  • payment-success-poller for the 0–30s window before webhook confirmation lands

Notifications

  • Telegram Bot with escalating deadline reminders (48h, 24h, 6h, 1h)
  • Resend for email lifecycle events
  • PWA-ready for web push in a future iteration

Safety rails

  • Upstash Redis rate-limiting on commitment creation to prevent impulse-chaining
  • Zod schemas on every API boundary
  • Vitest + Testing Library + MSW for money-path integration tests

Engineering Highlights

Webhook-driven state machine

Every commitment goes through pending → active → verifying → completed | forfeited. Transitions fire only from verified Stripe webhooks with replay protection, so clicking "pay" twice can't create two stakes. Money state is the source of truth, not optimistic UI.

Referee flow

Commitments can be verified by a third-party (coach, friend, accountability buddy) who receives a one-time magic link. They never create an account — they just see the goal, proof, and approve or reject. Designed for zero-onboarding friction on the critical dependency path.

Public accountability (opt-in)

Share your commitment to a public profile with OG-generated share cards. Social pressure is another (optional) layer on top of financial pressure. Currently read-only — cheers, comments, and follower feeds are on the roadmap.

OG image generation

Dynamic share cards rendered at the edge showing goal, stake amount, and deadline — makes every shared commitment a mini-landing page.

Product Audit Insights

I wrote a full 360-degree product & business audit of FORFEIT (shipped in repo as BUSINESS_AUDIT.md) that catalogs 20+ known friction points: the cold-start-to-payment wall, the post-payment webhook dead zone, the referee email deliverability risk, the missing progress check-ins over multi-week commitments. Shipping the MVP is the easy part; getting the emotional arc right is the real roadmap.

Why I Built This

Most habit apps are cheerleaders. They reward you for streaks and guilt you gently. FORFEIT is the opposite — it's a hostile environment where you agree, in advance, to punish yourself. It's not for everyone. But for the goals that actually matter (finish the thesis, ship the product, run the marathon), a cheerleader isn't enough.

„Contracte de angajament cu bani reali. Mizezi bani pe obiectivele tale: dacă reușești, îi primești înapoi (minus 10%), iar dacă nu, s-au dus.”

Prezentare generală

FORFEIT e un produs de consum construit pe una dintre cele mai solide constatări din economia comportamentală: aversiunea față de pierdere e de ~2 ori mai puternică decât dorința de câștig. Aplicațiile obișnuite de to-do te recompensează când îți îndeplinești obiectivele. FORFEIT te pedepsește când nu le îndeplinești. Mizezi bani reali (prin Stripe): ori te încadrezi în termen și îi primești înapoi, ori îi pierzi definitiv.

Produsul e minimalist intenționat: o buclă de tranzacții care cântărește cât banii puși în joc.

Bucla

  1. Stabilești un obiectiv: definești ce vrei să faci și până când
  2. Mizezi bani: pui în joc între $5 și $500 prin Stripe Checkout
  3. Alegi metoda de verificare: dovadă foto, arbitru, integrare prin API sau pe cuvânt de onoare
  4. Urmărești progresul: un bot Telegram trimite mementouri tot mai dese: 48h → 24h → 6h → 1h înainte de termen
  5. Verifici sau pierzi: dacă te încadrezi în termen și verifici în fereastra de 48h, primești banii înapoi. Dacă ratezi termenul, banii s-au dus.

De ce funcționează (și de ce e periculos)

Psihologia

Din cauza aversiunii față de pierdere, o pierdere de $50 se simte ca un câștig ratat de $100. Dispozitivele de angajament (stickK, Beeminder) au zeci de ani de dovezi din studii randomizate pentru îndeplinirea obiectivelor. FORFEIT merge mai departe, cu bani reali și fără portițe de scăpare.

Riscul

Ceri oamenilor să riște bani reali pentru un produs pe care nu l-au folosit niciodată. Încrederea, integritatea verificării și rezolvarea disputelor sunt chestiuni vitale, nu lucruri bune de avut.

Stack tehnic

Nucleul

  • Next.js 16 App Router + React 19
  • TypeScript, Tailwind CSS v4, shadcn/ui (primitive Radix)
  • Supabase: Auth, Postgres (cu RLS pentru confidențialitatea mizelor), Realtime pentru starea angajamentului în timp real

Banii

  • Stripe PaymentIntents pentru mize (nu abonamente: blocări unice)
  • Mașină de stări condusă de webhook-uri, cu chei de idempotență
  • Rambursările la succes sunt automate prin API-ul Stripe
  • payment-success-poller pentru intervalul de 0–30s până sosește confirmarea prin webhook

Notificări

  • Bot Telegram cu mementouri tot mai dese înainte de termen (48h, 24h, 6h, 1h)
  • Resend pentru e-mailurile din ciclul de viață
  • Pregătit pentru PWA și web push într-o iterație viitoare

Plase de siguranță

  • Rate limiting cu Upstash Redis la crearea angajamentelor, ca să nu poți înlănțui angajamente din impuls
  • Scheme Zod la fiecare graniță de API
  • Vitest + Testing Library + MSW pentru teste de integrare pe traseul banilor

Repere de inginerie

Mașină de stări condusă de webhook-uri

Fiecare angajament trece prin pending → active → verifying → completed | forfeited. Tranzițiile pornesc doar din webhook-uri Stripe verificate, cu protecție la replay, așa că dacă apeși „plătește” de două ori, nu se creează două mize. Sursa adevărului e starea banilor, nu interfața optimistă.

Fluxul arbitrului

Un angajament poate fi verificat de o terță persoană (antrenor, prieten, partener de responsabilizare), care primește un magic link de unică folosință. Nu își face niciodată cont: vede obiectivul și dovada, apoi aprobă sau respinge. Gândit fără nicio fricțiune de onboarding pe calea critică.

Responsabilizare publică (opțională)

Îți poți publica angajamentul pe un profil public, cu carduri de partajare generate OG. Presiunea socială e încă un strat (opțional) peste cea financiară. Deocamdată e doar pentru citire; aplauze, comentarii și fluxuri de urmăritori sunt pe roadmap.

Generarea imaginilor OG

Carduri de partajare dinamice, randate la edge, cu obiectivul, suma mizată și termenul: fiecare angajament partajat devine o mini-pagină de prezentare.

Concluzii din auditul de produs

Am scris un audit complet de 360 de grade al produsului și al afacerii FORFEIT (livrat în repo ca BUSINESS_AUDIT.md), care cataloghează peste 20 de puncte de fricțiune cunoscute: zidul dintre prima vizită și plată, zona moartă de după plată în care așteaptă webhook-ul, riscul de livrabilitate a e-mailului către arbitru, lipsa verificărilor de progres pe angajamente de mai multe săptămâni. MVP-ul e partea ușoară; arcul emoțional corect e adevărata foaie de parcurs.

De ce l-am construit

Majoritatea aplicațiilor de obiceiuri sunt majorete. Te răsplătesc pentru serii și te fac să te simți vinovat cu blândețe. FORFEIT e opusul: un mediu ostil în care accepți de la început să te pedepsești singur. Nu e pentru oricine. Dar pentru obiectivele care contează cu adevărat (să-ți termini lucrarea, să lansezi produsul, să alergi maratonul), o majoretă nu ajunge.

FORFEIT - Commitment Contracts with Real Money screenshot 1
FORFEIT - Commitment Contracts with Real Money screenshot 2

New explanations, by emailExplicații noi, pe email

I draw how everyday things work, one step at a time, and you can play with every drawing. The newest is why you get shocked in winter; before it, how WiFi gets through walls. Leave your email and I’ll write only when a new one is out.Desenez cum funcționează lucrurile de zi cu zi, pas cu pas, și te poți juca cu fiecare desen. Cea mai nouă e de ce te curentezi iarna; înainte de ea, cum trece WiFi-ul prin pereți. Lasă-mi emailul și îți scriu doar când apare una nouă.

Only for new explanations. I don’t share your address, and every email has a one-click unsubscribe.Doar pentru explicații noi. Nu dau adresa nimănui, iar fiecare email are dezabonare dintr-un clic.