How eyeoosh/forus works
For us is a private relationship-memory site with a public-facing (authenticated) archive and an admin editor. Visitors sign in, browse month cards, and open individual memories; admins sign in separately, then add, edit, or delete months and upload photos. Supabase provides authentication, database, and photo storage, while database and storage policies enforce access. The README documents the security and deployment model; source excerpts show the page-level operations. The schema and HTML wiring are represented from the tree and README, not sampled source.
Main entry points: index.js Month listing · month.js Memory detail · admin.js Month editor · schema.sql RLS policies
Components 14
Memory experience
- Login and archive
index.html - Month listing
js/index.js - Memory detail
js/month.js - Memory page
month.html
Admin editing
- Admin page
admin.html - Month editor
js/admin.js
Supabase services
- Supabase client
js/supabase-client.js - Service config
js/config.js - Supabase Auth
- Months database
- Photo storage
Access control
- Login guard
js/auth.js - RLS policies
supabase/schema.sql
Other components
- Visitor
Connections 21
- Visitor → Login and archive: opens
README.md - Login and archive → Month listing: loads
README.md - Month listing → Supabase client: queries via
js/index.js - Supabase client → Service config: uses
js/supabase-client.js - Month listing → Supabase Auth: checks session
js/index.js - Month listing → Months database: reads months
js/index.js - Month listing → Memory page: links cards
js/index.js - Visitor → Memory page: opens link
README.md - Memory page → Memory detail: loads
README.md - Memory detail → Login guard: requires login
js/month.js - Login guard → Supabase Auth: checks session
js/auth.js - Memory detail → Supabase client: queries via
js/month.js - Memory detail → Months database: reads memory
js/month.js - Visitor → Admin page: opens
README.md - Admin page → Month editor: loads
README.md - Month editor → Supabase Auth: signs in
js/admin.js - Month editor → Months database: manages months
js/admin.js - Month editor → Photo storage: uploads photos
js/admin.js - RLS policies → Months database: defines access
README.md - RLS policies → Photo storage: defines access
README.md - Supabase Auth → RLS policies: authenticated access