Subsocial React Example is an open-source Next.js and Material-UI template that demonstrates how to build a decentralized social media dapp on the Subsocial network using the official JS SDK. The project is a simplified implementation of Subsocial Web App, giving developers a minimal codebase to study and extend for their own blockchain-based social platforms.
What is Subsocial React Example?
Subsocial React Example is a starter project from the dappforce organization, built with Next.js and Material-UI (MUI). It takes the Subsocial JS SDK and wraps it in a React application that can read and write social content on the Subsocial chain. The output is a working web app that can be customized into a Twitter-like, Reddit-like, or Medium-like dapp. It runs on any platform that supports Node.js and can be deployed to Vercel or similar static hosting services.
Key Features
- Next.js framework — Built on Next.js with support for server-side rendering and static generation; the project uses
yarn devto start a development build. - Material-UI (MUI) components — Uses MUI for the user interface, providing a library of styled React components out of the box.
- Subsocial JS SDK integration — Includes the official JS SDK so your app can connect to the Subsocial network and interact with posts, profiles, and social actions.
- Gitpod cloud development — One-click launch in Gitpod, which provisions a fully configured development environment for you.
- Vercel deployment ready — The README explains how to deploy to Vercel by integrating CI/CD from your GitHub repository.
- Simplified codebase — Strips down Subsocial Web App to its core functionality, making it easier to learn the SDK and build your own features.
- Twitter/Reddit/Medium clone potential — The repository is tagged as a twitter-clone, reddit-clone, and medium-clone, signaling its intended use cases for different social dapps.
Who is it for?
- Web3 developers — who want to learn how to integrate Subsocial's decentralized social primitives into a React app.
- Blockchain dapp founders — who need a working starting point for a social network and want to skip initial boilerplate.
- Students of blockchain development — who can run the project locally, read the code, and experiment with on-chain social interactions.
- Subsocial community builders — who want to contribute to the ecosystem or build niche social communities on Substrate.
What can you do with it?
- Build a decentralized Twitter clone — use the template to create a microblogging platform where posts and interactions are recorded on the Subsocial chain.
- Create a Reddit-style community app — extend the template with topics, rankings, and threaded comments to power community discussions.
- Launch a Medium-like publishing dapp — use the social Web3 foundation to publish long-form content with ownership on-chain.
- Learn the Subsocial SDK — the codebase serves as a reference for the essential API calls you need to read and write social data.
How does it work?
Clone the repository, install dependencies with npm i or yarn, and run yarn dev to start the development server. The project connects to Subsocial's network via the JS SDK and renders a working social interface. For deployment, the README points to Vercel's guide for deploying Next.js apps.
FAQ
Is Subsocial React Example free to use?
The template is publicly hosted on GitHub, so you can clone it without cost and start building. Check the repository for licensing details if you plan commercial redistribution.
What tech stack does Subsocial React Example use?
It uses Next.js for the React framework, Material-UI for components, and the Subsocial JS SDK to connect to the Subsocial blockchain network. The project runs with yarn dev and can be deployed to Vercel.
How do I run Subsocial React Example locally?
Clone the repository, run npm i or yarn to install dependencies, then execute yarn dev in the root directory to start the development build.
Can I deploy Subsocial React Example to Vercel?
Yes. The README provides a guide to deploy the Next.js project to Vercel by integrating CI/CD from your GitHub repository.
Does Subsocial React Example support Gitpod?
Yes. The repository includes a Gitpod configuration that opens a ready-to-use development environment in the cloud, which can be launched from the README page.




