SDKs
cStar's headless architecture means you build the UI — our SDKs handle the data layer. Official clients for JavaScript, React, and Svelte with framework-idiomatic patterns: hooks for React, rune classes for Svelte.
@cstar.help/js Core JavaScript Client
The foundation. Works in Node.js, Deno, Bun, and browsers. Full TypeScript support, tree-shakeable, zero dependencies beyond fetch.
Admin CRUD Chat / Library clients TypeScript
@cstar.help/react React Hooks
React hooks wrapping the JS client. Automatic loading states, error handling, and refetching. Works with Next.js, Remix, and Vite.
useChat / useArticles Two providers SSR-safe
@cstar.help/svelte Svelte 5 Rune Classes
Svelte 5 rune classes using $state and $derived. Reactive data fetching, automatic subscriptions, and SvelteKit integration.
ChatState / ArticlesState Two providers SvelteKit-ready
Quick Comparison
JS React Svelte
Install size ~12 KB ~18 KB ~15 KB
TypeScript Full Full Full
Loading states Manual Automatic Automatic
Real-time ChatClient useTyping() TypingState
SSR support Yes Yes Yes
Tests 102 34 32
Installation
# Core client (use this if you don't need framework bindings)
npm install @cstar.help/js
# React hooks + core client
npm install @cstar.help/react
# Svelte rune classes + core client
npm install @cstar.help/svelte