All projects
Felt cover for Birik

Birik

Group expense splitting on Stellar/Soroban that settles debts with the fewest transfers. Built in 30 days, 1,293 tests.

private code

My role: Solo: everything, from scratch.

Problem

Splitting a group's costs usually ends in a long list of small transfers and someone keeping track by hand. Birik moves the ledger and the settlement onto Stellar, where they are fast, cheap and visible to everyone in the group.

Approach

A Soroban smart contract records each group's expenses and settles them with a min-flow algorithm on chain: in a six-person example, ten possible transfers shrink to three, paid in one atomic transaction. Settling can be gasless, because the backend wraps the transaction in a fee-bump paid by a sponsor account. A NestJS backend polls contract events every five seconds and streams them to the app.

Result

Birik was built in 30 days and runs on the Stellar testnet with 1,293 automated tests across frontend, backend and contracts. Five testnet users tried it and rated it 5 out of 5.

Highlights

  • Built in 30 days
  • 1,293 tests
  • 10 transfers down to 3
  • ~5 s settlement
  • Gasless settle option

Stack

  • Rust
  • Soroban
  • Stellar
  • React
  • Vite
  • TypeScript
  • Tailwind CSS
  • NestJS
  • Prisma
  • PostgreSQL
  • Redis
  • BullMQ
  • Vitest
  • Jest
  • Playwright
Birik landing page
The landing page: "the wallet that splits the bill", with a sample holiday group.
Demo group spending insights
A demo group's insights: total spent, transactions and spending per member.
Birik settle screen
Settling up: the optimised transfers with payment QR codes, the gasless toggle and a completed settlement.
Recent on-chain activity
Recent activity read from the chain: contract calls and payments with their transaction hashes.