Puter.js
A serverless, keyless JavaScript SDK that gives AI-generated and hand-coded web apps a production-ready backend with auth, storage, database, AI gateway, and more.
At a Glance
About Puter.js
Puter.js is a JavaScript SDK built on top of Puter, the open-source "Internet Computer" licensed under AGPL-3.0. It lets developers ship full-stack web apps without provisioning servers, managing API keys, or configuring infrastructure — everything from user authentication to 500+ AI models is available from a single <script> tag. The project's GitHub repository has accumulated over 42,000 stars and the developer portal reports powering more than 130,000 apps.
What It Is
Puter.js is a frontend-first backend SDK designed to make building production-ready web apps as simple as writing a prompt. It wraps a comprehensive set of cloud services — auth, NoSQL database, object storage, serverless workers, real-time peer communication, TCP/IP networking, and an AI gateway — behind a small, consistent JavaScript API. Because the SDK is keyless and serverless by design, there are no credentials to obtain, rotate, or protect, and no backend code to deploy.
The "User-Pays" Model
The most distinctive aspect of Puter.js is its infrastructure cost model. According to the developer portal, developers pay $0 for infrastructure regardless of user count. Instead:
- Every Puter account includes its own allowance of storage, database, and AI usage.
- When an app calls
puter.ai.chat()or writes to the database, usage is metered against the signed-in user's own Puter account. - Users who exceed their allowance pay Puter directly; the charge never flows through the developer.
- App-level shared resources (e.g., a serverless worker) can run on the developer's own account.
This model eliminates the traditional scaling problem where infrastructure costs grow linearly with user count.
AI Gateway and Security Architecture
The AI Gateway is one of Puter.js's headline features, providing access to 500+ models from OpenAI, Claude, Gemini, Grok, and others through a single unified call. Because there are no API keys embedded in the frontend or backend, the attack surface for credential theft is eliminated. The Puter security layer sits between the app and AI providers, handling authentication, per-user scoping, rate limiting, abuse filtering, and DDoS protection automatically.
Platform Capabilities
Puter.js exposes a broad set of services through its SDK:
- AI Gateway — 500+ models, unified API
- Auth — user authentication and account management
- Storage — scalable cloud file system
- Database — serverless NoSQL key-value store
- Serverless Workers — run backend logic on demand
- Peer — real-time communication
- Networking — TCP/IP in the browser
- Hosting — instant static site hosting
- Image/Video Generation, Text-to-Speech, Speech-to-Text, OCR — media AI APIs
Designed for AI Coding Agents
The developer portal positions Puter.js explicitly as the backend for AI-generated apps. Because there is nothing to configure — no API keys, no server provisioning, no SDK setup — AI coding agents can produce a working full-stack app in a single shot. Puter publishes an llms.txt file at docs.puter.com/llms.txt so AI tools can read the full API in one request. The site claims compatibility with Claude Code, Codex, Cursor, GitHub Copilot, Google AI Studio, v0, Bolt, Lovable, and others, with no special integration required.
Update: Version 26.07.1
The latest release of the underlying Puter platform is version 26.07.1, published on July 15, 2026, with active development continuing on the main branch (last push July 17, 2026). The repository is written primarily in TypeScript and has accumulated over 3,900 forks, signaling an active open-source contributor base. The AGPL-3.0 license governs the core platform; Puter.js itself is distributed via npm as @heyputer/puter.js.
Community Discussions
Be the first to start a conversation about Puter.js
Share your experience with Puter.js, ask questions, or help others learn from your insights.
Pricing
Developer (User-Pays)
Developers pay $0 for infrastructure at any scale. Usage is metered to each signed-in user's own Puter account.
- Unlimited users
- Auth, storage, database, AI Gateway, hosting, and more
- No servers, no API keys
- No usage metered to the developer
- Users get their own free allowance of storage, database, and AI usage
Capabilities
Key Features
- AI Gateway with 500+ models (OpenAI, Claude, Gemini, Grok, and more)
- Serverless, keyless architecture — no API keys required
- User authentication and account management
- Scalable cloud object storage
- Serverless NoSQL key-value database
- Serverless Workers for backend logic
- Real-time peer communication
- TCP/IP networking in the browser
- Static site hosting
- Image generation API
- Video generation API
- Text-to-speech API
- Speech-to-text API
- Voice changer API
- OCR API
- User-Pays model — $0 infrastructure cost for developers
- Built-in rate limiting, abuse filtering, and sandboxing
- Compatible with React, Next.js, Vue, Angular, Svelte, Astro
- llms.txt for AI agent consumption
- Works with Claude Code, Codex, Cursor, Lovable, and other AI coding agents
- Self-hostable open-source platform (AGPL-3.0)
