Splitwise logo

How to vibe codeSplitwise

Split expenses with friends.

splitwise.com

Fintech / Expense Sharing

Web app
75/ 100
Solid side project

The verdict: can you vibe code Splitwise?

Build it yourself to skip the irritating ad-wall and daily expense caps, though the debt simplification graph algorithm requires careful debugging.

Splitwise is fundamentally a relational ledger paired with a graph-balancing algorithm. A solo developer can build a personal-use clone in about 2 weeks. The main engineering hurdles are writing the debt-simplification graph engine to minimize multi-party IOUs and ensuring database transactions handle balance adjustments atomically without floating-point rounding errors.

Estimated effort: 2-3 weeks part-time

What you can't replicate

  • The massive social graph of tens of millions of real users
  • Bank integrations and direct fintech payment rails (Venmo/Tink)

Founded

2011

Raised

$30.5M

Team

~50 employees

Cheapest paid tier

$4.99/mo

What Splitwise does

A peer-to-peer expense-sharing platform designed to track shared tabs, group bills, household costs, and IOUs among friends and housemates, featuring automated debt simplification algorithms.

Core features

  • User authentication and profile management
  • Group creation and management for trips, housemates, and couples
  • Expense logging with equal, percentage, share, and exact-amount splits
  • Debt simplification algorithm (calculating minimal directed transactions)
  • Settlement tracking (recording cash or digital payments)
  • Activity feed and balance summaries per friend and group
  • Multi-currency support with basic conversion rates

The business

Pricing

  • Splitwise FreeFree
  • Splitwise Pro$4.99/mo

Funding

$30.5M from Insight Partners, Bullpen Capital, 500 Global, Walnut Venture Associates

Pay vs build, cumulative

Break-even at month 7 — after that, every month is money kept.

The hard parts of vibe coding Splitwise

  • Implementing the debt simplification graph algorithm (minimum-transaction balancing)
  • Maintaining accurate balance ledgers across multi-currency transactions without rounding discrepancies
  • Handling race conditions when concurrent users update group balances simultaneously

How to vibecode Splitwise

Prerequisites

  • Node.jsfree

    Runtime environment for running the Next.js full-stack application locally.

  • GitHubfree

    Code repository hosting and seamless deployment integration with Cloudflare.

  • Cloudflare$0-5/mo

    Hosting platform for edge deployment and serverless database storage.

AI coding tools

Recommended stack

FrontendNext.js (App Router, Tailwind CSS, TypeScript)
BackendNext.js API Routes / Server Actions
DatabaseCloudflare D1 (Serverless SQLite)
Authbetter-auth
Paymentsnone (personal use clone skips billing)
OtherVercel AI SDK, OpenAI API for Receipt OCR

Hosting & infrastructure

CloudflareHosting Next.js frontend and serverless D1 SQLite database at the edge.$0-5/mo

Build guide

  1. 01Scaffold Project and Database Schema

    Initialize a Next.js TypeScript project configured for Cloudflare D1 with better-auth integration and relational tables for users, groups, group_members, expenses, split_shares, and settlements.

    Create a new Next.js 16 project with Tailwind CSS and TypeScript configured to deploy on Cloudflare Workers using OpenNext. Set up better-auth with email/password authentication. Create a SQLite migration script using Cloudflare D1 containing tables: users (id, name, email, password_hash), groups (id, name, created_at), group_members (group_id, user_id), expenses (id, group_id, description, amount, currency, payer_id, created_at), split_shares (id, expense_id, user_id, owed_amount), and settlements (id, payer_id, payee_id, amount, currency, created_at). Ensure all foreign key constraints and indexes are correctly defined for fast balance lookups.
  2. 02Implement Core Expense CRUD and Split Configurations

    Build the expense creation form supporting equal splits, percentage splits, exact amounts, and itemized calculations.

    Build a responsive expense creation modal in Next.js using Tailwind CSS. The form must allow entering a description, total amount, currency, selecting a group or friend, choosing who paid, and configuring split methods: 'equal' (divide equally among selected members), 'exact' (assign specific dollar amounts per person, validating sum equals total), and 'percentage' (assign percentages summing to 100). Implement Server Actions to handle expense creation, storing header records in 'expenses' and individual rows in 'split_shares' using database transactions to ensure atomicity.
  3. 03Build Debt Simplification Graph Engine

    Implement the core debt simplification algorithm that computes minimized directed transactions among group members.

    Implement a TypeScript utility function for debt simplification within a group. The function must query all expenses and settlements for a given group, calculate net balances for every user (total paid minus total owed), separate users into creditors (positive net balance) and debtors (negative net balance), and compute an optimal minimized set of directed payment transactions to settle all debts. Handle floating-point rounding precision carefully using integer cents representation. Display the simplified settlement plan in a dedicated 'Simplify Debts' tab on the group page.
  4. 04Develop Dashboard, Balances, and Friend Views

    Create the main dashboard displaying total balances, individual friend ledgers, and group summaries.

    Build the main dashboard view in Next.js. It should feature a sidebar for groups and friends, a central activity feed showing recent expenses and settlements, and a summary header displaying total user balance ('you are owed X' / 'you owe Y'). Implement dedicated detail pages for individual friends and groups that list mutual expense history and running balances. Include a 'Settle Up' button that opens a settlement recording modal to log cash or external payments between two users.
  5. 05Add Receipt Scanning OCR with AI

    Integrate an AI-powered vision endpoint to parse receipt images and extract itemized split items.

    Implement an OCR receipt scanning feature using the OpenAI API and Vercel AI SDK. Add a file upload component to the expense form where users can upload a receipt image or PDF. Create a server action that sends the image to the vision model with a structured prompt requesting item names, prices, and taxes in JSON format. Automatically populate the expense description and exact split line items on the frontend from the parsed JSON response, allowing users to review and adjust before saving.

Cost vs paying for Splitwise

What will you build it with?

Est. 3.5M in / 0.8M out tokens· Includes access to introductory usage of the default model with dynamic rate limits.$0

Starting total with Claude Code$0 one-time

Starting costs (one-time)

  • AI Coding Assistant Subscription$20.00

Total$20.00 one-time

Ongoing costs (monthly)

  • Cloudflare Hosting & D1 Database$0.00 (Hobby Tier)
  • OpenAI API Usage for Receipt OCR$2.00

Total~$2.00/mo

Paying for Splitwise

$4.99/mo (Splitwise Pro)

Your time to build

25 hours

AI tool credits

$20 (1 month of Claude Pro / Cursor)

Break-even

Never (built for ad-free personal use and learning)

Vibe code Splitwise: FAQ

Can you vibe code Splitwise yourself?
Solid side project — 75/100 vibecodeable. Build it yourself to skip the irritating ad-wall and daily expense caps, though the debt simplification graph algorithm requires careful debugging.
How long does it take to vibe code Splitwise?
2-3 weeks part-time — roughly 25 hours of hands-on time with an AI coding agent.
How do you build your own Splitwise?
Scoped to personal use: Next.js (App Router, Tailwind CSS, TypeScript) on the front, Next.js API Routes / Server Actions behind it, Cloudflare D1 (Serverless SQLite) for data. Follow the 5-step build guide on this page — each step has a paste-ready prompt for an AI coding agent.
How do you code your own Splitwise without being an expert?
Use an AI coding tool (Claude Code or Cursor) and work in small steps: scaffold, data model, core screens, then deploy. Realistic effort: 2-3 weeks part-time. The prompts on this page are written so the AI does the heavy lifting.
How much does it cost to vibe code Splitwise instead of paying?
About $20.00 one-time to start and ~$2.00/mo to run, versus $4.99/mo (Splitwise Pro) for Splitwise. Break-even: Never (built for ad-free personal use and learning).
What stack should you use to vibe code Splitwise?
Next.js (App Router, Tailwind CSS, TypeScript); Next.js API Routes / Server Actions; Cloudflare D1 (Serverless SQLite); plus Vercel AI SDK, OpenAI API for Receipt OCR.

Sources

Alternatives & community builds

All alternatives →