{"library":"tggl-client","type":"library","category":null,"description":"The `tggl-client` package provides a TypeScript SDK for integrating Tggl feature flags into both client-side (browsers, React Native) and server-side (Node.js) applications. Currently at version 3.2.2, the library maintains an active release cadence with frequent updates and bug fixes, as evidenced by recent v3.x releases. Version 3 represents a complete rewrite focused on improved reliability, fault tolerance, and maintainability, introducing a simpler API, better error handling, and automatic HTTP retries via `ky`. A key differentiator is its enforcement of feature flag best practices, specifically by removing the `isActive` method and making the default value a required argument for the `get` method since v2.0.0, guiding developers to always handle the absence of a flag gracefully. It also offers built-in storage options for Postgres, Redis, and Static storage for server-side usage, requiring corresponding peer dependencies like `pg` or `redis` for these features. The SDK supports Node.js environments version 20.0.0 and above.","language":"javascript","status":"active","version":"3.2.2","tags":["javascript","Tggl","Feature flag","Feature toggle","A/B testing","Remote config","Kill switch","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install tggl-client","imports":["import { TgglClient } from 'tggl-client'","import { TgglLocalClient } from 'tggl-client'","import { StaticStorage } from 'tggl-client'"]},{"cmd":"yarn add tggl-client","imports":[]},{"cmd":"pnpm add tggl-client","imports":[]}],"homepage":"https://tggl.io","github":"https://github.com/Tggl/js-tggl-client","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/tggl-client","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/tggl-client/compatibility"}}