SDK
Add Login with Proma and credits to any app in minutes.
The Proma SDK lets external apps integrate with Proma's OAuth, credits, and AI gateway. It ships as a single npm package with optional React bindings.
What's included
- OAuth 2.0 PKCE flow — Login with Proma in any JavaScript or TypeScript app
- Credits API — check balance and spend micro-credits programmatically
- AI gateway — stream Gemini responses billed to the user's credit balance
- React bindings —
PromaProvider,usePromaAuth, and a drop-inLoginWithPromabutton
Sections
- Installation — install the package and obtain credentials
- Quick Start — log in a user in four steps
- PromaClient — full API reference
- React — provider, hooks, and components
- Credits API — balance and spending
- AI API — streaming and non-streaming chat
Guides
- Integrate with Lovable — drop Proma into a Lovable project in six steps