How suryanoyal/contentflow works
This is a multi-tenant content planning and social-platform scheduling application. Users register or sign in, manage content and platform rules, then plan or generate posting schedules and review calendar and usage insights. The graph separates the dashboard workflows, API routes, scheduling logic, and shared data/authentication layer. Several UI-to-API connections are inferred from the product flow rather than shown in sampled page source, so those links are dashed and unverified.
Main entry points: prisma.ts Prisma client · api/content Content endpoints · schedules Schedule endpoints · (dashboard)/content Content library
Components 22
User experience
- Sign-in and registration
src/app/(auth) - Overview dashboard
src/app/(dashboard)/page.tsx - Content library
src/app/(dashboard)/content - Scheduling calendar
src/app/(dashboard)/calendar/page.tsx - Platform settings
src/app/(dashboard)/platforms/page.tsx - Workspace settings
src/app/(dashboard)/settings/page.tsx - UI primitives
src/components/ui
Application API
- Authentication API
src/app/api/auth/[...nextauth]/route.ts - Account registration
src/app/api/register/route.ts - Content endpoints
src/app/api/content - Dashboard metrics
src/app/api/dashboard/route.ts - Platform endpoints
src/app/api/platforms - Schedule endpoints
src/app/api/schedules - Settings endpoints
src/app/api/settings/route.ts - Notifications endpoint
src/app/api/notifications/route.ts
Planning domain
- Schedule generation
src/lib/scheduler.ts - Content ID generation
src/lib/content-id.ts
Shared foundation
- Request validation
src/lib/validations.ts - Session authentication
src/lib/auth.ts - Prisma client
src/lib/prisma.ts - Application database
Other components
- Workspace user
Connections 31
- Workspace user → Sign-in and registration: signs in
- Workspace user → Overview dashboard: uses workspace
- Workspace user → Content library: manages content
- Workspace user → Scheduling calendar: plans posts
- Workspace user → Platform settings: configures platforms
- Workspace user → Workspace settings: updates settings
- Content library → UI primitives: renders with
src/app/(dashboard)/content/page.tsx - Scheduling calendar → UI primitives: renders with
src/app/(dashboard)/calendar/page.tsx - Platform settings → UI primitives: renders with
src/app/(dashboard)/platforms/page.tsx - Content library → Content endpoints: requests content
- Scheduling calendar → Schedule endpoints: requests schedules
- Overview dashboard → Dashboard metrics: requests metrics
- Platform settings → Platform endpoints: requests platforms
- Workspace settings → Settings endpoints: requests settings
- Sign-in and registration → Authentication API: authenticates
- Account registration → Request validation: validates registration
src/app/api/register/route.ts - Account registration → Prisma client: creates workspace
src/app/api/register/route.ts - Content endpoints → Request validation: validates content
src/app/api/content/route.ts - Content endpoints → Content ID generation: generates identifier
src/app/api/content/route.ts - Content endpoints → Prisma client: reads and writes
src/app/api/content/route.ts - Dashboard metrics → Prisma client: queries metrics
src/app/api/dashboard/route.ts - Platform endpoints → Prisma client: reads and writes
src/app/api/platforms/route.ts - Schedule endpoints → Schedule generation: generates and validates
src/app/api/schedules/generate/route.ts - Schedule endpoints → Prisma client: reads and writes
src/app/api/schedules/route.ts - Schedule endpoints → Session authentication: checks session
src/app/api/schedules/route.ts - Settings endpoints → Request validation: validates settings
src/app/api/settings/route.ts - Settings endpoints → Prisma client: reads and updates
src/app/api/settings/route.ts - Notifications endpoint → Prisma client: loads notifications
src/app/api/notifications/route.ts - Session authentication → Prisma client: loads user
src/lib/auth.ts - Schedule generation → Prisma client: reads and updates plans
src/lib/scheduler.ts - Prisma client → Application database: accesses