| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Featurevisor is a solution for managing your feature flags, experiments, and remote config declaratively via a Git repository.
Workflow can be broken down into 3 steps:
More documentation available at https://featurevisor.com.
Supported features:
SDK support:
You are recommended to see a more detailed quick start guide here: https://featurevisor.com/docs/quick-start/.
The whole process can be broken down into 3 steps:
Use npx to scaffold a new Featurevisor project:
$ mkdir my-featurevisor-project && cd my-featurevisor-project $ npx @featurevisor/cli init $ npm install
You can now create and manage your feature flags, experiments, and remote config in this directory expressed as YAMLs.
See the building block guides here:
Once the project is initialized, you can build your datafiles (JSON files containing configuration of your feature flags):
$ npx featurevisor build
You will find the output in datafiles directory, that you can upload to your CDN.
See further guides here:
A fully functioning example for deploying with Cloudflare and GitHub Actions (for free) is available here.
You can now consume the datafiles from your CDN in your applications directly using Featurevisor SDKs.
For Node.js and browser environments, install the JavaScript SDK:
$ npm install --save @featurevisor/sdk
Now you can initialize the SDK with the URL of your datafile, and evaluate your feature flags:
import { createInstance } from "@featurevisor/sdk";
// fetch datafile
const DATAFILE_URL = "https://cdn.yoursite.com/datafile.json";
const datafileContent = await fetch(DATAFILE_URL)
.then((res) => res.json());
// initialize the SDK
const f = createInstance({
datafile: datafileContent,
});
// set user context
f.setContext({
appVersion: "1.0.0",
userId: "user-123",
country: "nl",
});
// evaluate values
const isEnabled = f.isEnabled("myFeatureKey");
const variation = f.getVariation("myFeatureKey");
const variable = f.getVariable("myFeatureKey", "someVariableKey");Learn more about SDK usage here: https://featurevisor.com/docs/sdks/javascript/.
| Package | Version | Description |
|---|---|---|
| @featurevisor/cli | CLI package | |
| @featurevisor/core | Core package used by CLI | |
| @featurevisor/react | React package | |
| @featurevisor/sdk | Universal SDK for both Node.js and browser | |
| @featurevisor/site | Static site generator for your project | |
| @featurevisor/types | Common typings | |
| @featurevisor/vue | Vue.js package |
MIT © Fahad Heylaal
| Back | FazBrowse Home | New Git URL |