How pranay-44/thane-explorer-hub works
Thane Explorer Hub is a student-curated guide to discovering places and community posts around Thane. Visitors browse featured and explore listings, open post details, and can sign in to create or manage contributions; admin routes provide a separate management stage. The graph also shows routing, the post-data layer, and Supabase services. README documents map/list exploration, but the sampled files do not establish its exact implementation or data flow, so those links are omitted.
Main entry points: client.ts Supabase client · posts.functions.ts Post data functions · index.tsx Home and featured posts · auth.tsx Sign in
Components 20
Discovery experience
- Home and featured posts
src/routes/index.tsx - Explore listings
src/routes/explore.tsx - Post details
src/routes/posts.$id.tsx - Post card
src/components/PostCard.tsx
Identity and access
- Sign in
src/routes/auth.tsx - Protected route guard
src/routes/_authenticated/route.tsx - Session and profile
src/lib/use-auth.ts - Supabase Auth
Community publishing
- Create post
src/routes/_authenticated/create.tsx - Edit post
src/routes/_authenticated/posts.$id.edit.tsx - Post form and image validation
src/components/PostForm.tsx - Student dashboard
src/routes/_authenticated/dashboard.tsx - Admin management
src/routes/_authenticated/admin.tsx - Post data functions
src/lib/posts.functions.ts - Admin data functions
src/lib/admin.functions.ts - Public post-image endpoint
src/routes/api/public/post-image/$.ts
Application platform
- Router and query context
src/router.tsx - Supabase client
src/integrations/supabase/client.ts
Other components
- Visitor or student
- Supabase database
Connections 28
- Visitor or student → Home and featured posts: opens
- Visitor or student → Explore listings: browses
- Visitor or student → Post details: opens
- Visitor or student → Sign in: signs in
- Visitor or student → Create post: creates
- Visitor or student → Student dashboard: manages posts
- Home and featured posts → Post data functions: loads featured
- Home and featured posts → Post card: renders
- Post details → Post data functions: loads post
- Sign in → Supabase client: uses
- Supabase client → Supabase Auth: authenticates
- Sign in → Session and profile: reads session
- Protected route guard → Supabase client: checks user
- Protected route guard → Sign in: redirects unauthenticated
- Session and profile → Supabase client: reads session and profile
- Session and profile → Supabase database: queries profile and roles
- Create post → Post form and image validation: renders
- Edit post → Post form and image validation: renders
- Post form and image validation → Post data functions: submits post
- Student dashboard → Post data functions: loads and manages
- Admin management → Admin data functions: requests administration
- Post data functions → Supabase client: uses
- Admin data functions → Supabase client: uses
- Supabase client → Supabase database: queries and mutates
- Router and query context → Home and featured posts: routes
- Router and query context → Explore listings: routes
- Router and query context → Protected route guard: routes
- Public post-image endpoint → Supabase client: uses