How irshadalam-dev/sparklink works
SparkLink is a link-in-bio builder: a creator signs in, edits profile details and links, then shares a themed public profile. The graph follows routing, authenticated editing, persistence, and public rendering, with authentication and avatar storage shown as backend capabilities. Several feature modules were not sampled in full; their inclusion and any uncertain relationships are limited to the README, tree, and SOURCE INDEX references.
Main entry points: App.tsx Routes and providers · supabase.ts Supabase client · DashboardLayout.tsx Dashboard shell · LinkEditor.tsx Link editor
Components 20
Application routing
- Routes and providers
src/App.tsx - Supabase client
src/lib/supabase.ts - Supabase services
- Toast notifications
src/components/ui/ToastProvider.tsx - Error boundary
src/components/ui/ErrorBoundary.tsx - Loading indicator
src/components/ui/LoadingSpinner.tsx
Account access
- Sign-in and signup
src/pages/AuthPage.tsx - Auth callback
src/pages/AuthCallback.tsx - Password recovery
src/pages/ResetPasswordPage.tsx - Password update
src/pages/UpdatePasswordPage.tsx
Creator dashboard
- Dashboard shell
src/layouts/DashboardLayout.tsx - Link editor
src/pages/Dashboard/LinkEditor.tsx - Profile settings
src/components/ProfileSettings.tsx - Theme selector
src/components/ThemeSelector.tsx - Phone preview
src/components/PreviewMockup.tsx
Public presence
- Public profile
src/pages/PublicProfile.tsx - Not found view
src/pages/NotFound.tsx - Profile and link data
supabase/schema.sql - Avatar storage
Other components
- Creator
Connections 28
- Creator → Routes and providers: uses
README.md - Routes and providers → Sign-in and signup: routes to
src/App.tsx - Routes and providers → Auth callback: routes to
src/App.tsx - Routes and providers → Password recovery: routes to
src/App.tsx - Routes and providers → Password update: routes to
src/App.tsx - Routes and providers → Dashboard shell: routes to
src/App.tsx - Routes and providers → Public profile: routes to
src/App.tsx - Routes and providers → Toast notifications: provides
src/App.tsx - Routes and providers → Error boundary: wraps
src/App.tsx - Sign-in and signup → Supabase client: authenticates with
src/pages/AuthPage.tsx - Auth callback → Supabase client: checks session
src/pages/AuthCallback.tsx - Dashboard shell → Supabase client: checks session
src/layouts/DashboardLayout.tsx - Link editor → Supabase client: reads and writes
src/pages/Dashboard/LinkEditor.tsx - Profile settings → Supabase client: reads and writes
src/components/ProfileSettings.tsx - Public profile → Supabase client: fetches profile and links
src/pages/PublicProfile.tsx - Supabase client → Supabase services: connects to
src/lib/supabase.ts - Supabase services → Profile and link data: stores profile and links
README.md - Supabase services → Avatar storage: stores avatars
README.md - Dashboard shell → Link editor: renders
- Dashboard shell → Profile settings: renders
- Link editor → Phone preview: renders
src/pages/Dashboard/LinkEditor.tsx - Profile settings → Theme selector: offers themes
src/components/ProfileSettings.tsx - Public profile → Not found view: shows when absent
src/pages/PublicProfile.tsx - Link editor → Toast notifications: reports outcomes
src/pages/Dashboard/LinkEditor.tsx - Profile settings → Toast notifications: reports outcomes
src/components/ProfileSettings.tsx - Dashboard shell → Loading indicator: shows while loading
src/layouts/DashboardLayout.tsx - Link editor → Loading indicator: shows while loading
src/pages/Dashboard/LinkEditor.tsx - Public profile → Loading indicator: shows while loading
src/pages/PublicProfile.tsx