How abdulazeem-10/subscription-management-app works
Recurrly is a cross-platform subscription-management app. Users enter through onboarding and authentication, then manage subscriptions from the home and subscription screens; the centralized Zustand state feeds the dashboard and spending insights. Authentication, analytics, and major app capabilities are described in the README, while sampled source confirms the home-screen creation flow, store access, and insight calculations. Some routes and integrations were not sampled, so their documented relationships are marked unverified rather than inferred from names.
Main entry points: index.tsx Home dashboard · subscriptionStore.ts Subscription state · SubscriptionCard.tsx Subscription card · posthog.ts Analytics client
Components 24
Entry and auth
- Launch routing
app/index.tsx - Onboarding
app/onboarding.tsx - Auth screens
app/(auth)/sign-in.tsx
Subscription management
- Home dashboard
app/(tabs)/index.tsx - Subscription list
app/(tabs)/subscriptions.tsx - Subscription detail
app/subscriptions/[id].tsx - Create form
components/CreateSubscriptionModal.tsx - Subscription card
components/SubscriptionCard.tsx - Renewal card
components/UpcomingSubscriptionCard.tsx - List heading
components/ListHeading.tsx - Subscription state
lib/subscriptionStore.ts
Insights and analytics
- Insights screen
app/(tabs)/insights.tsx
Shared app services
- Subscription defaults
constants/data.ts - Settings screen
app/(tabs)/settings.tsx - Analytics client
lib/posthog.ts - Tab navigation
app/(tabs)/_layout.tsx - Root layout
app/_layout.tsx - Formatting helpers
lib/utils.ts - UI configuration
constants/theme.ts - Icon assets map
constants/icons.ts - Image assets map
constants/images.ts
Other components
- App user
- Clerk auth
- PostHog service
Connections 32
- App user → Launch routing: opens app
README.md - Launch routing → Onboarding: routes first-time
README.md - Launch routing → Auth screens: checks session
README.md - Auth screens → Clerk auth: authenticates with
README.md - App user → Auth screens: signs in
README.md - App user → Home dashboard: uses app
README.md - Home dashboard → Create form: opens
app/(tabs)/index.tsx - Create form → Home dashboard: submits subscription
app/(tabs)/index.tsx - Home dashboard → Subscription state: adds subscription
app/(tabs)/index.tsx - Subscription state → Subscription defaults: initializes from
lib/subscriptionStore.ts - Home dashboard → Subscription state: reads state
app/(tabs)/index.tsx - Subscription list → Subscription state: reads state
app/(tabs)/subscriptions.tsx - Insights screen → Subscription state: reads state
app/(tabs)/insights.tsx - Home dashboard → Subscription card: renders
app/(tabs)/index.tsx - Home dashboard → Renewal card: renders
app/(tabs)/index.tsx - Home dashboard → List heading: renders
app/(tabs)/index.tsx - Subscription list → Subscription card: renders
app/(tabs)/subscriptions.tsx - Insights screen → Subscription card: renders
app/(tabs)/insights.tsx - Home dashboard → Formatting helpers: formats amounts
app/(tabs)/index.tsx - Subscription card → Formatting helpers: formats amounts
components/SubscriptionCard.tsx - Renewal card → Formatting helpers: formats amounts
components/UpcomingSubscriptionCard.tsx - Home dashboard → Icon assets map: uses icons
app/(tabs)/index.tsx - Create form → Icon assets map: selects category icons
components/CreateSubscriptionModal.tsx - Subscription defaults → Icon assets map: uses icons
constants/data.ts - Home dashboard → Image assets map: uses avatar image
app/(tabs)/index.tsx - Insights screen → Formatting helpers: formats amounts
app/(tabs)/insights.tsx - Home dashboard → Analytics client: captures events
app/(tabs)/index.tsx - Settings screen → Analytics client: uses analytics
README.md - Root layout → Analytics client: initializes analytics
README.md - Analytics client → PostHog service: sends events
lib/posthog.ts - Tab navigation → Subscription defaults: configures tabs
app/(tabs)/_layout.tsx - Tab navigation → UI configuration: uses theme
app/(tabs)/_layout.tsx