In this guide, you’ll discover the world of onchain social applications and learn how to build interactive Mini Apps that live directly inside social feeds, creating seamless user experiences without traditional platform limitations.
Traditional social media follows a familiar but limiting pattern: users sign in with email addresses, scroll through centralized feeds, and click links that redirect them away from the conversation. While this model works, it has fundamental limitations that onchain social aims to solve.
Traditional Social
Platform-owned identity and content with limited user control
Onchain Social
User-owned identity, programmable feeds, and embedded applications
Mini Apps are lightweight, expressive web applications that live directly inside social feeds. They launch instantly without installation and provide rich, interactive experiences that respond to your onchain identity.What makes Mini Apps special:
Embedded experiences that don’t redirect users away from conversations
Social context awareness - they know who opened them and from where
Onchain identity integration with automatic personalization
Native feel within social platforms
Use cases include:
Interactive polls and real-time voting
Social games and entertainment
E-commerce with instant checkout
DeFi interfaces and portfolio management
NFT showcases and trading
Collaborative decision-making tools
Mini Apps offer developers direct access to social distribution - you’re building inside the conversation, not trying to pull users away from it.
The fastest way to build a Mini App is with MiniKit, which handles authentication, social context, and onchain integrations automatically.Create a new Mini App:
Your Mini App should now be running at http://localhost:3000 with a fully functional social interface.
What you get out of the box:
Complete frontend and backend scaffold
Built-in support for Farcaster identity and notifications
Native integrations with Base blockchain and OnchainKit
Responsive design optimized for mobile social feeds
Development tools for testing and debugging
The MiniKit scaffold includes example components and pages to help you understand the architecture quickly.
2
Understand Social Context
Mini Apps have access to rich social context that traditional web apps lack. This context makes personalization effortless and enables intelligent interactions.Access user and social context:
Copy
Ask AI
import { useMiniKit } from "@coinbase/onchainkit/minikit";export default function App() { const { context } = useMiniKit(); // Verified user information (always available) const userFid = context?.user?.fid; // Additional user data (when available) const username = context?.user?.username; const displayName = context?.user?.displayName; const pfpUrl = context?.user?.pfpUrl; // Client information const isAdded = context?.client?.added; // Whether user has added this Mini App const location = context?.location; // Where the Mini App was launched from return ( <div className="mini-app"> <h1>Welcome{displayName ? `, ${displayName}` : ''}!</h1> <p>Your FID: {userFid}</p> {username && <p>Username: @{username}</p>} {isAdded && <p>✅ You've added this Mini App</p>} {location && <p>Launched from: {location}</p>} </div> );}
Transform your existing Next.js application into a Mini App without major restructuring. The process is straightforward and doesn’t require rebuilding your entire application.