Sam Atkins 11f3e29604 chore: Disable eslint checks on puter-js tests 1 year ago
..
src 378b87459a Add robust hostname comparison for when declaring an environment as GUI 1 year ago
test 11f3e29604 chore: Disable eslint checks on puter-js tests 1 year ago
.gitignore 13525c85a0 -dot- 1 year ago
APACHE_LICENSE.txt 13525c85a0 -dot- 1 year ago
README.md 4a36670417 Update README.md files for monorepo'd projects 1 year ago
app-migration-guide.txt 13525c85a0 -dot- 1 year ago
package-lock.json 13525c85a0 -dot- 1 year ago
package.json 65a73b5b45 Rename workspace modules to avoid confusion 1 year ago

README.md

Puter.js

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

<a href="https://docs.puter.com/playground/"><strong>« LIVE DEMO »</strong></a>
<br />
<br />
<a href="https://docs.puter.com" target="_blank">Docs</a>
·
<a href="https://puter.com">Puter.com</a>
·
<a href="https://discord.com/invite/PQcx7Teh8u">Discord</a>
·
<a href="https://reddit.com/r/puter">Reddit</a>
·
<a href="https://twitter.com/HeyPuter">X (Twitter)</a>

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>