MDK Logo

@mdk/foundation

Domain-specific components, hooks, and constants for mining applications

The foundation package provides domain-specific components, hooks, and constants built on top of @mdk/core. These are higher-level building blocks designed for common Bitcoin mining application use cases.

Prerequisites

  • Complete the installation

  • Add the dependency to your app's package.json
{
  "dependencies": {
    "@mdk/foundation": "workspace:*"
  }
}

What's included

FeatureDescription
Operations centreBitcoin mining operations monitoring and management components
SettingsAdministrative settings UI
HooksReusable React hooks (in the Reference section)
ConstantsShared constants and configurations (in the Reference section)

Operations centre

Domain-specific components for Bitcoin mining operations monitoring and management, including device explorers, vendor container UIs, dashboard widgets, charts, pool management, and data export.

See the Operations centre reference for the full component list with demo links.

Settings

Pre-built settings UI for common administrative tasks:

Hooks

Reusable React hooks for monitoring and UI patterns:

Constants

Shared constants for consistency across your application: permission definitions, role configurations, settings defaults, and error codes.

Reference

Detailed reference material lives in the unified Reference section. The @mdk/foundation slices are:

Import examples

// Import components
import { SettingsDashboard, FeatureFlagsSettings } from '@mdk/foundation'

// Import from specific subpath
import { SettingsDashboard } from '@mdk/foundation/domain'

On this page