SDKs & API
Node.js SDK
The server SDK evaluates flags locally against a cached ruleset, so reads are synchronous and add no latency to your request path.
Installation
$ npm install @flagfish/node
Initialize & evaluate
import { FlagFish } from '@flagfish/node'; const ff = new FlagFish('ff_server_...'); await ff.ready(); const enabled = ff.variation( 'checkout-redesign', { key: 'user_8f2', plan: 'pro' }, false );
Use a ff_server_ key on the backend — never ship it to the client.