Skip to content

Many strings (filocans.com)

Filocan is one string between two people. filocans.com, the plural, is many strings, each still between exactly two people: one to your partner, one to your best friend, one to your mum. This page is the plan for that, and the argument for never building groups.

Two very different products hide in ‘multi-user’

Section titled “Two very different products hide in ‘multi-user’”

Many strings keeps every property of Filocan. Each string is its own pair with its own key, its own safety string, its own scissors. Nobody on one string can see another. The ‘nobody else’ promise holds per string.

Groups (three or more on one string) break the model. A group needs a shared key that rotates on every join and leave so the departed cannot read on and the newcomer cannot read back, plus membership state on the relay. Done properly that is Signal’s sender-key scheme or MLS, and it turns Filocan into a worse Signal. Groups are out of scope, permanently, unless the principles change.

Exactly two places:

  1. supabase/migrations/0001_init.sql: the partial unique indexes pairs_one_active_a and pairs_one_active_b (one active pair per person).
  2. apps/app/src/lib/keystore.ts: a single filocan.pair.key slot.

Everything else is already keyed by pairId: the envelope, the relay, the message kinds, the RLS policies, the screens.

Database (supabase/migrations/0002_many_strings.sql)

Section titled “Database (supabase/migrations/0002_many_strings.sql)”
  • The two one-per-person partial indexes are gone. pairs_one_per_couple on (least(a,b), greatest(a,b)) where ended_at is null stops the same two people holding two live strings.
  • A pairs_limit trigger caps active strings at max_active_pairs() (12) per person, so the product stays intimate and the UI stays a list, not an inbox.
  • Cooling-off moved from profiles to a cooling_off (a, b, until_at, skipped) table keyed by the couple. Cutting the string with your mum does not stop you tying one with your partner. accept_invite checks the couple’s row; end_pair upserts it; skip_cooling_off(a, b) is callable only by the service role (the payment webhook).
  • Keystore: one slot per pair, filocan.pair.<pairId>.key, plus an index of pair ids.
  • Store: pairs: Pair[], activePairId, messages tagged by pairId, lastSeen per pair for unread counts, cooling per couple. Every active pair is subscribed at boot so the switchboard can show previews and badges.
  • Phases are now verify, name, strings, paired. strings is the switchboard (src/app/strings.tsx): one row per string with the other person’s initial, last message preview and unread count, a plus button to add a string, and any cooling-off periods with the skip button. With exactly one string, boot opens it directly and the switchboard is a back-arrow away.
  • The pair screen is a detour from either the switchboard or the Us tab (‘+ Add a string’) and pops back to the tabs when done (router.dismissTo). Invites are unchanged.
  • The Us tab’s safety string and scissors act on the active string only; the copy says so.
  • Demo mode has three pretend partners (Sam, Mum, Jo), each with their own seeded conversation, so the site’s switchboard screenshot is real.

No crypto changes. Pair, packMessage and openMessage were already per pair.

filocan.com stays the product name and the app. filocans.com redirects to it today (see Operations, Hosting) and can later land on a page that explains many strings, or simply keep redirecting; the plural should not become a second app. Tagline for the feature: One string each. As many cans as you have people.

  • Should a person be able to have two strings to the same person (say, a ‘work’ one and a ‘home’ one)? Current answer: no, one per couple, keep it simple.
  • Do notifications need per-string sounds or names? Probably yes once there are more than two.