puter/packages/puter-js
Sam Atkins 11f3e29604 chore: Disable eslint checks on puter-js tests
These currently work in a way that's different from what eslint expects,
so disable it. At some point it would be good if it could check them
(and if the tests could run on CI) but right now they just make a lot of
noise.
2024-05-02 11:21:50 +01:00
..
src Add robust hostname comparison for when declaring an environment as GUI 2024-04-25 17:51:20 -07:00
test chore: Disable eslint checks on puter-js tests 2024-05-02 11:21:50 +01:00
.gitignore -dot- 2024-04-11 21:46:43 -04:00
APACHE_LICENSE.txt -dot- 2024-04-11 21:46:43 -04:00
app-migration-guide.txt -dot- 2024-04-11 21:46:43 -04:00
package-lock.json -dot- 2024-04-11 21:46:43 -04:00
package.json Rename workspace modules to avoid confusion 2024-04-23 04:06:15 -04:00
README.md Update README.md files for monorepo'd projects 2024-04-12 23:54:41 -04:00

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>