puterjs
Installation
SKILL.md
Puter.js Expert Skill
This skill provides comprehensive instructions on using Puter.js to build serverless web applications without backend code or API keys.
Core Concepts
- User-Pays Model: You do not need to provide API keys. Puter.js routes requests and the end-user covers the cost via their Puter account.
- Integration: Simply include
<script src="https://js.puter.com/v2/"></script>in the HTML. All APIs are available on the globalputerobject.
1. AI API (puter.ai)
Puter provides access to 500+ models.
Text Generation (puter.ai.chat)
// Basic usage (defaults to a nano model)
const response = await puter.ai.chat("What is the capital of France?");
console.log(response.message.content[0].text || response); // Handle ChatResponse object