-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Comprehensive documentation and development resources for building robust applications on the Pi Network. Enhance your understanding of Pi's APIs, SDK, and best practices to create seamless user experiences.
Now featuring Hybrid App Support! Build applications that work seamlessly in both regular browsers (Web2) and Pi Browser (Web3) environments.
Let's build great Pi Network applications together!
- Pi Network API Documentation: Explore API endpoints for managing pioneer data, payments, and more API Reference
- Pi App Platform SDK Guide: Learn to integrate Pi functionality directly into your app SDK Reference
- Pi Browser Detection Guide: Build hybrid apps that work in both Web2 and Web3 environments Pi Browser Detection
- Development Checklist: Follow our checklist for a smooth development process Get Started Checklist
All examples and guides have been updated to support hybrid applications that provide:
- β Smart Pi Browser Detection - Automatically detect if users are in Pi Browser
- β Graceful Fallbacks - Clean UI for non-Pi Browser users with helpful messaging
- β No Scary Popups - Authentication only when users are ready and in Pi Browser
- β Better UX - Seamless experience across Web2 and Web3 environments
- β Production Ready - Proper error handling and cleanup
- Broader Reach: Your app works for both Web2 users and Pi Network pioneers
- Clean UX: No confusing authentication popups in regular browsers
- Future-Proof: Ready for Pi Network's mainstream adoption
- Easy Integration: Drop-in solutions for React and vanilla JavaScript
- Basic Login and Pay - Updated with Pi Browser detection and hybrid support
- Python Login Pay Subscriptions - Flask backend with hybrid frontend
- Pi Network SDK Example - Comprehensive example with all Pi features
All examples now follow the hybrid app pattern described in our Pi Browser Detection Guide.
π View All Examples - Complete code samples and implementation guides
Follow these steps to register, configure, and launch your Pi Network app.
-
Download the Pi App:
-
Register for an account:
- Use a referral code. You can find them online.
-
Download and Sign into the Pi Browser:
-
Verify Email Address: (Required)
- Enter the Pi Mining App, click the ββ°β menu, and select "Profile".
-
Register your App and Configure Hosting:
- Enter App Name, Description, and select the Network (See our Pi Mainnet vs Testnet Page).
- Set up hosting on a third-party provider or Pi Network's Pi Engine.
-
Create a Wallet:
- Create a wallet at wallet.pi. Confirm access before continuing.
-
Code and Configure Your App
- Important: Use our updated Examples as a starting point, especially for hackathons.
- Hybrid App Architecture: Implement Pi Browser Detection for broader reach and better UX.
- Development URL: Enter the local host URL for sandbox testing.
-
Sandbox Mode:
- Set the sandbox flag to "true" in your FE code.
- Copy the sandbox code from the Pi Mining App utilities page.
-
Deploy and Validate
- Production URL: Enter your app's live URL.
-
Validate Domain Ownership: Add the provided key to a
validation-key.txtfile at your domain's root.
-
Test a Pi Transaction
- Process a User-to-App transaction to confirm everything is connected.
Prerequisites:
- Pi KYC Completion
- Mainnet Wallet
- Create a Mainnet Developer Portal Project
- Verify Mainnet App URL (Must be unique)
- Generate a New API Key (Testnet keys won't work)
- Launch and Test!
- Mainnet Payments: A migrated wallet is required on the user's end.
- Developer Terms of Service: Ensure your app stays compliant.
- π Home - Complete developer handbook
- π Community Support - Get help from Pi developers
- π Authorization - Authentication & security patterns
- π API Reference - Complete REST API documentation
- β‘ SDK Reference - JavaScript SDK comprehensive guide
- π Data Types - Object structures & schemas
- π Pi Browser Detection - Build hybrid Web2/Web3 apps
- π Migration Guide - Upgrade to hybrid architecture
- π» Code Examples - Production-ready samples & templates
- π What is PiNet? - Cross-platform app accessibility
- π³ What is PiWallet? - Pi Network wallet integration
- π° Payments Overview - Transaction handling guide
- π¬ Chat Rooms for Apps - Community engagement features
- π Mainnet vs. Testnet - Environment selection guide
- π Developer Terms - Terms of service
- βοΈ Social Chain ToS - Platform terms
- π Whitepaper - Pi Network foundations