JavaScript SDK, React components, widget, and live client.
JavaScript SDK
Full control over sessions, messages, and usage from any JS environment.
React Component
A native <Chatbot /> component for React apps.
Chatbot Widget
One script tag, drop-in chat bubble on any site.
Live Client
A lightweight client for streaming responses in real time.
JavaScript SDK — start a session
import { StartupCoreClient } from "@startupcore/sdk";
const client = new StartupCoreClient({ publicKey: "pk_live_..." });
const session = await client.sessions.create({ botId: "bot_..." });
const reply = await session.sendMessage("Hello!");
console.log(reply.text);React Component — drop-in chatbot
import { Chatbot } from "@startupcore/react";
export default function App() {
return (
<Chatbot
publicKey="pk_live_..."
botId="bot_..."
/>
);
}Widget — script tag embed
<script src="https://cdn.startupcore.io/widget.js" data-key="pk_live_..." ></script>
Live Client — streaming
import { LiveClient } from "@startupcore/live";
const live = new LiveClient({ publicKey: "pk_live_..." });
live.onToken((token) => process.stdout.write(token));
await live.send({ sessionId: "ses_...", text: "Hello!" });npm
Widget (no install needed)
Step-by-step guides for widget, React, authenticated sessions, and allowed domains.
Integration Guides