Conference networking: organizers publish branded event pages at {slug}.<host>; attendees join by QR code, pick interests, get matched, and message each other.
The design and phased delivery plan lives in ../.omc/plans/conference-network-platform.md.
- Sign in without a password: a 6-digit email code, or Continue with Google.
- One IntroHall account across events: name, headline, company and an optional profile photo (cropped in the browser to 512 px; location data stripped).
- Download my data (JSON of everything the account holds) and Delete account at
app.<domain>/profile.
- Profile first: after signing in, a new organizer sets up their profile (name required; headline, company
and photo optional) at
app.<domain>/welcomebefore creating an organization. Invited teammates do the same before accepting, so the team list never shows an unnamed member. The database enforces it too. - Organizations and team
- Create organizations and invite teammates by link as Admin or Staff. Staff can run events but can't archive them or delete events or the organization. Remove members.
- Transfer ownership: the owner hands the organization to any admin or staff member (with a confirmation). The new owner gets every owner power; the previous owner stays on as an admin.
- Soft-delete events and organizations. Deleted events can be restored for 30 days from Recently deleted.
- Event setup
- Details: name, address (
{slug}.<domain>, locked once published), time zone, start and end, venue, description. - Attendee settings: allow custom interests and set the maximum per attendee. Message retention after the event is 7–90 days (default 30).
- Branding: header banner and link-preview image.
- Interests: the official interest list. Hide tags, and merge duplicates (e.g. "GenAI" into "Generative AI") without anyone losing a tag.
- Access & QR: choose who can join. Open means anyone with the link. Code requires a 10-character join code that can be regenerated. Download the join QR code as a 1024 px PNG or as an SVG for printing.
- Publish checklist before going live; publish, unpublish and archive. Events auto-archive 14 days after they end.
- Details: name, address (
- Running the event
- Announcements: post now or schedule; pin important ones. They appear on the public event page and attendee home, and are pushed to phones with notifications on. Send one to everyone or to people interested in one topic (the picker shows how many attendees each reaches): targeted posts skip the public page, show only to attendees with that interest (labelled "For people interested in …"), notify only them, and follow the interest if it's merged.
- Attendees: roster by status (active, setting up, left, banned). Remove (can rejoin) or Ban (can't), and unban.
- Reports: moderation queue with live alerts and a snapshot of the reported message. Resolve with a note, remove or ban.
- Analytics: joined, completed profiles, requests sent and accepted, conversations started, joins over time, top interests and "Open to" totals. Download CSV (Section, Item, Value; times in the event's time zone) includes every interest, not just the top 10. Once the event ends, a Post-event summary lists the highlights in plain language, with a print button (or save as PDF). Totals only, never per person.
- Event page: branded page with dates, venue, description, topics and announcements. It can be installed to the Home Screen as an app for that event.
- Joining: scan the event QR code (or open the link), sign in, and enter the join code if the event requires one. Then set up an event profile: bio, what you're looking for, and interests (official ones plus custom ones if allowed).
- Matches: people ranked by shared interests, with rarer shared interests counting for more. Filter by interest, or browse Everyone.
- Open to: optional intent chips on the event profile (Hiring, Looking for work, Mentoring others, Finding a mentor, Finding a co-founder, Investing, Raising funding). They show on match cards, and Matches and Everyone can be filtered by them. Intents that pair with yours (Hiring ↔ Looking for work, Mentoring ↔ Finding a mentor, Investing ↔ Raising funding, co-founder ↔ co-founder) are highlighted on the card; ranking is unchanged.
- Connecting
- Send a connect request with an optional note. If two people request each other, they're connected automatically. Declines are silent, and you can withdraw a pending request.
- Personal connect QR code (Profile tab). Someone scans it with their phone camera and taps Connect to connect instantly, with no request to accept. This works even before they've joined: they sign in, join, set up and land back on the connect screen. The code owner gets a notification. Reset code voids old copies.
- Messaging
- Realtime 1:1 chat with connections and unread badges.
- Messages typed offline are queued and sent when you reconnect.
- Private notes on connections: a note only you can see ("Runs infra at a fintech, send deck"). Edit it in the chat header; a one-line preview shows in the Inbox. It stays after the event and is included in Download my data.
- Contact export (Inbox → Export contacts): download your connections at the event as a vCard (.vcf, opens in
phone, Google and Outlook contacts) or a CSV spreadsheet. Each contact has name, headline, company, profile links,
when you connected, your private note and a link back to the chat. Works after the event ends and after you leave
(
{slug}.<domain>/contacts?format=vcf|csv). Blocked and banned people are left out. Profile links are only ever shown to connections, through this export. - Notifications (Web Push): new requests, accepted requests and QR connects, messages and announcements. On iPhone this needs the event added to the Home Screen.
- Privacy and safety
- Hide my profile from matches; existing chats and your QR code still work.
- Leave event (you can rejoin).
- Block someone (closes the chat) and report a person or a specific message to the organizers.
- Find and suspend organizations or people. A suspended person can't sign in and is removed from every event.
Printable badge QR · "new matches" digest push · icebreaker prompts · "here now" presence · Add to Calendar (.ics) · invite emails via Resend · billing (Stripe) · custom domains.
Next.js (App Router, TypeScript, Tailwind) on Vercel · Supabase (Postgres + RLS, Auth, Storage, Realtime, pg_cron, pgmq).
Requires Node 22+, pnpm 10, and Docker (for the local Supabase stack).
pnpm install
cp .env.example .env.local # fill NEXT_PUBLIC_SUPABASE_ANON_KEY from `pnpm db:start`
cp supabase/.env.example supabase/.env
pnpm db:start # Postgres, Auth, Mailpit (http://127.0.0.1:54324)
pnpm devHosts (*.localtest.me resolves to 127.0.0.1, so subdomains work without /etc/hosts edits):
| URL | Serves |
|---|---|
http://localtest.me:3000 |
marketing |
http://app.localtest.me:3000 |
organizer dashboard, profile, sign-in |
http://{slug}.localtest.me:3000 |
event pages (rewritten to /e/{slug}) |
Dev hosts are plain HTTP, so browsers don't treat them as secure contexts: avoid crypto.randomUUID. Service
workers, offline caching and push need HTTPS:
# one time
sudo pacman -S mkcert nss && mkcert -install
mkdir -p certs && mkcert -cert-file certs/localtest.pem -key-file certs/localtest-key.pem \
"localtest.me" "*.localtest.me" localhost 127.0.0.1
pnpm dev:https # https://app.localtest.me:3000, https://{slug}.localtest.me:3000
pnpm exec supabase functions serve # Edge Functions (send-push, delete-account, purge-events) with hot reload + logsTo try it on a phone on the same Wi-Fi, stop any other dev server and run pnpm dev:phone. It serves
http://app.<lan-ip>.sslip.io:3000 (plain HTTP, so no push or offline). One time: open ports 3000 and 54321 to the
LAN (sudo ufw allow from 192.168.40.0/24 to any port 3000,54321 proto tcp). On iOS, turn off Limit IP Address
Tracking for that Wi-Fi: iCloud Private Relay won't resolve names that point at a LAN address.
Push pipeline: triggers queue jobs in pgmq → pg_cron (every 10 s) → pg_net → send-push Edge Function →
Web Push. Local worker URL and service key are set by supabase/seed.sql; VAPID keys live in supabase/.env
(public key also in .env.local as NEXT_PUBLIC_VAPID_PUBLIC_KEY). Production: see the launch checklist, step 3.
- Account deletion (Profile → Delete account) calls the
delete-accountEdge Function with the user's token: anonymize + delete event data (delete_account_data()), deleteavatars/{uid}/…, delete the auth user. Sole owners of an organization must transfer it or delete it first. Data export: Profile → Download my data (/profile/export). - Retention: daily cron deletes messages
retention_days(default 30) after an event ends, except messages under an open report. Auto-archive: hourly cron archives published events 14 days after they end. - Deleting events / organizations is a soft delete. Events can be restored from the organization page for 30
days; then the daily
purge-deleted-eventscron calls thepurge-eventsEdge Function, which deletes their images and the rows (production setup: launch checklist, step 3). - Platform admins (
/admin: suspend organizations or people) are granted in SQL only:insert into public.platform_admins (user_id) select id from auth.users where email = '[email protected]'; - Product analytics is off until configured: PostHog anonymous page views via
NEXT_PUBLIC_POSTHOG_KEY(turn on cookieless mode in the PostHog project). Query strings (join codes) and ids are stripped from URLs.
Everything above runs locally. Going live means a hosted Supabase project, the Next.js app on Vercel, a domain,
and email. Work through these in order; <domain> is your root domain (e.g. introhall.com) and <ref> is the
Supabase project ref (the xxxx in https://xxxx.supabase.co).
- Buy the domain. Event pages live on subdomains (
devconf.<domain>), which needs a wildcard domain on Vercel, and Vercel only issues wildcard certificates when the domain uses Vercel's nameservers. - Create accounts: Supabase, Vercel, Resend (sign-in code emails), and optionally PostHog.
- Supabase dashboard → New project. Pick the region closest to your attendees and save the database password in a password manager. Use the Pro plan for a real event: Free pauses after a week idle and allows 200 concurrent Realtime connections (Pro includes 500; raise it under the project's usage settings if one event can exceed that).
- Note the project URL and keys: Project Settings → API Keys. The app and the cron jobs use the anon and service_role JWT keys (the "Legacy API keys" tab on newer projects).
- Link the code and apply the migrations (tables, security rules, storage bucket, cron jobs):
bash pnpm exec supabase login pnpm exec supabase link --project-ref <ref> pnpm exec supabase db push # never pass --include-seed: seed.sql holds local-only values - Check: Database → Extensions shows
pg_cron,pg_netandpgmqenabled, and Integrations → Cron listskick-push-worker,publish-scheduled-announcements,rebuild-event-stats,purge-expired-messages,auto-archive-eventsandpurge-deleted-events. - Check: Project Settings → Data API → Exposed schemas does not include
private.
- Generate production push keys:
npx web-push generate-vapid-keys. Keep them for good: changing them later invalidates every phone's push subscription. - Set the function secrets and deploy all three functions (
send-push,delete-account,purge-events):bash pnpm exec supabase secrets set VAPID_PUBLIC_KEY=… VAPID_PRIVATE_KEY=… VAPID_SUBJECT=mailto:support@<domain> pnpm exec supabase functions deploy - Point the cron jobs at the live functions. In SQL Editor:
sql insert into private.secrets (key, value) values ('push_worker_url', 'https://<ref>.supabase.co/functions/v1/send-push'), ('purge_worker_url', 'https://<ref>.supabase.co/functions/v1/purge-events'), ('service_role_key', '<service_role key>') on conflict (key) do update set value = excluded.value;(ip_saltis generated by the migrations; leave it.)
Hosted Supabase's built-in email only sends a few messages an hour to team members, so real sign-ins need Resend.
- Resend → Domains → Add domain (
<domain>), add the DNS records it shows, wait for "Verified". - Resend → API Keys → Create API key (sending access).
- Supabase → Authentication → Emails → SMTP Settings → enable custom SMTP:
host
smtp.resend.com, port465, usernameresend, password = the Resend API key, senderno-reply@<domain>, sender nameIntroHall. - Supabase → Authentication → Emails → Templates: for Magic Link and Confirm signup, set the subject
to
Your IntroHall sign-in codeand paste the HTML fromsupabase/templates/magic_link.htmlandconfirmation.html. Without this, people get a link instead of the 6-digit code the app asks for. - Supabase → Authentication → Sign In / Providers → Email: email OTP length 6, expiry 900 seconds, "Confirm email" off (the code itself confirms the address).
- Supabase → Authentication → Rate Limits: raise "emails sent per hour" (local uses 1000) so a keynote rush of sign-ups isn't throttled.
- Supabase → Authentication → URL Configuration: Site URL
https://app.<domain>; Redirect URLshttps://*.<domain>/**andhttps://<domain>/**. - Google Cloud console → your OAuth client → Authorized redirect URIs → add
https://<ref>.supabase.co/auth/v1/callback. Under Branding → Authorized domains, add<domain>. - Supabase → Authentication → Sign In / Providers → Google: enable, paste the client ID and secret, save.
- Google Cloud console → Audience → Publish app, so anyone can sign in, not only test users.
-
Vercel → Add New → Project → import the repository (framework Next.js, install
pnpm install). -
Settings → Environment Variables (Production):
| Variable | Value | |---|---| | `NEXT_PUBLIC_ROOT_DOMAIN` | `<domain>` (no `https://`, no port) | | `NEXT_PUBLIC_SUPABASE_URL` | `https://<ref>.supabase.co` | | `NEXT_PUBLIC_SUPABASE_ANON_KEY` | the anon key | | `NEXT_PUBLIC_VAPID_PUBLIC_KEY` | the VAPID public key from step 3 | | `NEXT_PUBLIC_POSTHOG_KEY` / `_HOST` | optional | `NEXT_PUBLIC_*` values are baked in at build time: **redeploy** after changing any of them. -
Settings → Domains: add
<domain>and*.<domain>(this coversapp.<domain>and every event). -
Settings → Functions → Region: the same region as the Supabase project.
-
Deploy.
-
https://app.<domain>→ sign in with an email code; then with Google. - Make yourself a platform admin (SQL Editor):
insert into public.platform_admins (user_id) select id from auth.users where email = '<you>';then openhttps://app.<domain>/admin. - Create an organization and an event, upload a banner, publish, open
https://<slug>.<domain>. - Join from two phones via the QR code, pick interests, see each other in Matches, connect, message.
- Turn on notifications on one phone (iPhone: add to Home Screen first) and send it a message with the app closed; it should arrive within ~15 s.
- Post an announcement; both phones see it.
- Jobs are running (SQL Editor):
sql select jobname, status, return_message, start_time from cron.job_run_details d join cron.job using (jobid) order by start_time desc limit 20;and the push worker answers (status 200):select status_code, created from net._http_response order by created desc limit 5; - Profile → Download my data works; delete a throwaway test account and check it can no longer sign in.
- Supabase → Advisors → Security Advisor shows no errors.
- Before a large event: run the Realtime load test (
load/realtime.js) against the hosted project at the expected attendee count.
| Command | What |
|---|---|
pnpm lint / pnpm typecheck |
ESLint, tsc |
pnpm test |
Vitest unit tests (tests/unit) |
pnpm db:lint |
squawk migration lint |
pnpm db:test |
pgTAP: RLS, grants, RPC rejection paths (supabase/tests) |
pnpm test:integration |
Concurrency checks against the local DB, e.g. the attendee cap under 150 parallel joins |
k6 run -e ANON_KEY=… -e SLUG=… load/join.js |
Keynote-burst load test (500 sign-ups + joins/min); needs k6 |
node load/seed-matches.mts && k6 run -e ANON_KEY=… load/matches.js |
Matching load test: 5,000 attendees × 20 interests, 50 req/s |
node load/seed-realtime.mts 90 && k6 run -e ANON_KEY=… -e CONNS=180 -e RATE=25 load/realtime.js |
Realtime chat load test. Local Realtime caps 200 connections / 100 events/s; run the 2,000-connection version against the hosted project |
pnpm test:e2e |
Playwright + axe (needs pnpm db:start) |
pnpm test:e2e:https |
Service-worker/offline + announcements e2e over HTTPS (needs mkcert certs) |
pnpm test:functions |
Edge Functions (Deno) against the local stack: push worker (mock push service), account deletion, event purge |
pnpm db:types |
Regenerate lib/supabase/types.ts after a migration |
- Reads: RLS. Helper functions live in schema
private, which the API never exposes. - Own-row writes: column grants + RLS (or SECURITY INVOKER RPCs).
- Cross-row writes: small SECURITY DEFINER RPCs that check
auth.uid()first; each rejection path has a pgTAP test.