Splitway (splitway.cc)

react tanstack cloudflare yjs supabase typescript tailwind

A full-stack, real-time collaboration web application designed to simplify expense splitting among friends or groups after social gatherings, trips, or events. Evolving into a highly performant Static SPA + Cloudflare Functions architecture, this platform guarantees robust synchronization and seamless user experience.

Technical Architecture & Stack

  • Modular Service-Oriented BFF (Backend-for-Frontend): Clean Architecture with Strict Zod Request Validation.
  • Real-time Sync: Collaborative features powered by Yjs & PartyKit.
  • Edge Performance: Deployed using Cloudflare Workers with Kysely query builder and Cloudflare D1.
  • Modern React Stack: Built with React 19, TanStack Router, and Zustand for state management, following a strict Zero Assertions Policy in UI components.
  • Type-Safety Strategy: Leveraging Supabase Type-Safe Queries and 100% stack-wide API schema synchronization for end-to-end type safety.

Key Features

  • Real-Time Collaboration: Group expenses update instantly across all member screens without refreshing.
  • Expense Categorization: Automatically calculates who owes what, producing an optimal payback strategy.
  • Offline & Resilient Actions: Employs Manual Rollback Patterns for atomic multi-table mutations, ensuring data integrity even during connection drops.
  • Seamless Export: Easily export expense summaries and reports as PDFs or Excel spreadsheets.

Perfect for travel groups, roommates, or event organizers. This app brings convenience, guaranteeing social moments remain joyful without financial disputes.