StartupCore

SDKs & Components

JavaScript SDK, React components, widget, and live client.

Integration options

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.

Code examples

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!" });

Installation

npm

npm install @startupcore/sdk @startupcore/react

Widget (no install needed)

<script src="https://cdn.startupcore.io/widget.js" data-key="pk_..."></script>

See integration guides

Step-by-step guides for widget, React, authenticated sessions, and allowed domains.

Integration Guides