floggy-flags
v0.1.0
Published
Client SDK for Floggy, a self-hosted feature-flag server.
Maintainers
Readme
floggy-flags
Client SDK for Floggy, a self-hosted feature-flag server.
Install
npm install floggy-flagsUsage
import { FlagClient } from 'floggy-flags';
const client = new FlagClient({
serverUrl: 'https://floggy.yourcompany.dev',
secretKey: 'your-secret-key',
applicationId: 'my-web-app',
});
await client.init();
client.isEnabled('new-checkout', userId);
client.isGroupEnabled('beta-access', { group: 'beta-testers' });secretKey and applicationId come from creating an application in your
Floggy dashboard.
Docs
Full API reference at floggy.uk/docs.
