@indigoai-us/hq-flags-client
v0.1.2
Published
JavaScript client for the HQ feature flag registry
Readme
@indigoai-us/hq-flags-client
The JavaScript client for the HQ feature flag registry. It works in Node, browser, and Next.js environments.
Install it from public npm with no GitHub Packages registry mapping, project
.npmrc, NODE_AUTH_TOKEN, or other credential:
npm install @indigoai-us/hq-flags-clientThe package resolves flags through the authenticated HQ Pro API. Public package installation does not make flag data public.
import { createFlagClient } from "@indigoai-us/hq-flags-client";
const flags = createFlagClient({
endpoint: process.env.HQ_FLAGS_API_URL!,
getToken: () => session.idToken,
companyUid: "cmp_01INDIGO",
});
await flags.ready();See the repository's spec/README.md for the normative resolution contract.
