This monorepo contains the official SDKs and tools for Flagcontrol.
| Package | Description | Version |
|Ptr|---|---|
| @flagcontrol/core | Core logic shared across SDKs | |
|
@flagcontrol/node | Node.js Server-side SDK | |
|
@flagcontrol/react | React Client-side SDK | |
|
flagcontrol | TypeScript definition generator | |
Please refer to the individual package READMEs for installation and usage instructions:
This project is a monorepo managed with npm workspaces.
- Node.js >= 18
- npm >= 9
-
Clone the repository:
git clone https://github.com/flagcontrol/flagcontrol-sdks.git cd flagcontrol-sdks -
Install dependencies:
npm install
-
Build all packages:
npm run build
The examples directory contains sample applications using the SDKs.
- Backend Example:
examples/backend - Frontend Example:
examples/frontend
To run the backend example:
npm start -w examples/backendTo run the frontend example:
npm run dev -w examples/frontendnpm run build -w packages/corenpm run build -w packages/node-sdknpm run build -w packages/react-sdknpm run build -w packages/generatornpx changeset
npm run publish