How azmov7h/c0c-fr works
c0c-fr is the Next.js frontend for an AI content engine: creators enter through the web app, manage projects, use generation and research tools, then organize publishing and account usage. Feature services use a same-origin browser API client; authentication is handled separately by BFF routes that relay to the sibling backend and manage HttpOnly cookies. The README documents additional product branches that are represented here, but their internal calls were not sampled. Edges are limited to README statements and shown source references/calls.
Main entry points: [locale] Localized app routes · video-pipeline.tsx Video pipeline · route.ts Auth BFF routes · auth.service.ts Auth client
Components 23
Web experience
- Localized app routes
src/app/[locale] - Sign-in experience
src/features/auth/components/login-form.tsx
Creator workflows
- Projects workspace
src/features/projects/components/workspace/project-workspace.tsx - Creator dashboard
src/features/dashboard/components/dashboard-view.tsx - Content generation
src/features/scripts/components/script-generator.tsx - Video pipeline
src/features/advertisements/components/video-pipeline.tsx - Research tools
src/features/trends/components/trends-content.tsx - Publishing planner
src/features/planner/components/content-planner.tsx - Media library
src/features/media/components/media-library.tsx - Plans and billing
src/features/billing/components/pricing.tsx
API and identity
- Auth client
src/features/auth/services/auth.service.ts - Auth BFF routes
src/app/api/auth/login/route.ts - Request validation
src/lib/route-guards.ts - Session cookies
src/lib/auth-cookies.ts - Backend auth relay
src/lib/auth-relay.ts - Server API base
src/services/server-api.ts - Browser API client
src/services/api-client.ts - Advertisement service
src/features/advertisements/services/advertisements.service.ts
App foundations
- Locale routing
src/i18n/routing.ts - Locale formatting
src/lib/format/index.ts - Session initializer
src/components/session-initializer.tsx
Other components
- Creator
- c0c-bake backend
Connections 24
- Creator → Localized app routes: opens routes
- Localized app routes → Projects workspace: renders workspace
- Localized app routes → Creator dashboard: renders dashboard
- Localized app routes → Content generation: offers generators
- Localized app routes → Video pipeline: offers video tools
- Localized app routes → Research tools: offers research
- Localized app routes → Publishing planner: renders planner
- Localized app routes → Media library: renders media
- Localized app routes → Plans and billing: renders billing
- Localized app routes → Sign-in experience: renders sign-in
- Sign-in experience → Auth client: submits credentials
- Auth client → Auth BFF routes: calls same-origin
src/features/auth/services/auth.service.ts - Auth BFF routes → Request validation: validates requests
src/app/api/auth/login/route.ts - Auth BFF routes → Session cookies: sets cookies
src/app/api/auth/login/route.ts - Auth BFF routes → Backend auth relay: relays auth
src/app/api/auth/login/route.ts - Backend auth relay → Server API base: uses backend base
src/lib/auth-relay.ts - Server API base → c0c-bake backend: targets backend
- Browser API client → c0c-bake backend: requests via rewrite
- Advertisement service → Browser API client: sends API calls
src/features/advertisements/services/advertisements.service.ts - Video pipeline → Advertisement service: loads ad data
- Video pipeline → Locale formatting: formats display values
src/features/advertisements/components/video-pipeline.tsx - Video pipeline → Locale routing: reads URL locale
src/features/advertisements/components/video-pipeline.tsx - Session initializer → Auth client: loads session
src/components/session-initializer.tsx - Session initializer → Locale routing: uses locale routing
src/components/session-initializer.tsx