How yashsharmaofficially/socialmedia works
PostRally is a social-media management product with a Cloudflare Workers API, web app, and CLI. The main workflow is to connect social accounts, create content, schedule or publish it, and later review analytics. The backend also exposes workspace, billing, approval, media, reporting, and MCP capabilities. The graph focuses on the API workflow and substantial product branches visible in the tree; several worker and integration links are unverified because their implementations were not excerpted.
Main entry points: app.ts API application · content.service.ts Content service · main.ts PostRally CLI · account.routes.ts Account routes
Components 22
Product entrypoints
- PostRally CLI
backend/cli/src/main.ts - API application
backend/src/app.ts - MCP interface
backend/src/modules/mcp/mcp.routes.ts
Workspace and accounts
- Workspace service
backend/src/modules/workspaces/workspace.service.ts - Account routes
backend/src/modules/accounts/account.routes.ts - Account service
backend/src/modules/accounts/account.service.ts - Platform adapters
backend/src/integrations/core/types.ts
Content and publishing
- Content routes
backend/src/modules/content/content.routes.ts - Content service
backend/src/modules/content/content.service.ts - Media service
backend/src/modules/media/media.service.ts - Scheduling service
backend/src/modules/scheduling/scheduling.service.ts - Publishing service
backend/src/modules/publishing/publishing.service.ts - Publishing worker
backend/src/workers/publishing/process-job.ts - Approvals
backend/src/modules/approvals/approval.service.ts
Insights and integrations
- Analytics service
backend/src/modules/analytics/analytics.service.ts - Analytics worker
backend/src/workers/analytics/collect.ts - Social platforms
- PostgreSQL database
backend/src/infrastructure/database/db.ts - Object storage
backend/src/infrastructure/storage/storage.ts - Billing
backend/src/modules/billing/billing.service.ts - Reports
backend/src/modules/reports/report.service.ts
Other components
- User
Connections 23
- User → API application: sends requests
backend/src/app.ts - User → PostRally CLI: uses
backend/cli/src/main.ts - PostRally CLI → API application: calls API
- API application → Account routes: mounts routes
backend/src/app.ts - API application → Content routes: mounts routes
backend/src/app.ts - Account routes → Account service: calls
backend/src/modules/accounts/account.routes.ts - Account service → Platform adapters: uses registry types
backend/src/modules/accounts/account.service.ts - User → Social platforms: authorizes account
- Content routes → Content service: calls
backend/src/modules/content/content.routes.ts - User → Scheduling service: schedules posts
- Content service → PostgreSQL database: reads and writes
backend/src/modules/content/content.service.ts - Content service → Workspace service: checks access
backend/src/modules/content/content.service.ts - User → Media service: uploads media
- Media service → Object storage: stores objects
backend/src/modules/media/media.service.ts - Scheduling service → Publishing service: queues publishing
backend/src/modules/scheduling/scheduling.service.ts - Publishing service → Publishing worker: processes jobs
- Publishing worker → Social platforms: publishes posts
- Analytics worker → Social platforms: collects metrics
- Analytics service → PostgreSQL database: reads results
- User → MCP interface: connects tools
- User → Billing: manages subscription
- User → Reports: generates reports
- User → Approvals: reviews content