Skip to content

⚒️ The official JavaScript SDK for Puter.com

License

Notifications You must be signed in to change notification settings

johnny-rice/puter.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Important Notice

puter.js has been moved to the Puter repository


Puter.js

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

« LIVE DEMO »

Docs · Puter.com · Discord · Reddit · X (Twitter)

Installation

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

Run development server

npm start

Build

npm run 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>

About

⚒️ The official JavaScript SDK for Puter.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.8%
  • HTML 1.2%