Skip to content
syahmiharithPublic

About

Shared expenses and reviewed agreements, with deterministic calculations and reconfirmation. Interactive prototype.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

SplitFlow

Agree on shared costs before anyone pays. SplitFlow turns an expense description into a proposal that participants can accept, challenge or revise.

Try demo · Case study · Architecture

Walk through an agreement

  1. Describe a shared expense, including who paid and who joined each item.
  2. Review the calculated shares and send the proposal.
  3. Switch demo participants to accept, request a change or opt out.
  4. Revise the proposal and inspect who must reconfirm.
  5. Resolve payment claims and check the remaining readiness blockers.

The demo uses local state and simulated participants. It does not authenticate real users, verify bank payments or move money.

Decisions in the implementation

Interpretation and calculation have separate responsibilities. A parser structures the expense; optional server-side OpenAI support can assist drafting. Typed TypeScript functions own amounts, eligibility, rounding and settlement balances.

A changed amount needs a new agreement. Participant responses and proposal revisions determine who must reconfirm. A generated proposal is a draft, not permission to settle.

A payment claim is not confirmation. Claimed and disputed payments remain visible in the readiness check until resolved.

Maintenance evidence

A readiness fix keeps claimed and disputed payments in the blocker check. The regression tests make those cases inspectable.

For the underlying contracts, read the state machine, financial invariants and edge-case matrix.

Run locally

Requires Node.js and pnpm.

pnpm install
pnpm dev

Open http://localhost:3000. No OpenAI key is needed for the deterministic demo. Optional agent configuration is documented in technical setup; credentials stay server-side.

Check a change

pnpm typecheck
pnpm lint
pnpm test
pnpm build
pnpm test:e2e

Vitest covers calculations, proposal transitions, parser behavior, readiness and API contracts. Playwright covers the interactive flow and responsive layouts. See technical documentation for the optional live-agent check.

Scope and history

Built with Next.js, React, TypeScript and Tailwind CSS. Prototype boundaries explain the persistence and infrastructure limits.

The original product case study remains available alongside the current portfolio story.

About

Shared expenses and reviewed agreements, with deterministic calculations and reconfirmation. Interactive prototype.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages