Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@heyputer/puter.js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Puter.js
The official JavaScript SDK for Puter.com — Free, Serverless, Cloud and AI from the frontend code.
Installation (npm)
npm install @heyputer/puter.jsImporting
ES Modules
import '@heyputer/puter.js';CommonJS
const puter = require('@heyputer/puter.js');CDN
Include Puter.js directly in your HTML via CDN in the <head> section:
<script src="https://js.puter.com/v2/"></script>Usage Example
After importing, you can use the global puter object:
// Print a message
puter.print('Hello from Puter.js!');
// Chat with GPT-5 nano
puter.ai.chat('What color was Napoleon\'s white horse?').then(response => {
puter.print(response);
});