Casnode 2.0 is out. It's a rewrite: Go on the backend, Next.js on the frontend, and an interface modeled closely on Discourse's default theme.
Why it looks like Discourse
Because people already know how to use it. The topic list, the timeline next to a long thread, the composer that docks at the bottom of the screen, the little blue dot on your avatar. If your members have spent any time on an open-source project's forum, they've seen all of this before.
What they haven't seen is the server side. Discourse needs Ruby, Ember, PostgreSQL, Redis and a Docker image measured in gigabytes. That's fine for a large community with someone on call. It's a lot for a small project that just wants a place to answer questions.
Casnode keeps the part your users see and replaces the part you have to run.
Deploying
Download the archive for your platform from the releases page. It's around 30 MB, with builds for Linux, macOS and Windows on both amd64 and arm64. Unpack it, run ./casnode, and sign up: the first account is the administrator. Nothing else to set up first. You'll need Node.js 20 or later on the machine; the Go process starts the Next.js server on its own and proxies to it.
SQLite is the default, so your whole database is one file and backing it up means copying it. If you'd rather use MySQL, PostgreSQL or SQL Server, change two lines of config. Tables are created on first start.
There's no Redis, no background job queue, and no compose file with six services in it. Live updates use long polling handled by the Go process itself. A Dockerfile is included if you prefer containers.
Resource use
The backend is a compiled Go binary and the pages are rendered by Next.js. No Ruby runtime, no Redis, no Sidekiq sitting in memory. A small VPS is enough, and since there are arm64 builds, so is that spare ARM board in your drawer.
SEO
A forum earns most of its long-term traffic from search. Someone pastes an error message into Google and lands on a thread where your community already solved it.
Every topic, category, tag and profile page in Casnode is rendered on the server, so crawlers get real HTML. Canonical URLs, Open Graph tags, JSON-LD (DiscussionForumPosting), sitemaps, RSS feeds and crawler-friendly pagination are built in. Nothing to install.
Accounts and single sign-on
Accounts work out of the box: sign up with an email and a password, log in with your user name or email, reset a forgotten password by email. No identity service to run first.
Single sign-on is there when you want it. Admins add providers on the Logins page: anything that speaks OpenID Connect or OAuth 2.0, with presets for GitHub, Google, Microsoft Entra ID, GitLab, Discord and Keycloak. If your company already has Okta, Keycloak or Casdoor, members log in with the accounts they have. For SAML or LDAP, put an identity server like Casdoor or Keycloak in between.
For an internal forum, turn password logins off and leave single sign-on only.
What's in it
- Topic lists: Latest, New, Unread, Hot, Top (by year, quarter, month, week, day), filtered by category or tag, with pinned topics and endless scrolling; new topics are announced at the top without a reload
- Topics: a post stream that loads in both directions, the timeline, the topic map (views, likes, users, reading time), likes, bookmarks, quote-on-select, edit history, suggested topics; new replies show up as they're posted
- Composer: Markdown with live preview, image and file uploads by paste or drag,
@mentions, drafts, Discourse's[quote],[details]and[poll]blocks, emoji shortcodes; a link on its own line becomes a preview card - Tracking: reading position, notification levels (Watching, Tracking, Normal, Muted), notifications for mentions, replies, quotes, likes and messages, with email when you're away
- Chat: category channels and direct messages, with reactions and replies
- Accounts: sign up, log in by user name or email, password reset by email, rate-limited logins, single sign-on through OpenID Connect, OAuth 2.0 or Casdoor
- People: personal messages, profiles, user cards, a users directory, groups (mention a group, message a group, grant category access by group), 28 built-in badges plus your own
- Search with
@user,#category,tags:,in:title,status:open,order:likesand quick results in the header - Moderation: flags and a review queue, close / pin / archive / unlist / delete / recover, move and merge posts, suspend and silence, staff-only categories
- Branding: brand and header colors, fonts, a homepage banner, header links and custom CSS, all from the admin pages
- English and Chinese UI, dark mode that follows the system, works on phones, Discourse's keyboard shortcuts
The Casbin community forum, forum.casbin.com, already runs on 2.0. We moved over three years of Discord history into it, about 780 topics, so it's a good place to see a real community on Casnode. You can also try posting on demo.casnode.com.
Coming from 1.x
2.0 replaces both the code and the database tables, so a 2.0 install starts empty. There's no in-place upgrade. If you run a 1.x forum, leave it running and set up 2.0 as a new site.
Links
- GitHub: https://github.com/casnode/casnode
- Demo: https://demo.casnode.com
- Download (currently v2.1.0): https://github.com/casnode/casnode/releases/latest
- Discord: https://discord.gg/d8dsAWgn43
Casnode is Apache-2.0 licensed. It's an independent implementation inspired by Discourse's interface and contains no Discourse code.
Top comments (0)