Skip to content

Repository files navigation

[Deprecated] Reactor JS SDK

npm version npm downloads build license

⚠️ This repository is deprecated. With the release of @reactor-team/js-sdk@3.0.0, the JS SDK has moved into our reactor-client-sdks monorepo, alongside our other language SDKs. All new development happens at:

The npm package name is unchanged (@reactor-team/js-sdk), so npm install @reactor-team/js-sdk continues to work — it now installs from the new source. This repository is kept for historical reference only and receives no further updates. Please file new issues in the reactor-client-sdks repo instead.

The official JavaScript SDK for building real-time AI video applications with Reactor.

Installation

npm install @reactor-team/js-sdk

Quick Start

npx create-reactor-app my-app --model=helios
cd my-app
npm run dev

Usage

"use client";

import { use } from "react";
import { ReactorProvider, ReactorView } from "@reactor-team/js-sdk";

const tokenPromise = fetch("/api/token")
  .then((r) => r.json())
  .then(({ token }) => token);

export default function App() {
  const token = use(tokenPromise);

  return (
    <ReactorProvider modelName="your-model-name" jwtToken={token}>
      <ReactorView className="w-full aspect-video" />
    </ReactorProvider>
  );
}

Documentation

License

Apache 2.0 © 2024-2026 Reactor Technologies, Inc.

See NOTICE for attribution requirements and CONTRIBUTING.md for the contributor sign-off (DCO) policy.

About

JavaScript client for the Reactor platform.

Resources

Code of conduct

Contributing

Stars

15 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages