How techwithemmayt/lemon-ai-socialmedia-scheduling-saas works
Lemon AI is a social-media content planning and scheduling platform. Users connect social accounts, draft or generate posts, preview and schedule them, then manage them in calendar/list views; scheduled publishing runs asynchronously. A separate ideas workflow generates and organizes content on a Kanban board. The graph reflects documented capabilities and the supplied source excerpts/index; several route implementations and UI modules were not sampled, so their internal links are omitted or marked unverified.
Main entry points: insforge-server.ts Insforge client · publish-scheduled-posts.ts Scheduled publisher · create-post-dialog.tsx Post editor · route.ts Post API
Components 25
Product interface
- Dashboard
app/(routes)/(dashboard)/layout.tsx - Schedule page
app/(routes)/(dashboard)/schedule/page.tsx - Calendar and list
components/schedule/calendar-view.tsx
Content planning
- Post editor
components/schedule/create-post-dialog.tsx - AI post assistant
components/schedule/ai-assitant.tsx - Channel previews
components/schedule/preview/index.tsx - Ideas Kanban
components/idea/idea-kanban.tsx - Idea generator
components/idea/generate-ideas-popover.tsx
Social channels
- Channel settings
components/settings/channels-tab.tsx - Channel API
app/api/channel/route.ts - OAuth connect
app/api/channel/connect/route.ts - OAuth callback
app/api/channel/callback/route.ts - OAuth providers
lib/social-oauth/index.ts
Application services
- Post API
app/api/post/route.ts - Post generation API
app/api/post/generate-post/route.ts - Ideas API
app/api/idea/route.ts - Idea generation API
app/api/idea/generate-ideas/route.ts - Insforge client
lib/insforge-server.ts
Scheduled publishing
- Scheduled publisher
inngest/functions/publish-scheduled-posts.ts
Other components
- User
- Insforge data service
- Clerk authentication
- Social platforms
- Gemini models
- Inngest
Connections 33
- User → Dashboard: uses
- Dashboard → Schedule page: opens
app/(routes)/(dashboard)/schedule/page.tsx - Schedule page → Calendar and list: renders
app/(routes)/(dashboard)/schedule/page.tsx - Schedule page → Post editor: opens
app/(routes)/(dashboard)/schedule/page.tsx - Post editor → Channel previews: renders
components/schedule/create-post-dialog.tsx - Post editor → Post API: submits posts
- Post editor → AI post assistant: uses
components/schedule/create-post-dialog.tsx - AI post assistant → Post generation API: requests generation
- Post generation API → Gemini models: generates content
- User → Ideas Kanban: organizes ideas
- Ideas Kanban → Ideas API: fetches ideas
components/idea/idea-kanban.tsx - Ideas Kanban → Idea generator: renders
components/idea/idea-kanban.tsx - Idea generator → Idea generation API: requests ideas
- Idea generation API → Gemini models: generates ideas
- User → Channel settings: manages channels
- Channel settings → Channel API: loads channels
- Channel settings → OAuth connect: starts connection
components/settings/channels-tab.tsx - OAuth connect → OAuth providers: selects provider
app/api/channel/connect/route.ts - OAuth callback → OAuth providers: exchanges code
app/api/channel/callback/route.ts - OAuth providers → Social platforms: exchanges tokens
- Post API → Insforge client: gets client
app/api/post/route.ts - Post API → Insforge data service: reads and writes posts
app/api/post/route.ts - Ideas API → Insforge client: uses client
app/api/idea/route.ts - Idea generation API → Insforge client: uses client
app/api/idea/generate-ideas/route.ts - Channel API → Insforge client: uses client
app/api/channel/route.ts - Insforge client → Clerk authentication: gets user session
lib/insforge-server.ts - Insforge client → Insforge data service: creates client
lib/insforge-server.ts - Post API → Clerk authentication: checks plan
app/api/post/route.ts - Scheduled publisher → Insforge client: uses client
inngest/functions/publish-scheduled-posts.ts - Scheduled publisher → Insforge data service: loads scheduled posts
- Scheduled publisher → OAuth providers: refreshes tokens
inngest/functions/publish-scheduled-posts.ts - Scheduled publisher → Social platforms: publishes posts
- Inngest → Scheduled publisher: dispatches