@usebrisk/sdk
v0.2.0
Published
The zero-config browser SDK every Brisk site gets at /brisk.js.
Downloads
344
Maintainers
Readme
@usebrisk/sdk
The zero-config browser SDK every Brisk
site gets at /brisk.js. Browser-only: requests stay on the site's own origin
and the server already knows who you are — no config, no API keys.
Every deployed Brisk site serves it automatically:
<script src="/brisk.js"></script>
<script>
const posts = brisk.db.collection('posts');
await posts.create({ title: 'Hello' });
</script>Or import it from npm (for bundled apps and type checking):
npm install @usebrisk/sdkimport { db, me, channel } from '@usebrisk/sdk';
const user = await me();
const posts = db.collection('posts');
await posts.create({ title: 'Hello' });Six primitives: db, identity (me), ai, files (fs), channel, hosting.
