puter.js has been moved to the Puter repository
« LIVE DEMO »
Docs
·
Puter.com
·
Discord
·
Reddit
·
X (Twitter)
git clone https://github.com/HeyPuter/puter.js.git
cd puter.js
npm install
npm start
npm run build
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>