@farmart-tech/brave-window-core
v2.0.2
Published
Core window and workspace management library for Farmart Brave Ship feature flag system.
Downloads
222
Readme
@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
npm install @farmart-tech/brave-window-coreQuick Start
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
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 - Feature flag evaluation engine
- @farmart-tech/brave-admin-sdk - Admin SDK for management operations
- @farmart-tech/brave-client-sdk - Client SDK for applications
