# Paid community

An open-source paid community and membership platform for creators and teachers, built with Next.js, TypeScript, PostgreSQL and Stripe. It has free and paid tiers, a feed with comments and reactions, spaces and a course library locked by tier, events with RSVP and reminders, moderation with an audit log, and analytics on members, churn and revenue, as a self-hosted alternative to Circle or Skool.

- Framework: Next.js (JavaScript)
- Category: Apps / Communities and forums
- Creates: a server app and a PostgreSQL database on the Shared tier (1 GB)
- Plan: Lite or above
- Price: Free
- Author: Light Cloud
- Page: https://templates.light-cloud.com/apps/community/creator-community-template
- Updated: 2026-11-21

## Features

- Free and paid tiers defined in src/lib/tiers.ts, paid through Stripe Checkout and managed in the Stripe customer portal
- A feed with Markdown posts, one photo each, comments, Like, Love and Helpful reactions and pinned posts
- Spaces with the lowest tier that opens them and who can post, and a members directory with profiles
- Events online or in person with places, RSVP, reminders 1 hour, 1 day or 1 week before and calendar files
- A course library of Markdown lessons, each course gated by tier, with locked courses showing what they contain
- Moderation: reports grouped in a queue, hide and restore, mute, ban, and an audit log
- Analytics on members, paying members, weekly active members, joins, churn and monthly revenue
- A Bristol baking school demo with about 120 members, and WCAG 2.2 AA in light and dark

## What you need

- A paid plan: deploying creates a PostgreSQL database, which the Free plan does not include
- To run it locally: Node.js 22.12 or newer, npm, and Docker for a local PostgreSQL
- No API keys: without Stripe the owner gives members a tier by hand, and notifications stay in the app
- Optional: STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET, STRIPE_PRICE_MEMBER and STRIPE_PRICE_PREMIUM, all four, for paid tiers
- Optional: RESEND_API_KEY and EMAIL_FROM to email notifications and event reminders

## About

The community is built on the Next.js SaaS starter's accounts and design system: the owner sets the name, about text, FAQ and spaces under Settings, and courses and events from their own pages. Event places are taken in a transaction, so two people cannot both get the last one. Stripe Checkout, the portal and webhooks, Resend and social sign-in have not yet run with real keys, and reminders go out with the next page load, so they can be late on hosting that scales to zero. Each post has one photo, and there are no video or file uploads, mentions, direct messages or lesson progress; events last a single day. Tier names and prices live in src/lib/tiers.ts as code, and the default perks text is written for the Bristol Sourdough School demo.

## Variables

- `AUTH_SECRET`: generated

## Questions

### Is there an open-source alternative to Circle or Skool?

Yes. This community platform is MIT licensed and self-hosted on Next.js, PostgreSQL, Better Auth and Stripe. It has spaces, a feed, events, a course library, paid tiers, moderation and analytics, and you keep your members' data and pay no per-member fees.

### How do I charge for a membership community with Stripe?

Create a monthly price for each paid tier in Stripe, add a webhook to /api/auth/stripe/webhook, and set STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET, STRIPE_PRICE_MEMBER and STRIPE_PRICE_PREMIUM. Members then pay through Stripe Checkout and change or cancel in the Stripe customer portal.

### Can I run a paid community without Stripe?

Yes. Without Stripe keys everything else works, and the owner gives members a tier from their profile, for example after a bank transfer or as a gift. The analytics count those members as paying, and revenue appears once Stripe is on.

### How do event reminders work in a community app?

When members say they are going, they choose a reminder 1 hour, 1 day or 1 week before. It arrives as an in-app notification, and by email when Resend is set up; on hosts that pause idle containers, it goes out with the next page load after it falls due.

### Can I host this community platform without Light Cloud?

Yes. It is a standard Next.js app with no Light Cloud code: any host with Node.js 22.12 and PostgreSQL runs it with npm ci && npm run build and npm start, once DATABASE_URL and AUTH_SECRET are set.
