HN user

fahad19

43 karma
Posts15
Comments15
View on HN
[dead] 3 years ago

Featurevisor is a Git-based feature management tool covering feature flags, a/b testing, and remote configuration with custom targeting conditions for rollout rules. It now comes with a React SDK that can be used in both React and React Native.

GitHub: https://github.com/fahad19/featurevisor

Useful post outlining a lot of common pain points I have experienced myself in my career.

One of the reasons I went for an open source solution ( https://featurevisor.com ) that's Git based, and every change is done via Pull Requests.

Building blocks:

- Attributes for conditions: https://featurevisor.com/docs/attributes/

- Segments for targeting users: https://featurevisor.com/docs/segments/

- Features with variations and rules: https://featurevisor.com/docs/features/

Process:

- Merge PRs

- Trigger CI/CD pipeline: https://featurevisor.com/docs/deployment/

- Consume with SDK: https://featurevisor.com/docs/sdks/

Use cases:

- User entitlements: https://featurevisor.com/docs/use-cases/entitlements/

- Testing in production: https://featurevisor.com/docs/use-cases/testing-in-productio...

- A/B testing & experimentation: https://featurevisor.com/docs/use-cases/experiments/

- Remote configuration: https://featurevisor.com/docs/use-cases/remote-configuration...

You can also generate types as a package for compile-time safety:

- Code generation: https://featurevisor.com/docs/code-generation/

The post and the comments here give me more ideas on how to improve it with more features now.

it's one of the first things that a data scientist friend of mine asked.

Featurevisor SDK is stateless, in the sense that it evaluates features against given attributes and the content of the currently parsed datafile.

if we want to have native support of exclusions in the SDK, it has to become stateful on its own. either in memory, device level, or having a backend service that's aware of the session to go cross-device.

therefore, it currently does not support it. but I am open to exploring an API for it in future.

as a work around, what can be done for now is to track manually whenever a feature is activated (SDK has onActivation handler), and then pass that knowledge as an attribute when evaluating another feature. The second feature can then have a `not` operator in its segments to exclude itself in that case.

Links that can help:

Activation: https://featurevisor.com/docs/sdks/#activation

`not` operator: https://featurevisor.com/docs/segments/#not

thank you!

I have just announced the React integration here: https://twitter.com/fahad19/status/1650580700687376399

You can find more docs here: https://featurevisor.com/docs/react/

I will explore NextJS and how Featurevisor can be utilized at both SSR and SSG level as well. While of course working on adding more tests, and tagging a v1.0 stable release soon.

Regarding Swift (for iOS) and Kotlin (for Android) SDKs, I am not so sure if I will attempt those myself. But I am asking around in my network for help there, and would like to have official cross-platform SDK support.