How spacejhmoon/myblog works
This is a React blogging application backed by Supabase. Users can sign up or log in, create posts with tags and visibility settings, and navigate to post details or their profile. App.tsx owns page routing; authentication state is provided globally, while page handlers call Supabase or the post/profile helpers. The README describes only the starter template, so it does not establish additional product capabilities. Unsampled page behavior and database interactions are not inferred beyond the indexed references.
Main entry points: App.tsx Route application · supabase.ts Supabase client · SignupPage.tsx Registration · WritePage.tsx Post editor
Components 17
Application and navigation
- Route application
src/App.tsx - Page layout
src/components/layout/Layout.tsx - Navigation bar
src/components/layout/Navbar.tsx
Identity and profiles
- Sign in
src/pages/LoginPage.tsx - Registration
src/pages/SignupPage.tsx - Auth state
src/contexts/AuthContext.tsx - User profile
src/pages/MePage.tsx - Profile helper
src/lib/profiles.ts
Post publishing
- Post listing
src/pages/MainPage.tsx - Post detail
src/pages/DetailPage.tsx - Post editor
src/pages/WritePage.tsx - Post helper
src/lib/posts.ts - Database types
src/types/database.ts
Shared interface
- UI primitives
src/components/ui - Supabase client
src/lib/supabase.ts
Other components
- Visitor
- Supabase service
Connections 24
- Visitor → Route application: opens routes
src/App.tsx - Route application → Auth state: provides auth
src/App.tsx - Route application → Page layout: routes through
src/App.tsx - Route application → Post listing: routes to
src/App.tsx - Route application → Post detail: routes to
src/App.tsx - Route application → Sign in: routes to
src/App.tsx - Route application → Registration: routes to
src/App.tsx - Route application → User profile: routes to
src/App.tsx - Route application → Post editor: routes to
src/App.tsx - Page layout → Navigation bar: renders
src/components/layout/Layout.tsx - Navigation bar → Auth state: reads auth
src/components/layout/Navbar.tsx - Sign in → Supabase client: signs in
src/pages/LoginPage.tsx - Registration → Supabase client: registers account
src/pages/SignupPage.tsx - Registration → Profile helper: upserts profile
src/pages/SignupPage.tsx - Post editor → Auth state: reads user
src/pages/WritePage.tsx - Post editor → Post helper: creates post
src/pages/WritePage.tsx - Auth state → Supabase client: tracks session
src/contexts/AuthContext.tsx - Post helper → Supabase client: uses client
src/lib/posts.ts - Profile helper → Supabase client: uses client
src/lib/profiles.ts - Supabase client → Supabase service: connects to
- Sign in → UI primitives: renders controls
src/pages/LoginPage.tsx - Registration → UI primitives: renders controls
src/pages/SignupPage.tsx - Post editor → UI primitives: renders controls
src/pages/WritePage.tsx - Navigation bar → UI primitives: renders controls
src/components/layout/Navbar.tsx