← All templates

Discussion Boards

Communication · React + Node (Express) · 20 @molecule/* packages

Discourse-like forums with categories, threads, moderation, markdown, and user reputation — with built-in Stripe-backed subscription tiers

Open in Molecule

What is inside

  • auth
  • search
  • moderation
  • markdown
  • categories
  • reputation
  • subscriptions

Screens (15)

  • Landing /
  • Login /login
  • Signup /signup
  • ForgotPassword /forgot-password
  • ResetPassword /reset-password
  • CategoriesList /c (signed in)
  • CategoryDetail /c/:slug (signed in)
  • ThreadView /t/:id (signed in)
  • Compose /compose (signed in)
  • UserProfile /u/:username (signed in)
  • Settings /settings (signed in)
  • Search /search (signed in)
  • Notifications /notifications (signed in)
  • Bookmarks /bookmarks (signed in)
  • ModerationQueue /moderation (signed in)

Data model (13 tables)

  • activities — id, actorId, action, resourceType, resourceId, metadata, createdAt
  • activity_seen_status — userId, lastSeenActivityId, updatedAt
  • bookmarks — id, user_id, target_type, target_id, created_at, updated_at, updatedAt
  • categories — id, slug, name, description, color, icon, sort_order, thread_count, …
  • comments — id, resourceType, resourceId, userId, parentId, body, editedAt, createdAt, …
  • devices — id, createdAt, updatedAt, userId, name, pushPlatform, pushSubscription, hasPushSubscription
  • follows — id, followerId, targetType, targetId, createdAt, updatedAt
  • moderation_reports — id, target_type, target_id, reporter_id, user_id, reason, description, status, …
  • posts — id, topic_id, author_id, user_id, body_markdown, parent_post_id, is_solution, edited_at, …
  • reactions — id, resourceType, resourceId, userId, type, createdAt, updatedAt
  • resource_tags — id, tagId, resourceType, resourceId, createdAt
  • tags — id, name, slug, color, description, createdAt, updatedAt
  • topics — id, slug, title, body_markdown, category_id, author_id, user_id, status, …

API (8 handlers)

  • aliases api/src/handlers/aliases.ts
  • bookmarks api/src/handlers/bookmarks.ts
  • categories api/src/handlers/categories.ts
  • moderation api/src/handlers/moderation.ts
  • notifications api/src/handlers/notifications.ts
  • posts api/src/handlers/posts.ts
  • topics api/src/handlers/topics.ts
  • users-2fa api/src/handlers/users-2fa.ts

Subscription tiers

free / pro / team — gated by: maxCategories, maxPosts, maxTopics, advancedFeatures, canExport, retentionDays

Built from 20 @molecule/* packages

Browse all @molecule/* packages →

Required secrets

  • DATABASE_URL PostgreSQL connection string
  • MAILGUN_API_KEY Mailgun API key for notifications

The @molecule/* packages are Apache-2.0. The app you build from this template is yours to export and self-host. Licensing