@farmart-tech/brave-feature-core
v2.0.2
Published
Core feature flag evaluation engine for Farmart Brave Ship.
Readme
@farmart-tech/brave-feature-core
Core feature flag evaluation engine for Farmart Brave Ship.
Overview
@farmart-tech/brave-feature-core is the heart of the Brave Ship feature management system. It provides the evaluation logic for feature flags, including targeting rules, rollout percentages, and user segmentation.
Features
- Feature flag evaluation engine
- User targeting and segmentation
- Rollout percentage calculations
- Condition-based feature activation
- Type-safe feature configuration
- Context-aware evaluation
Installation
npm install @farmart-tech/brave-feature-coreQuick Start
import { FeatureEvaluator } from '@farmart-tech/brave-feature-core';
const evaluator = new FeatureEvaluator();
const isEnabled = evaluator.evaluate(feature, {
userId: 'user-123',
email: '[email protected]',
country: 'US',
customAttributes: {
tier: 'premium'
}
});Documentation
For complete API documentation and usage examples, visit:
https://fmt-feature-management.web.app/docs/feature-core/index.html
Use Cases
- Feature Rollouts: Gradually release features to specific user segments
- A/B Testing: Test different variations of features
- User Targeting: Enable features based on user attributes
- Kill Switches: Instantly disable problematic features
License
MIT
Related Packages
- @farmart-tech/brave-window-core - Window/workspace management
- @farmart-tech/brave-admin-sdk - Admin SDK for management operations
- @farmart-tech/brave-client-sdk - Client SDK for applications
