Installation

Flagify provides SDKs for JavaScript/TypeScript and React. Choose the package that matches your stack.

Node.js / TypeScript

npm install @flagify/node

Or with yarn:

yarn add @flagify/node

React

npm install @flagify/react

The React SDK includes the Node.js SDK as a dependency, so you only need to install one package.

Requirements

RuntimeMinimum Version
Node.js18.0+
TypeScript5.0+ (optional)
React18.0+ (for React SDK)

Verify installation

After installing, verify the SDK is accessible:

import { Flagify } from '@flagify/node';

const client = new Flagify({
  projectKey: 'my-project',
  publicKey: process.env.FLAGIFY_PUBLIC_KEY!,
});

console.log('Flagify SDK initialized');

Next steps