Skip to content

Installation

Terminal window
npm install @useoptimus/core

@useoptimus/core is a pure TypeScript evaluation engine with zero framework dependencies. It runs identically in Node, the browser, and any SSR environment, and is the only required package — every adapter below is a thin layer on top of it.

Install the adapter that matches your framework alongside core:

Terminal window
npm install @useoptimus/react # React — <FlagProvider>, useFlag, useVariant
npm install @useoptimus/angular # Angular — FeatureFlagService, *ifFeature
npm install @useoptimus/node # Node / SSR — request context + snapshot hydration
Terminal window
npm install @useoptimus/devtools --save-dev

Local override resolution (query param / localStorage / injected global) and a framework-agnostic debug panel, for forcing flag values during QA/E2E testing. See the DevTools adapter page.

Quick Start walks through defining and evaluating your first flag.