L
💬Community & Forum

Community Platform

Build a Discourse-style community with threads, replies, upvotes, categories, and member profiles.

Threads & repliesUpvotes & badgesReal-time updatesMod toolsMember profilesStripe paywall (optional)

The Prompt

✨ Ready-to-use Lovable Prompt

Open Lovable
Build a community platform with the following features:

**Discovery:**
- Homepage showing Latest and Trending threads in a two-column layout
- Category filter in a sidebar: Announcements, General, Help, Show & Tell, Off Topic
- Search bar that searches thread titles and body content

**Threads:**
- Create a new thread: title, category, body (rich text with basic markdown — bold, italic, links, code blocks, images)
- Thread detail page: original post, threaded replies (up to 2 levels deep), upvote button on every post, reply editor at the bottom
- Mark best answer (for Help category)
- Close/lock thread (mods only)

**Members:**
- Sign up with email + chosen username + avatar upload
- Profile page: avatar, bio, joined date, thread count, reply count, badges earned
- Follow other members; feed of "threads from people I follow"

**Gamification:**
- Badges earned for: First Post, 10 Replies, Helpful (5 upvotes on one reply), Regular (posted 10 days in a month)
- Reputation points: +2 for upvote, +10 for best answer
- Leaderboard page: Top members this week

**Moderation:**
- Report a post — mods see a queue
- Mod role can edit/delete any post, close threads, ban users

**Design:**
- Clean, readable typography (serif for body, sans for UI)
- Light by default, dark mode toggle
- Mobile-friendly — threading collapses cleanly on small screens

Store everything in Supabase. Real-time updates for new replies using Supabase Realtime. RLS so deleted users' content is hidden but not hard-deleted.

How to Use This Prompt

  1. 1

    Copy the prompt

    Click the 'Copy Prompt' button above to copy the full prompt to your clipboard.

  2. 2

    Open Lovable

    Go to lovable.dev and create a new project. If you're on the free plan, you get 5 credits/day.

  3. 3

    Paste and send

    Paste the prompt into the Lovable chat input and press enter. Lovable will start building your app immediately.

  4. 4

    Iterate and refine

    Review what Lovable builds. Use follow-up prompts to refine the design, add features, or fix anything that's off.

Pro Tips

  • Specify 'Supabase Realtime for new replies' — static communities feel dead
  • Ask for 'rate limiting on thread creation' to prevent spam (e.g. max 5 new threads per hour per user)
  • Include badges and reputation from the start — they drive 10x more engagement than Post buttons alone

Prompt Variations

Different versions of this prompt for specific use cases.

Paid community

Build a paid community gated by Stripe subscription (£10/month). Non-members see the homepage and thread titles but get a paywall on thread detail. Members get a badge and private members-only category.

Niche community

Build a community for [your niche — e.g. indie hackers, home gardeners, sourdough bakers]. Customise categories to the niche. Add a weekly challenge feature: mods post a prompt, members post responses, top-voted response wins a badge.

Frequently Asked Questions

Can I gate my Lovable community behind a paid subscription?
Yes. Ask Lovable to 'integrate Stripe subscriptions and require an active subscription to post or view thread detail pages.' Use Supabase RLS to enforce the paywall on the database side.
How do I prevent spam on a public community?
Ask Lovable to add 'email verification, rate limiting on post creation, a honeypot field on signup, and a report button that sends posts to a mod queue.' These four layers stop 95% of bot spam.

Ready to build?

Copy the prompt above, then paste it into Lovable. Your app starts building instantly.

Try Lovable Free