Loading…

    Build a Reddit Clone App
    With Communities, Votes and Threads

    Describe your own forum and Fastshot builds it: communities anyone can create, text, link and image posts, upvotes and downvotes, nested comments, karma and moderator tools. Sort by Hot, New and Top. About 5 to 7 minutes to a first version.

    Communities and postsVotes and karmaThreaded comments
    TL;DR

    How do you build a Reddit clone app?

    Describe communities, posts, votes and nested comments. Fastshot (fastshot.ai) builds a React Native forum app for iOS and Android and saves communities, posts, votes and comments in Supabase, with a score and a Hot ranking computed in the database. Try it in the browser preview, then on your phone through Preview on Device. For a text-only layout, see the Twitter clone app.

    Last updated: November 30, 2026

    What Does Reddit Actually Do?

    Reddit is a large community made of thousands of smaller ones. Those smaller communities, called subreddits, are created and moderated by users. A community can be public, restricted, private or premium-only, and each one has its own topic, rules and moderators. Members join as many as they like, and the home feed gathers posts from the communities they follow.

    Votes run the site. Every post and comment has upvote and downvote arrows, and those votes determine what is displayed and surfaced. Karma reflects the votes a member receives on posts and comments. Posts can be sorted several ways, and the Hot sort prioritizes posts that have recently been getting upvotes and comments.

    Four ideas carry the product: communities with their own rules, posts that rise by vote, comments nested as threads and moderators who keep order. A Reddit clone copies those four around one topic area. A first release for a single interest needs nothing else.

    Reddit Features Mapped to Your App

    Each Reddit behavior becomes a screen in your app and a table or bucket in Supabase.

    Reddit featureHow it ships in your appWhat it stores
    CommunitiesA Communities tab with search, a Create community form and Join and Leave buttonscommunities: name, description, icon_path, visibility (public, restricted, private); memberships: community_id, user_id
    Home feedPosts from joined communities with a sort bar for Hot, New and Topposts: community_id, author_id, title, body, link_url, image_path, score, comment_count, created_at
    Post typesA composer with Text, Link and Image tabs and a community pickerposts.kind; image uploads go to image storage
    Upvote and downvoteUp and down arrows with a live score between them; a second tap removes your votevotes: user_id, target_type, target_id, value (1 or -1); a trigger keeps posts.score and comments.score up to date
    Threaded commentsIndented replies with a collapse bar on each branch and a Reply boxcomments: post_id, parent_id, author_id, body, score, created_at
    Hot rankingHot sort ranks posts by score weighted against ageA database view with hot_rank computed from posts.score and posts.created_at
    KarmaA number on every profile and a breakdown of post karma and comment karmaA view that sums votes by author across posts and comments
    ModerationA mod menu to remove or pin a post, lock comments and ban a member from one communitycommunity_mods: community_id, user_id; bans: community_id, user_id; reports

    Screens in Your Forum App

    Fastshot lists these screens in the plan before it writes code, and you approve the list first.

    Sign up with a username

    Email, Google or Apple sign-in through Supabase auth, then a public username. The email never shows on the profile.

    Home feed

    Posts from joined communities with a Hot, New and Top sort bar and a floating New post button.

    Community page

    Banner, description, rules, member count, Join button and the community feed with pinned posts first.

    Post detail

    Title, body or image, vote arrows and the full comment tree with collapse bars.

    Create post

    Text, Link and Image tabs, a community picker and a title limit.

    Profile and karma

    Username, post karma, comment karma and tabs for posts, comments and saved items.

    Mod tools

    A queue of reported posts with Approve, Remove and Ban actions for community moderators.

    Paste This Prompt Into Fastshot

    It builds an original forum app called Threadly with its own name and look. Rename it before you publish.

    threadly-prompt.txt
    Build a community forum app called Threadly for iOS and Android.
    
    Auth: email, Google and Apple sign-in with Supabase. Users pick a public username; never show email addresses. Guests may read posts and communities; posting, voting and commenting need sign-in.
    
    Screens
    - Home: posts from joined communities with a sort bar: Hot, New, Top (Top has Today, Week, All time).
    - Communities: search, create (name, description, icon, visibility public, restricted or private), join and leave.
    - Community page: banner, rules, member count, pinned posts then the feed.
    - Create post: Text, Link and Image tabs, community picker, title up to 200 characters.
    - Post detail: vote arrows with the score, the post, and nested comments with a collapse bar and a Reply box.
    - Profile: username, post karma, comment karma, tabs for Posts, Comments, Saved.
    - Mod tools: reported queue, pin, remove, lock comments, ban from the community.
    
    Tables: communities, memberships, posts (community_id, author_id, kind, title, body, link_url, image_path, score, comment_count, created_at), comments (post_id, parent_id, author_id, body, score), votes (user_id, target_type, target_id, value), saved_posts, community_mods, bans, reports.
    A trigger keeps score up to date when a vote changes. A view hot_posts ranks posts by score weighted against age.
    
    Use Supabase realtime on comments so replies appear live.
    Row level security: only members read private communities; banned users cannot post there.
    Add a Report button on posts and comments and a Block action on profiles.
    Send a push notification when someone replies to your post or comment.
    Design: light and dark themes, orange accent, compact post rows.

    How to Build Your Forum App

    1

    Pick one topic and three starter communities

    A forum feels alive when each community is narrow. Choose a topic area and write three community names and rules, for example Beginners, Gear and Show and tell.

    2

    Paste the prompt and approve the plan

    Fastshot asks whether anyone may create a community or only admins, then writes the list of screens. Approve it and the first version builds.

    3

    Connect Supabase

    Communities, posts, comments and votes tables appear with the score trigger and the hot_posts view. The backend lesson shows the connect step.

    4

    Vote and reply on two accounts

    Open the app in the browser preview and on your phone through Preview on Device as two users. The QR code opens your project in Fastshot Learn on iPhone (App Store) or Fastshot Companion on Android (Google Play). Upvote a post, add a reply two levels deep and watch the score and the thread update on the other screen.

    5

    Set up moderation and reply alerts

    Report a post, remove it from the mod queue and ask for push notifications on replies. Check alerts in an installed build.

    6

    Publish to both stores

    Build the IPA and AAB, send them to TestFlight and Google Play with your own accounts, and use the Google Play lesson for the Android listing.

    Make It Your Own

    Reddit is general, so beat it with one topic. A forum for one game, one sport, one city, one profession or one hobby gives people a home that general sites bury under noise.

    Make the rules fit your people. A members-only forum with verified accounts, a weekly question thread, flair for experts, a bounty on hard questions or a paid tier with private communities are all columns and tables on top of the same base. A subscription can fund the moderators.

    Brand it before you publish. Choose a new name, logo and mascot, avoid the orange alien, and write your own store description. A clear niche and a distinct identity make the app easier to find than another general forum.

    Forum and Community Apps People Built With Fastshot

    Published community apps with discussions and groups. Open one to see the screens.

    Chatsphere

    A text-first social platform inspired by Reddit, with emoji reactions, threaded comments and group spaces for focused talk. See Chatsphere in the gallery.

    First Brothers Club PH

    A members-only social forum with real-time discussions and event coordination for one club. See First Brothers Club PH in the gallery.

    Frequently Asked Questions

    How do I make my own Reddit-style forum app?

    Define the unit first: a community that holds posts, and a post that holds comments. Paste the prompt on this page into Fastshot, connect Supabase and approve the plan. The first forum is ready in about 5 to 7 minutes, and sorting, moderation and voting are all adjustable by chat.

    How do upvotes and downvotes work in the database?

    A votes table has one row per user and post, with a value of 1 or minus 1 and a unique pair so nobody votes twice. A database trigger adds the values into a score column on the post. Changing a vote updates the row, and removing it deletes the row.

    How do I build nested comment threads?

    Give each comment a parent_id that points to another comment, or to nothing for a top-level comment. The app loads all comments of a post and builds the tree in memory, indenting each level and collapsing a branch when you tap its bar.

    How does the Hot sort work?

    Reddit describes Hot as favoring posts that recently got upvotes and comments. A simple version divides a post score by its age, so a new post with a few votes can beat an old post with many. Store the result in a database view and sort by it.

    Can people post anonymously, or browse without an account?

    Yes to both. Show only a username, never an email, so a member stays anonymous to others. For guests, allow anyone to read posts and communities, and require sign-in to post, vote or comment, which a Supabase read policy for visitors does cleanly.

    How do karma and moderators work?

    Karma is the sum of votes on everything a member posted, and a profiles view can total it on demand. Moderators are rows in a community_mods table; they can remove posts, pin one and ban a member from that community without touching the others.

    Can I publish a community forum on the App Store and Google Play?

    Yes. Fastshot builds the APK, AAB and IPA on its own machines and sends iOS builds to TestFlight from Publish. Publish with your Apple Developer account ($99 a year) and Google Play account ($25 one-time). Add Report and Block buttons before you submit.

    Start Your Community Forum Today

    Paste the prompt, create your first community and cast your first vote on your own phone.

    No coding needediOS and Android

    About the Author

    Elvira Dzhuraeva is an expert in AI mobile app development and React Native. A former Senior Product Manager at Google specializing in AI/ML and Generative AI, she is the Founder of Fastshot (YC-backed) and a founding contributor to Kubeflow.

    AI Mobile App DevelopmentReact NativeAI Developer ToolsVibecodingAI/ML Ops