mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
ca65ed1258
Solves these eslint issues: /puter/packages/puter-js/src/modules/UI.js 418:20 error 'itemWatchCallbackFunctions' is not defined no-undef 418:74 error 'itemWatchCallbackFunctions' is not defined no-undef 419:21 error 'itemWatchCallbackFunctions' is not defined no-undef |
||
---|---|---|
.. | ||
src | ||
test | ||
.gitignore | ||
APACHE_LICENSE.txt | ||
app-migration-guide.txt | ||
package-lock.json | ||
package.json | ||
README.md |
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)
Example
Make sure the development server is running.
<html>
<body>
<script src="http://puter.localhost:4100/sdk/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>