Local setup
Prerequisites
Section titled “Prerequisites”- Node 22 or newer, npm 10
- Python 3 with
cairosvg,fonttoolsandPillowonly if you want to regenerate brand assets - Supabase CLI (
brew install supabase/tap/supabase) for a real backend; optional, the app has a demo mode - Xcode or Android Studio only for device builds; Expo Go and the web build need neither
Install
Section titled “Install”git clone git@github.com:andrewbruno/filocan.gitcd filocannpm installnpm test # crypto and protocol tests, should print 9 passingThe app in demo mode
Section titled “The app in demo mode”npm run app # Expo dev server# press w for web, i for iOS simulator, a for Android, or scan the QR with Expo GoWith no .env in apps/app, the app runs against an in-memory relay. Any phone number works, the code is 123456, and a pretend partner called Sam accepts your pairing after four seconds. Everything is still encrypted end to end; there is just no server.
The app against local Supabase
Section titled “The app against local Supabase”cd supabasesupabase start # Postgres, Auth, Realtime, Studio at :54323supabase db reset # applies migrations/0001_init.sqlCopy the anon key it prints into apps/app/.env:
EXPO_PUBLIC_SUPABASE_URL=http://127.0.0.1:54321EXPO_PUBLIC_SUPABASE_ANON_KEY=<anon key>Test phone numbers +61400000001 and +61400000002 accept the code 123456 (see supabase/config.toml). To pair, run the app twice (a simulator and the web build, say), verify a different test number in each, show on one and paste the copied code text into the other.
On a physical device, replace 127.0.0.1 with your machine’s LAN address.
The site and docs
Section titled “The site and docs”npm run www # http://localhost:4321npm run docs # http://localhost:4322npm run build # builds shared, www and docsRegenerating screenshots
Section titled “Regenerating screenshots”The site’s phone screenshots are real app screens, rendered from the web build in demo mode:
npm run export:web -w apps/app # apps/app/distnpx serve apps/app/dist -l 8090 # any static servernpm run screenshots -w apps/www # writes apps/www/public/screens/*.pngRegenerating brand assets
Section titled “Regenerating brand assets”pip install cairosvg fonttools pillownpm run brand # python3 brand/gen.pyThen copy what changed into apps/app/assets/brand, apps/www/public/brand and apps/docs/public.