This documentation portal provides a unified view of the capabilities and integration patterns across the Pi Network SDK stack for browser-based and modern JavaScript/TypeScript applications.
pi-sdk.js): served at https://sdk.minepi.com/pi-sdk.js, loaded client-side via <script>, and exposed as window.Pi with all protocol features (authentication, payments, ads, wallet, native utilities, etc).pi-sdk-js: A TypeScript/ESM wrapper for testable, object-oriented usage across local apps and frameworks (Node, React, Vue, Next.js, etc). It simplifies safe access to the browser SDK.pi-sdk-react: Framework-specific React components for drop-in usage and best-practices integration, built over pi-sdk-js.pi-sdk-express: A combined frontend and backend reference implementation using Express as the backend framework and React frontend (uses pi-sdk-react).pi-sdk-nextjs: A combined frontend and backend reference implementation using Next.js as the backend framework and React frontend (uses pi-sdk-react).pi-sdk-rails: A combined frontend and backend reference implementation using Rails as the backend framework and provides both React and Stimulus frontend support (uses pi-sdk-react).window.Pi browser SDK