Open Source Forum Software
A public forum is really two things at once: a live conversation and a permanent, searchable archive that answers the same question for the thousandth newcomer. What breaks communities is rarely the software's looks and almost always the slow work underneath it - fighting spam, routing email, keeping search useful as posts pile into the millions. Open source forum software matters here because the whole archive - every account, thread, and attachment - sits in a database you run and can export in full, so a pricing change or a shuttered host can never wall off the history your members built together, and moderation stays under your own policy rather than a vendor's.

Discourse
Open-source community discussion platform with self-hosting, built-in chat, and themes

Forem
Open source software for building online communities, the platform behind DEV Community

Flarum
Simple, extensible forum software for building online communities

NodeBB
Node.js forum software with real-time discussions, web socket notifications, and Redis, MongoDB, or PostgreSQL storage

Lemmy
Decentralized link aggregator and forum for federated communities, with self-hosted servers

Vanilla
Customizable forum software for building branded community discussions and customer communities

Misago
Modern forum software in Python with Django, React.js, and OAuth login for 50+ providers

phpBB
Free open-source bulletin board written in PHP for running discussion forums

MyBB
Free and open source forum software written in PHP with MySQL, PostgreSQL, and SQLite support
Our picks
Pick by the kind of community you are building.
Best for a modern support or product community: Discourse Discourse runs long-form discussion topics with built-in real-time chat and a deep theme-and-plugin system, including Discourse AI and a Data Explorer plugin for SQL analysis of your forum data. It runs on Rails with PostgreSQL and Redis, self-hosted or on official hosting, and has been developed actively for over a decade.
Best lightweight self-hosted board: Flarum Flarum is deliberately simple and fast, with a PHP back end, a small Mithril front end, and no heavy dependencies, so it deploys quickly and stays easy to run. Its responsive layout works on desktop and mobile out of the box, and an Extension API handles customization. A clean, MIT-licensed board without operational weight.
Best for a federated, Reddit-style community: Lemmy Lemmy is a link aggregator and forum for the fediverse: members subscribe to communities, post links or discussions, vote, and comment, and can follow communities on other servers. Each server sets its own moderation policy, with public mod logs and bans. Written in Rust, it self-hosts with Docker or Ansible, down to a Raspberry Pi.
Best when sign-in flexibility matters: Misago Misago pairs a Django back end with a React front end and sign-in through more than fifty OAuth providers, with email activation and Q&A challenges guarding signup. It offers categories with unlimited subcategory depth, Markdown or BBCode posts, polls, attachments, and a moderation queue, plus an OAuth2 client and JSON API to embed in an existing site.
Match the platform to how your community talks
The discussion model is the decision that touches every member, and this list spans four of them. Discourse and Flarum run long-lived topic threads with trust levels, quoting, and stable permalinks, which suit support communities and product forums. Misago, phpBB, MyBB, and Vanilla keep the classic bulletin-board shape of categories and subforums that many users still expect. Forem is built around published articles with discussion attached, the model behind dev.to. Lemmy is different again: a federated link aggregator where people vote and comment across independently run servers. Pick the shape first, because retrofitting a Q&A or article flow onto thread software is where most projects stall.
Moderation and identity are the second axis, and public forums live under constant pressure from spam and bad-faith accounts. Compare registration controls, single sign-on, role granularity, post-approval queues, and moderator audit trails. Discourse leans on trust levels that grant abilities as members earn them, while Misago guards signup with email activation, Q&A challenges, and over fifty OAuth providers. Check how deleted posts, banned accounts, and private messages are retained, since that shapes both moderation and compliance.
Finally, weigh operations and the exit path together. A forum accumulates posts, avatars, attachments, reactions, and internal links that are painful to rebuild, so check the database it needs, the file-storage model, and whether imports preserve authorship and timestamps. NodeBB can run on Redis, MongoDB, or PostgreSQL; the PHP boards fit ordinary LAMP hosting. Confirm there is a documented export and a working API before you commit a community's years of history to it.
Related categories
Frequently asked questions
What is the difference between a threaded forum, a Q&A community, and a link aggregator?+
The three shapes solve different problems. A threaded forum like Flarum or phpBB organizes talk into categories and long-running topics, best when conversations should stay findable for years. Forem centers on published articles with comments, suiting a writing-driven community like dev.to. Lemmy is a federated link aggregator where members vote on submitted links across independent servers, closer to Reddit than to a support board. Match the shape to how your members actually want to talk.
How do trust levels and moderation queues actually reduce spam?+
Trust levels grant abilities gradually, so a brand-new account cannot post links, images, or dozens of replies until it has read and participated a little. Discourse builds this in and pairs it with flag handling and post-approval queues. Combined with new-user rate limits, email activation, and moderator audit trails, layered friction like this stops most automated spam without punishing genuine newcomers. A single CAPTCHA rarely does that on its own.
Can I run a forum with single sign-on from my existing accounts?+
Often yes, but the depth varies. Misago signs members in through more than fifty OAuth providers and can wire into an existing site through its OAuth2 client and JSON API. Vanilla is built around single sign-on and embedding so the forum shares your main site's accounts. Test more than login: confirm that group-to-role mapping and disabling an upstream account behave correctly, since SSO that works for sign-in but not for role changes creates messy access problems.
Which of these forums support real-time chat or live updates?+
A few. Discourse ships built-in real-time chat alongside its threads, and NodeBB is built on web sockets so posts and notifications update live without a refresh. Lemmy also live-updates comment threads. The classic PHP boards like phpBB and MyBB are page-based instead, which is perfectly fine for asynchronous discussion but will not feel like a chat room. Decide whether your community wants live conversation or a slower, archival pace before choosing.
How do I import an existing forum without losing authorship and timestamps?+
Plan for two phases: a technical import and a community cleanup. Posts, users, categories, timestamps, and attachments are the core objects, and the better importers preserve authorship and post dates so old threads still make sense. Passwords may not carry over if the old system hashed them differently, and private messages, reactions, and custom profile fields often need mapping. Run a test import on a copy and compare several months of real threads before you announce a cutover date.
Do I need native mobile apps, or is a responsive web forum enough?+
Not necessarily. A responsive web forum that handles reading, posting, notifications, and moderation on a phone is enough for many communities, and Flarum is built to be responsive out of the box. Native apps mainly help with push notifications and habitual daily use, at the cost of extra release and support work. Decide what you actually need - mobile-friendly posting, app-store presence, or reliable notification delivery - rather than assuming an app is mandatory.
Can members take part by email?+
It depends on the software. Some forums send email notifications only, while others let members reply by email or start topics from mailing-list-style messages. If email is central to your community, test threading, quoted-text cleanup, unsubscribe handling, and bounce processing. Remember that reliable outbound mail also needs correct DNS records and a warmed sender reputation; the forum software cannot fix a poorly configured mail domain on its own.