Installation
How to install and configure the Cobbl SDK
Install
npm install @cobbl-ai/sdkChoose Your Client
The SDK provides two clients for different use cases:
CobblAdminClient
For server-side operations. Requires an API key. Use for running prompts.
CobblPublicClient
For client-side operations. No API key needed. Use for collecting user feedback. Also available via CDN script tag.
Quick Comparison
| Feature | CobblAdminClient | CobblPublicClient |
|---|---|---|
| Use case | Server-side | Client-side |
| Authentication | API key required | None required |
| Running prompts | Yes | No |
| Submitting feedback | No | Yes |
| CDN / Script tag | No | Yes |