Typed client API
Use a focused TypeScript-friendly client for messages, follow-up conversations, widget configuration, and localized labels.
Use @openstaticfish/chattybox to own the interface while ChattyBox runs retrieval, source citations, conversations, and scaling. The browser-safe API key identifies your project and can be restricted to approved origins.
ChattyBox crawls your existing documentation, indexes the content for retrieval, and embeds a chatbot that answers using your docs instead of generic model memory.
Create a ChattyBox project, index your content, and test representative questions.
Create a public widget API key and restrict it to your application origins.
Install @openstaticfish/chattybox and initialize the client with the API URL from the dashboard.
Render answers and cited source URLs in the interface your product needs.
Three-step launch
The SDK is the recommended path for developer-led integrations that need custom UI, application state, or product-specific workflows.
Use a focused TypeScript-friendly client for messages, follow-up conversations, widget configuration, and localized labels.
Receive source URLs with each grounded answer and decide exactly how they appear in your interface.
Keep the returned conversation ID in visitor state to support contextual follow-up questions.
Your application owns rendering and interaction design; ChattyBox operates crawling, retrieval, generation, and scaling.
The package works in current browser and Node.js applications that provide fetch. Use the exact widget API URL and public browser key shown in your project Embed tab.
import { Chattybox } from '@openstaticfish/chattybox';
const chattybox = new Chattybox({
apiKey: import.meta.env.PUBLIC_CHATTYBOX_API_KEY,
baseUrl: import.meta.env.PUBLIC_CHATTYBOX_API_URL,
});
const answer = await chattybox.sendMessage({
message: 'How do I get started?',
});
console.log(answer.message, answer.sources);Manage chat state and cited answers in a custom React interface.
Use the SDK safely across App Router server and client boundaries.
Review client methods, response fields, conversations, and errors.
Choose the maintained no-build UI when you do not need custom rendering.
Review published versions, package metadata, and the install command on npm.
Inspect the source repository, releases, issues, and project history on GitHub.
It is a client library that provides chat transport and response data without prescribing the interface. Your application renders messages, sources, loading states, and controls.
Yes. Install @openstaticfish/chattybox from npm and use the public API documented on the SDK reference page.
The SDK calls ChattyBox managed infrastructure, which retrieves from your indexed content and returns the generated message with cited source URLs.
Use the SDK when your team owns a custom interface or workflow. Use widget.js when you want ChattyBox to maintain a ready-made, no-build chat UI.
No credit card required. Your content is not used for model training.
Free tier. No card needed.