npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@farmart-tech/brave-admin-sdk

v2.0.2

Published

Admin SDK for Farmart Brave Ship feature flag system.

Readme

@farmart-tech/brave-admin-sdk

Admin SDK for Farmart Brave Ship feature flag system.

Overview

@farmart-tech/brave-admin-sdk provides full CRUD (Create, Read, Update, Delete) operations for managing feature flags, workspaces, and maintenance windows. This SDK is designed for admin dashboards, management tools, and automation scripts.

Features

  • Full CRUD operations for features and workspaces
  • Maintenance window management
  • Feature flag lifecycle management
  • Workspace administration
  • Audit log integration
  • TypeScript support with complete type definitions
  • Real-time synchronization
  • Batch operations support

Installation

npm install @farmart-tech/brave-admin-sdk @farmart-tech/brave-firebase-adapter firebase axios

Peer Dependencies

  • firebase ^11.5.0
  • axios ^1.6.7

Quick Start

import { createAdminClient } from '@farmart-tech/brave-admin-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 admin client
const admin = createAdminClient(adapter);

// Manage workspaces
await admin.createWorkspace({
  id: 'workspace-1',
  name: 'Production',
  description: 'Production environment',
});

// Manage features
await admin.createFeature('workspace-1', {
  id: 'feature-dark-mode',
  name: 'Dark Mode',
  description: 'Enable dark theme',
  enabled: true,
  rolloutPercentage: 50,
});

// Update feature
await admin.updateFeature('workspace-1', 'feature-dark-mode', {
  enabled: false,
  rolloutPercentage: 100,
});

// Delete feature
await admin.deleteFeature('workspace-1', 'feature-dark-mode');

// Manage maintenance windows
await admin.setWindowActive('workspace-1', false, {
  message: 'System under maintenance',
  showLogo: true,
});

Documentation

For complete API documentation and usage examples, visit:

https://fmt-feature-management.web.app/docs/admin-sdk/index.html

API Methods

Workspace Management

  • createWorkspace(workspace) - Create new workspace
  • getWorkspace(workspaceId) - Get workspace details
  • updateWorkspace(workspaceId, data) - Update workspace
  • deleteWorkspace(workspaceId) - Delete workspace
  • listWorkspaces() - List all workspaces

Feature Management

  • createFeature(workspaceId, feature) - Create feature flag
  • getFeature(workspaceId, featureId) - Get feature details
  • updateFeature(workspaceId, featureId, data) - Update feature
  • deleteFeature(workspaceId, featureId) - Delete feature
  • listFeatures(workspaceId) - List all features in workspace

Window Management

  • setWindowActive(workspaceId, active, config) - Control maintenance mode
  • getWindowStatus(workspaceId) - Get current window status
  • scheduleWindow(workspaceId, schedule) - Schedule maintenance window

Use Cases

  • Admin dashboards
  • CI/CD automation
  • Feature flag management tools
  • Automated testing environments
  • DevOps tooling integration
  • Maintenance mode control

License

MIT

Related Packages

Repository

https://github.com/FarMart-Engineering/farmart-brave-ship