open-index/open-npm huggingface dataset:
npm package: @farmako/fractal
Description: Farmako UI library
Author: git-anurag-hub
Latest version: 1.4.3

# fractal

> Farmako UI library

[![NPM](https://img.shields.io/npm/v/fractal.svg)](https://www.npmjs.com/package/fractal) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save @farmako/fractal
```

- *Add all required peer dependencies in the project*.


## Usage

```tsx
import React, { Component } from 'react'

import {MyComponent} from '@farmako/fractal'
import "@farmako/fractal/dist/assets/index.css";
import "@farmako/fractal/dist/assets/tailwind.css";

class Example extends Component {
  render() {
    return <MyComponent />
  }
}
```

## License

MIT © [git-anurag-hub](https://github.com/git-anurag-hub)
npm package: @farmart-tech/brave-client-sdk
Description: Client SDK for Farmart Brave Ship feature flag system.
Latest version: 2.0.4

# @farmart-tech/brave-client-sdk

Client SDK for Farmart Brave Ship feature flag system.

## Overview

`@farmart-tech/brave-client-sdk` is a read-only SDK designed for client applications that need to consume feature flags. It provides a lightweight, efficient way to integrate feature flags into any JavaScript/TypeScript application.

## Features

- Read-only feature flag access
- Real-time feature updates
- Lightweight and efficient
- TypeScript support with full type definitions
- Feature flag evaluation with user context
- Workspace isolation
- Automatic caching and optimization

## Installation

```bash
npm install @farmart-tech/brave-client-sdk @farmart-tech/brave-firebase-adapter firebase
```

## Peer Dependencies

- `firebase` ^11.5.0

## Quick Start

```typescript
import { createClient } from '@farmart-tech/brave-client-sdk';
import { FirebaseAdapter } from '@farmart-tech/brave-firebase-adapter';
import { initializeApp } from 'firebase/app';

// Initialize Firebase
const firebaseApp = initializeApp({
  projectId: 'your-project-id',
  apiKey: 'your-api-key',
  // ... other config
});

// Create adapter
const adapter = new FirebaseAdapter({ app: firebaseApp });

// Create client
const client = createClient(adapter, {
  workspaceId: 'your-workspace-id',
});

// Subscribe to features
client.subscribeToFeatures((features) => {
  console.log('Features updated:', features);
});

// Check if feature is enabled
const isEnabled = await client.isFeatureEnabled('feature-dark-mode');

// Get feature with configuration
const feature = await client.getFeature('feature-dark-mode');
if (feature?.enabled) {
  console.log('Feature config:', feature.config);
}
```

## Documentation

For complete API documentation and usage examples, visit:

**[https://fmt-feature-management.web.app/docs/client-sdk/index.html](https://fmt-feature-management.web.app/docs/client-sdk/index.html)**

## API Methods

- `isFeatureEnabled(featureId)` - Check if a feature is enabled
- `getFeature(featureId)` - Get feature details and configuration
- `getFeatures()` - Get all features for workspace
- `subscribeToFeatures(callback)` - Subscribe to real-time updates
- `unsubscribe()` - Cleanup subscriptions

## Use Cases

- Web applications needing feature flags
- Mobile apps (React Native, Ionic, etc.)
- Progressive feature rollouts
- A/B testing
- Kill switches for problematic features

## License

MIT

## Related Packages

- [@farmart-tech/brave-admin-sdk](https://www.npmjs.com/package/@farmart-tech/brave-admin-sdk) - Admin SDK with write access
- [@farmart-tech/brave-firebase-adapter](https://www.npmjs.com/package/@farmart-tech/brave-firebase-adapter) - Firebase integration
- [@farmart-tech/brave-react-adapter](https://www.npmjs.com/package/@farmart-tech/brave-react-adapter) - React hooks

## Repository

[https://github.com/FarMart-Engineering/farmart-brave-ship](https://github.com/FarMart-Engineering/farmart-brave-ship)
npm package: @farmart-tech/brave-feature-core
Description: Core feature flag evaluation engine for Farmart Brave Ship.
Latest version: 2.0.2

# @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

```bash
npm install @farmart-tech/brave-feature-core
```

## Quick Start

```typescript
import { FeatureEvaluator } from '@farmart-tech/brave-feature-core';

const evaluator = new FeatureEvaluator();

const isEnabled = evaluator.evaluate(feature, {
  userId: 'user-123',
  email: 'user@example.com',
  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](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](https://www.npmjs.com/package/@farmart-tech/brave-window-core) - Window/workspace management
- [@farmart-tech/brave-admin-sdk](https://www.npmjs.com/package/@farmart-tech/brave-admin-sdk) - Admin SDK for management operations
- [@farmart-tech/brave-client-sdk](https://www.npmjs.com/package/@farmart-tech/brave-client-sdk) - Client SDK for applications

## Repository

[https://github.com/FarMart-Engineering/farmart-brave-ship](https://github.com/FarMart-Engineering/farmart-brave-ship)
npm package: @farmart-tech/brave-firebase-adapter
Description: Firebase adapter for Farmart Brave Ship feature flag system.
Latest version: 2.0.2

# @farmart-tech/brave-firebase-adapter

Firebase adapter for Farmart Brave Ship feature flag system.

## Overview

`@farmart-tech/brave-firebase-adapter` provides Firebase Firestore integration for the Brave Ship platform. It enables real-time feature flag synchronization and persistent storage using Google Cloud Firestore.

## Features

- Real-time feature flag synchronization
- Firestore-based persistent storage
- Automatic change detection
- Optimized batch operations
- Support for both client and admin SDKs
- Firebase Authentication integration

## Installation

```bash
npm install @farmart-tech/brave-firebase-adapter firebase
```

## Peer Dependencies

- `firebase` ^11.5.0
- `axios` ^1.6.7
- `uuid` ^9.0.0

## Quick Start

```typescript
import { FirebaseAdapter } from '@farmart-tech/brave-firebase-adapter';
import { initializeApp } from 'firebase/app';

// Initialize Firebase
const firebaseApp = initializeApp({
  projectId: 'your-project-id',
  apiKey: 'your-api-key',
  // ... other config
});

// Create adapter
const adapter = new FirebaseAdapter({
  app: firebaseApp,
  // Optional: custom collection names
  featureCollection: 'features',
  workspaceCollection: 'workspaces'
});
```

## Documentation

For complete API documentation and usage examples, visit:

**[https://fmt-feature-management.web.app/docs/firebase-adapter/index.html](https://fmt-feature-management.web.app/docs/firebase-adapter/index.html)**

## Use Cases

- Real-time feature flag updates across clients
- Persistent feature flag storage
- Scalable multi-tenant architecture
- Integration with Firebase ecosystem

## License

MIT

## Related Packages

- [@farmart-tech/brave-admin-sdk](https://www.npmjs.com/package/@farmart-tech/brave-admin-sdk) - Admin SDK (uses this adapter)
- [@farmart-tech/brave-client-sdk](https://www.npmjs.com/package/@farmart-tech/brave-client-sdk) - Client SDK (uses this adapter)
- [@farmart-tech/brave-react-adapter](https://www.npmjs.com/package/@farmart-tech/brave-react-adapter) - React integration

## Repository

[https://github.com/FarMart-Engineering/farmart-brave-ship](https://github.com/FarMart-Engineering/farmart-brave-ship)
npm package: @farmart-tech/brave-react-adapter
Description: React hooks and components for Farmart Brave Ship feature flag system.
Latest version: 2.0.2

# @farmart-tech/brave-react-adapter

React hooks and components for Farmart Brave Ship feature flag system.

## Overview

`@farmart-tech/brave-react-adapter` provides React hooks and components for seamless integration of Brave Ship feature flags into your React applications. Built with TypeScript for complete type safety.

## Features

- React hooks for feature flags
- Provider component for global configuration
- Real-time feature flag updates
- TypeScript support
- Automatic re-rendering on flag changes
- SSR-compatible
- Minimal bundle size

## Installation

```bash
npm install @farmart-tech/brave-react-adapter react react-dom
```

## Peer Dependencies

- `react` >=18.0.0
- `react-dom` >=18.0.0
- `firebase` ^11.5.0
- `lodash` ^4.17.21

## Quick Start

```tsx
import { BraveProvider, useFeature } from '@farmart-tech/brave-react-adapter';
import { FirebaseAdapter } from '@farmart-tech/brave-firebase-adapter';

// Setup adapter
const adapter = new FirebaseAdapter({ /* config */ });

// Wrap your app
function App() {
  return (
    <BraveProvider workspaceId="workspace-1" adapter={adapter}>
      <YourApp />
    </BraveProvider>
  );
}

// Use in components
function MyComponent() {
  const { isEnabled, config } = useFeature('feature-dark-mode');

  return (
    <div className={isEnabled ? 'dark' : 'light'}>
      {isEnabled && <span>Dark mode is on!</span>}
    </div>
  );
}
```

## Documentation

For complete API documentation and usage examples, visit:

**[https://fmt-feature-management.web.app/docs/react-adapter/index.html](https://fmt-feature-management.web.app/docs/react-adapter/index.html)**

## Available Hooks

- `useFeature(featureId)` - Get feature flag state and configuration
- `useFeatures()` - Get all features for current workspace
- `useWindow()` - Get workspace window/maintenance status
- `useBraveAdmin()` - Admin operations (requires admin SDK)

## Use Cases

- Feature toggles in React applications
- A/B testing components
- Gradual feature rollouts
- Maintenance mode UI
- Beta program features

## License

MIT

## Related Packages

- [@farmart-tech/brave-firebase-adapter](https://www.npmjs.com/package/@farmart-tech/brave-firebase-adapter) - Firebase integration
- [@farmart-tech/brave-client-sdk](https://www.npmjs.com/package/@farmart-tech/brave-client-sdk) - Client SDK
- [@farmart-tech/brave-admin-sdk](https://www.npmjs.com/package/@farmart-tech/brave-admin-sdk) - Admin SDK

## Repository

[https://github.com/FarMart-Engineering/farmart-brave-ship](https://github.com/FarMart-Engineering/farmart-brave-ship)
npm package: @farmart-tech/brave-window-core
Description: Core window and workspace management library for Farmart Brave Ship feature flag system.
Latest version: 2.0.2

# @farmart-tech/brave-window-core

Core window and workspace management library for Farmart Brave Ship feature flag system.

## Overview

`@farmart-tech/brave-window-core` provides the foundational window management functionality for the Brave Ship platform. It handles workspace lifecycle, maintenance window scheduling, and system availability controls.

## Features

- Window state management (active/inactive)
- Maintenance window scheduling
- Custom maintenance messages and branding
- Multi-workspace support
- Real-time window status updates
- Headless mode for programmatic control

## Installation

```bash
npm install @farmart-tech/brave-window-core
```

## Quick Start

```typescript
import { WindowManager } from '@farmart-tech/brave-window-core';

const manager = new WindowManager(adapter);

// Activate maintenance mode
await manager.setWindowActive('workspace-1', false, {
  message: 'System under maintenance. Back at 3 PM.',
  showLogo: true,
  backgroundColor: '#f0f0f0'
});

// Check window status
const isActive = await manager.isWindowActive('workspace-1');
```

## Documentation

For complete API documentation and usage examples, visit:

**[https://fmt-feature-management.web.app/docs/window-core/index.html](https://fmt-feature-management.web.app/docs/window-core/index.html)**

## Use Cases

- **Scheduled Maintenance**: Plan and communicate system downtime in advance
- **Emergency Shutdowns**: Quickly disable access during incidents
- **Regional Maintenance**: Different maintenance windows for different workspaces
- **Status Communication**: Display real-time status messages to users

## License

MIT

## Related Packages

- [@farmart-tech/brave-feature-core](https://www.npmjs.com/package/@farmart-tech/brave-feature-core) - Feature flag evaluation engine
- [@farmart-tech/brave-admin-sdk](https://www.npmjs.com/package/@farmart-tech/brave-admin-sdk) - Admin SDK for management operations
- [@farmart-tech/brave-client-sdk](https://www.npmjs.com/package/@farmart-tech/brave-client-sdk) - Client SDK for applications

## Repository

[https://github.com/FarMart-Engineering/farmart-brave-ship](https://github.com/FarMart-Engineering/farmart-brave-ship)