Skip to content

Installation

Requirements

  • Node.js ≥ 20
  • A Vista Group API key (operator token) or Vista loyalty cookie

Install the SDK

Terminal window
npm install @theatrical/sdk

Install the CLI

The CLI is a dev dependency — install it globally or per-project.

Terminal window
npm install -g @theatrical/cli
theatrical --version

Install React components

Terminal window
npm install @theatrical/react @theatrical/sdk

Optional packages

PackagePurpose
@theatrical/analyticsQuery Vista Horizon data warehouses
@theatrical/eventsReal-time event bridge via polling
Terminal window
npm install @theatrical/analytics @theatrical/events

TypeScript

Theatrical requires TypeScript 5.0+. Add @theatrical/sdk types to your tsconfig.json:

{
"compilerOptions": {
"strict": true,
"moduleResolution": "bundler",
"target": "ES2022"
}
}

All Theatrical packages ship with bundled .d.ts declarations — no @types/ packages needed.

Next steps

Head to the Quickstart to make your first API call in under five minutes.