Skip to content
AI-powered appsNewChat, vision, voice, generationBookings & schedulingAppointments that book themselvesShops & sellingA storefront in every pocketClient & businessRun the operation from one placeCommunities & clubsA home that is not a group chat
Health & wellnessHabits, tracking and calmGames2D, 3D and multiplayerPersonal & toolsThe tool you wish existedInternal toolsThe tool ops never had time for
See all use cases
ArcadeNewPricingSecurity
EngineThe game engine and World EditorHow it worksFrom one sentence to a live productDocsGuides for building and publishingBlogStories, guides and newsChangelogWhat shipped latelyStatusUptime of every serviceSupportGet help from the team
AI-powered appsBookings & schedulingShops & sellingClient & businessCommunities & clubsHealth & wellnessGamesPersonal & toolsInternal tools
See all use cases
ArcadeNewPricingSecurity
EngineHow it worksDocsBlogChangelogStatusSupport
Language
Blog
GuidesNovember 22, 20266 min read

How to Build a Community Forum

A forum is four tables and a lot of judgment. Get threads, roles, reports and notifications right in the first version and the community can grow without you watching every post.

Startbase Team
Editorial ink illustration of a wooden notice board with pinned paper notes joined by threads, one pushpin in ember orange

Key takeaways

  • The core is small: categories, threads, posts and members. Moderation and notifications are where forums succeed or die.
  • Give moderators real tools on day one: hide, lock, pin, ban and a report queue. A forum without them gets abandoned after the first spammer.
  • Notify people about replies to their own threads and mentions, nothing else, and send a digest instead of an email per post.

A community forum needs four things to work: categories that split topics, threads with replies in order, member accounts with roles, and moderation tools that let trusted people hide, lock and remove things without asking you. Add reply and mention notifications and you have a forum people return to. Everything else (reactions, badges, private messages, reputation) can wait for the second version.

Before building, decide one thing: is this a public forum that strangers find through search, or a private space for paying members, customers or a club? Public forums need search-friendly thread pages and much heavier spam defenses. Private ones need sign-in on every page and an invite or approval step. The rest of this guide covers both, and says where they differ.

The data model in plain words

  • members: the account, a display name, an avatar, a short bio, a role (member, moderator, admin), a join date and a status (active, muted, banned). Keep the role on the member, not in scattered flags.
  • categories: name, slug, description, position in the list, and who can post there (everyone, or staff only for an Announcements category).
  • threads: category, author, title, created time, last activity time, reply count, and three switches: pinned, locked and hidden.
  • posts: thread, author, body text, created and edited times, a hidden flag with the moderator who hid it and why. The first post of a thread is just a post, which keeps editing and reporting identical everywhere.
  • reports: who reported, which post, a reason from a short list (spam, harassment, off-topic, other), an optional note, and a status (open, actioned, dismissed).
  • subscriptions and notifications: who follows which thread, and the list of unread alerts per member.

Two fields save a lot of pain later. Store last_activity_at on the thread and update it on every reply, so the category page can sort by "recently active" without counting posts each time. And never delete posts outright from the interface: hide them. Hidden posts keep the thread readable for moderators, and an accidental removal can be undone.

Screens for the first version

  1. 01Forum home: the list of categories with a description, thread count and the latest thread in each.
  2. 02Category page: pinned threads on top, then threads sorted by last activity, with reply count and who replied last. Twenty to thirty per page.
  3. 03Thread page: the first post, replies in time order, a reply box at the bottom and a Follow button. Quote-reply is a nice touch that costs little.
  4. 04New thread: category, title, body. Plain text with simple formatting (bold, links, lists) is enough for version one.
  5. 05Profile: name, avatar, bio, join date and the member's recent threads.
  6. 06Moderation queue: open reports with the reported post in context and one-click actions.
  7. 07Notifications: a bell with unread replies and mentions.

Notice what is missing: no feed, no likes counter on the home page, no leaderboard. Forums are organized by topic, not by popularity, and that is their advantage over a social feed. If you want a feed, you are building something closer to a social network, which is a different product with different problems.

Moderation is the actual product

The first spam wave arrives as soon as a public forum is findable. The forums that survive are the ones where moderators can act in seconds. Build these tools before you invite anyone:

  • Hide a post with a reason. The author sees a short notice; everyone else sees nothing.
  • Lock a thread so it stays readable but takes no new replies. Use it for heated or resolved threads.
  • Pin a thread to the top of its category for rules and announcements.
  • Move a thread to the right category, the most common moderator action on any healthy forum.
  • Mute or ban a member: muted members can read but not post; banned members cannot sign in to post at all.
  • A report button on every post, feeding the queue. Three reports from different members can auto-hide a post until a moderator looks, which protects the forum at night.

Spam defense for new accounts is mostly friction in the right places: hold the first post of a brand-new account for approval, block links until a member has a few approved posts, and rate-limit how many threads one account can start per hour. These rules cost honest members almost nothing and stop most automated spam. Keep a short, visible rules page, and link it from the new thread screen.

Permissions belong in the database, not only in the interface. If a banned member's posting rights are checked only by hiding the reply button, a determined person can still post. On Startbase Cloud, every new table gets row level security with policies that match your sign-in, so "only active members can insert posts, only into unlocked threads" becomes a rule the database enforces. Ask for it in those words.

Notifications that do not become noise

Forums lose members two ways: nobody tells them their question was answered, or everybody tells them everything. Start narrow. Notify a member when someone replies to a thread they started or follow, and when someone mentions them with @name. Auto-follow the threads a member starts or replies to. That covers what people actually care about.

For email, send a digest rather than one email per reply: "3 new replies in threads you follow" once a day, only when there is something new. A scheduled job can build it every morning; Startbase Cloud runs scheduled jobs inside the database, and the Emails section can send through the platform sender or your own domain. Every email needs an unsubscribe link and a settings page where members choose instant, daily or never.

A brief you can paste

Build a community forum for a running club, about 300 members. Members sign in with email. Categories: Announcements (only admins post), Training, Races, Gear, Off-topic. Category pages sort threads by last activity with pinned threads first. Thread pages show posts in time order, with quote-reply and a Follow button. Roles: member, moderator, admin. Moderators can hide posts with a reason, lock, pin and move threads, and mute members. Every post has a Report button with reasons (spam, harassment, off-topic, other); reports go to a moderation queue, and three reports auto-hide a post until reviewed. New accounts: first post waits for approval, no links until three approved posts. Notifications: replies to threads I follow and @mentions, in-app bell plus a daily email digest I can turn off. Enforce all permissions with row level security, not only in the interface.

If you are not sure about the category list or the roles, start in Plan mode: the agent asks questions and proposes the schema before writing anything, which is the cheapest moment to change your mind.

The hard parts, honestly

  • Search. Postgres full-text search on thread titles and post bodies is good enough for thousands of posts. Ask for it once you have content worth searching; it is not a day-one feature.
  • Search engines and public threads. If you want threads found on Google, each thread needs its own URL, a real page title and a description. Startbase web projects are React single-page apps, so follow the SEO guide for sitemaps and metadata, and expect slower indexing than a server-rendered forum.
  • Cold start. An empty forum looks dead. Seed it with ten real threads before launch, and answer every early post yourself within a day.
  • Legal basics. You need terms of use, a way to handle takedown requests and a way for members to delete their account and data. Write these before launch, not after a complaint.

What to leave out of version one

Private messages (they double your moderation surface and attract harassment), reputation points and badges, rich media embeds, nested replies more than one level deep, and realtime "someone is typing" indicators. Each is reasonable later, and each is a week of edge cases now. A forum with fast moderation and good notifications beats a forum with every feature and a spam problem.

For more patterns around groups, members and shared spaces, see the communities use case. When the forum is ready, publish it, share the address with your first members and watch the report queue closely for the first two weeks. To fill it, how to get your first 100 users has practical places to start.

Frequently asked questions

Should I build a forum or use Discord?

Discord is better for fast chat among people who are online together. A forum is better when answers should stay findable for months, when threads should show up in search, and when you want to own the member list and the data. Many communities use both.

How do I stop spam on a new forum?

Hold the first post of new accounts for approval, block links until a member has a few approved posts, rate-limit thread creation, and let reports from several members auto-hide a post. Together these stop most automated spam without bothering real members.

Can a forum be private to paying members?

Yes. Require sign-in on every page and only grant posting access to members with an active status. Payments can run through your own Stripe account connected in Startbase Cloud, with the member status updated when a payment succeeds.

How many moderators does a forum need?

A common rule of thumb is one active moderator per few hundred active members, plus clear rules and good tools. With a report queue and auto-hide on multiple reports, a small team can cover a lot.

On this page

  • The data model in plain words
  • Screens for the first version
  • Moderation is the actual product
  • Notifications that do not become noise
  • A brief you can paste
  • The hard parts, honestly
  • What to leave out of version one

Keep reading

More in Guides
Editorial ink illustration of a kitchen scale with an apple on its pan beside a notepad and a spoon, the apple in ember orange
GuidesNovember 22, 2026

How to Build a Calorie Tracker App

Calorie tracking fails when logging is slow or the numbers are wrong. Get reliable food data, make repeat meals one tap, and be honest that every number is an estimate.

6 min read
Editorial ink illustration of two tin-can telephones joined by a string across a garden fence, the knot in the string in ember orange
GuidesNovember 22, 2026

How to Build a Chat App

Chat looks simple and hides four hard problems: delivering messages live, knowing who is online, tracking who has read what, and keeping strangers from abusing it.

6 min read

Read less. Ship more.

Everything in this post is one prompt away. Describe your app and watch it build.

Start building

Apps, games, backends and publishing from one conversation.

Product

  • Features
  • Use cases
  • Pricing
  • Changelog

Resources

  • Blog
  • Docs
  • Support
  • Status
  • Security

Contact

  • w@startbase.ai
  • X / Twitter
  • LinkedIn
  • Instagram

Legal

  • Terms
  • Privacy

© 2026 Startbase. All rights reserved.