◐ Shell
clean mode source ↗

GitHub - devdoshi/puter.js: ⚒️ The official JavaScript SDK for Puter.com

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Puter.js

The official JavaScript SDK for Puter.com. Cloud and AI features right from your frontend code!

Installation

git clone https://github.com/HeyPuter/puter.js.git
cd puter.js
npm install

Run development server

Build

Example

Make sure the development server is running.

<html>
<body>
    <script src="http://127.0.0.1:8080/dist/puter.dev.js"></script>
    <script>
        // Loading ...
        puter.print(`Loading...`);

        // Chat with GPT-3.5 Turbo
        puter.ai.chat(`What color was Napoleon's white horse?`).then((response) => {
            puter.print(response);
        });
    </script>
</body>
</html>