@vibiz/sdk 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,25 @@
1
- # Temporary Holding Version
1
+ # @vibiz/sdk
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The typed client for the [Vibiz Stack](https://app.vibiz.app/docs) API: projects, hosting and
4
+ deploys, databases, sign-in, email, AI, usage, payments and more, with the same calls the `vibiz`
5
+ CLI makes.
6
+
7
+ ```bash
8
+ npm install @vibiz/sdk
9
+ ```
10
+
11
+ ```ts
12
+ import { Vibiz } from '@vibiz/sdk';
13
+
14
+ const vibiz = new Vibiz({ apiKey: process.env.VIBIZ_API_KEY!, baseUrl: 'https://app.vibiz.app' });
15
+
16
+ const { project } = await vibiz.projects.create({ name: 'Acme Bakery' });
17
+ const projects = await vibiz.projects.list();
18
+ await vibiz.email.send(project.id, { to: 'you@example.com', subject: 'Hi', text: 'It works.' });
19
+ ```
20
+
21
+ ESM with TypeScript types, Node 20+. The account key (`vz_sk_…`) is a secret: use it on servers,
22
+ in scripts and in CI, never in a browser. For code that runs inside your app, use
23
+ [`@vibiz/app`](https://www.npmjs.com/package/@vibiz/app).
24
+
25
+ Docs: https://app.vibiz.app/docs