How strike-22/linkedin-ai-post-generator works
This product supports creating and publishing educational LinkedIn posts: users discover or generate a topic, configure a post, generate and edit its text, optionally create or upload an image, then publish immediately or schedule publishing. The backend also handles LinkedIn OAuth, profile lookup, and publish history. The README documents these capabilities, while excerpts confirm the principal API-to-service calls and scheduled worker behavior. The frontend excerpt is partial, so UI-to-route links beyond the visible calls are not asserted.
Main entry points: server.js HTTP routes · scheduler.js Job scheduling and worker · app.js Post editor · geminiImageGenerator.js Infographic generation
Components 15
Post creation UI
- Post editor
app.js - Static app shell
index.html
Backend API
- HTTP routes
backend/server.js
Content generation
- Topic discovery
backend/services/trendFetcher.js - Post and topic generation
backend/services/postGenerator.js - Infographic generation
backend/services/geminiImageGenerator.js - Generated image files
backend/services/geminiImageGenerator.js
Publishing and schedule
- LinkedIn OAuth and posts
backend/services/linkedin.js - Publish history
backend/services/publishLog.js - Job scheduling and worker
backend/services/scheduler.js - Redis connection
backend/config/redis.js
Other components
- Creator
- Google Gemini
- Redis queue store
Connections 20
- Creator → Post editor: creates posts
README.md - Static app shell → Post editor: hosts interface
README.md - Post editor → HTTP routes: requests topics
app.js - Post editor → HTTP routes: schedules daily
app.js - Post editor → HTTP routes: publishes text
app.js - HTTP routes → Topic discovery: fetches topics
backend/server.js - HTTP routes → Post and topic generation: generates topics and posts
backend/server.js - HTTP routes → Infographic generation: generates infographics
backend/server.js - Post and topic generation → Google Gemini: generates content
backend/services/postGenerator.js - Infographic generation → Google Gemini: generates images
backend/services/geminiImageGenerator.js - Infographic generation → Generated image files: writes image files
backend/services/geminiImageGenerator.js - HTTP routes → LinkedIn OAuth and posts: handles OAuth and publishing
backend/server.js - LinkedIn OAuth and posts → LinkedIn: requests profile and posts
backend/services/linkedin.js - HTTP routes → Publish history: records and reads history
backend/server.js - HTTP routes → Job scheduling and worker: manages schedules
backend/server.js - Job scheduling and worker → Redis connection: uses connection
backend/services/scheduler.js - Redis connection → Redis queue store: connects to
backend/config/redis.js - Job scheduling and worker → Post and topic generation: generates scheduled posts
backend/services/scheduler.js - Job scheduling and worker → LinkedIn OAuth and posts: publishes scheduled posts
backend/services/scheduler.js - Job scheduling and worker → Publish history: records outcomes
backend/services/scheduler.js