We built a Splitwise alternative where the link is the account
说明与用途
一种无需注册的 Splitwise 替代品:单个 URL 既是邀请、登录又是凭证。使用 BigInt 进行精确金额处理,固定 FX 汇率,支持离线使用,并通过 SSE 实时更新,且不泄露数据。
问题
Users avoid creating accounts; need a single link that invites, authenticates, and stores data.
结果
A zero‑account split‑tracking app that uses a single link as bearer credential, ensures precise money handling, locks FX rates, supports offline usage, and leaks no data via realtime updates.
工作流
- Generate 16‑byte random key, base64url‑encode, append to readable stem to form URL
- Treat URL as bearer credential; no recovery or owner override
- Store money amounts as strings + BigInt; use deterministic remainder distribution
- Lock FX rates at entry; fetch rates via same‑origin route
- Queue new expenses offline; replay when online; limit features to avoid CRDT complexity
- Use SSE to notify clients of changes; clients refetch data; stream carries no room data
- Route push, FX, receipt model through allow‑listed proxy; no egress from containers
证据
The link is a bearer credential. 16 random bytes, base64url, appended to a readable stem. No recovery, no owner override. Treat it like a key.
Money as strings + BigInt. A Number never touches an amount except for display. Equal splits hand out remainders deterministically.
FX locked at entry. Editing an expense never re‑prices history. Rates are fetched through a same‑origin route so the browser never talks to a second host.
- 记录日期: 2026-09-15T13:45:28.553Z