How forem/forem works
Forem is a Rails community platform for publishing and discovering content, participating in discussions, and managing community identities and spaces. The principal web workflow begins with a visitor request, routes it to a feed controller, and returns community content; members also create articles and interact through comments and profiles. The graph preserves major product areas visible in the tree, but sampled evidence is limited: only relationships shown in the README or excerpts are solid, and unverified workflow links are omitted.
Main entry points: routes.rb Request routing · stripe_events_controller.rb Stripe webhook · s3_storage.rb Session object storage · stories_controller.rb Community feeds
Components 19
Web experience
- Request routing
config/routes.rb - Community feeds
app/controllers/stories_controller.rb - Search
app/controllers/search_controller.rb - Public API
app/controllers/api/v1/api_controller.rb
Publishing and discussion
- Article publishing
app/controllers/articles_controller.rb - Article API
app/controllers/api/v1/articles_controller.rb - Comments
app/controllers/comments_controller.rb - Tags and topics
app/controllers/tags_controller.rb
Community management
- Member profiles
app/controllers/profiles_controller.rb - Organizations
app/controllers/organizations_controller.rb - Admin user management
app/controllers/admin/users_controller.rb
Integrations and intelligence
- Agent sessions
app/controllers/agent_sessions_controller.rb - Session object storage
app/services/agent_sessions/s3_storage.rb - Stripe webhook
app/controllers/incoming_webhooks/stripe_events_controller.rb - Embedding workers
app/workers/comments/generate_embedding_worker.rb - Interest embeddings
app/workers/update_user_interest_embedding_worker.rb
Other components
- Visitor or member
- AWS S3
- Stripe
Connections 14
- Visitor or member → Request routing: sends request
config/routes.rb - Request routing → Community feeds: dispatches feed
config/routes.rb - Request routing → Article publishing: dispatches article
config/routes.rb - Request routing → Comments: dispatches comments
- Request routing → Search: dispatches search
- Request routing → Member profiles: dispatches profile
- Request routing → Organizations: dispatches organization
- Request routing → Admin user management: dispatches admin
- Request routing → Public API: dispatches API
- Request routing → Article API: dispatches API article
- Request routing → Agent sessions: dispatches sessions
config/routes.rb - Request routing → Stripe webhook: routes webhook
config/routes.rb - Session object storage → AWS S3: signs storage URLs
app/services/agent_sessions/s3_storage.rb - Stripe → Stripe webhook: sends events