0.21.0 • Published 3 days ago
@webgpt/sdk v0.21.0
⏣ WebGPT SDK
WebGPT SDK is a TypeScript / JavaScript library for interacting with the WebGPT API.
Usage
First, install the package:
npm i @webgpt/sdk
Then, you can use the SDK in your code:
import { WebgptSdk } from '@webgpt/sdk';
const webgpt = new WebgptSdk({
apiKey: 'webgpt-sample-token',
});
const { assignment } = await webgpt
.makeAssignment({
idea: `Crocodile zoo`,
language: `en`,
})
.asPromise();
console.info(`Assignment:`, '\n', assignment);
See more usage examples in the /samples directory.
Capabilities of SDK
- Make assignment Creates assignment from idea.
- Make website Makes website from from idea and publishes it.
Terminology
- Idea is short description of the website, email from client or any other input that describes the desired website.
- Assignment is precise and professional description of the website, content structure, name, domain, keywords, etc.
- Website Preview is website inside the WebGPT system in editable state, for example https://webgpt.cz/fuel-factor-x-2plub5fh5wws
- Published Website is the final product, the website live on the the domain, for example https://www.jezdimelevneji.cz/
- Task is the process of creating the assignment or website.
- Every task has its unique ID
- Once started, task is running independently of the SDK instance
- Task can be recovered by its ID
- You can list all tasks and their statuses with
.asObservable()
- Or just get the result with
.asPromise()
Access
The SDK is for our partners.
Token webgpt-sample-token
works only for the sample usage. It behaves like a real token, but it does not create any real assignments or websites, just returns sample data.
If you are interested in using it, please contact us at pavol@webgpt.cz.
0.21.0
3 days ago
0.20.0
5 days ago
0.19.7
11 days ago
0.19.6
16 days ago
0.19.5
19 days ago
0.19.4
24 days ago
0.19.3
26 days ago
0.19.0
1 month ago
0.18.1
1 month ago
0.19.1
1 month ago
0.19.2
1 month ago
0.16.0
1 month ago
0.18.0
1 month ago
0.13.0
1 month ago
0.14.0
1 month ago
0.14.1
1 month ago
0.12.0
1 month ago
0.11.4
1 month ago
0.11.5
1 month ago
0.10.1
1 month ago
0.10.0
1 month ago
0.9.0
1 month ago
0.8.0
1 month ago
0.7.0
1 month ago
0.6.0
1 month ago