Hooks React hooks for state management, data fetching, and UI interactions
React hooks from @tetherto/mdk-react-devkit and @tetherto/mdk-react-adapter for building mining application UIs.
Registry install From source (monorepo workspace)
npm install \
@tetherto/mdk-react-devkit \
@tetherto/mdk-react-adapter \
@tetherto/mdk-ui-foundation
Install zod@^4.6.6 first. @tetherto/mdk-react-devkit@0.12.1 declares zod@^4.6.6 as a peer while its
@hookform/resolvers peer pulls a chain that pins zod 3, so the command above aborts with ERESOLVE in a project that
has no zod. Installing zod 4 at the project root resolves it:
Category Description Package Apps Installed app panel and UI discovery hooks react-adapter Auth Authentication state hooks react-adapter Dashboard Dashboard data and state hooks react-adapter Permission Permission and access control hooks react-adapter Store Zustand store access hooks react-adapter
Category Description Package Charts Chart component hooks react-devkit Device Device and equipment management hooks react-adapter Feedback Toast and notification hooks react-devkit Filters Filter state hooks react-devkit Forms Form state and validation hooks react-devkit Navigation Navigation state hooks react-devkit Settings Settings and preferences hooks react-devkit Widgets Widget state hooks react-devkit
Category Description Package Alerts Alert management hooks react-adapter Op Center Operations center hooks react-adapter
Category Description Package Example Example and demo hooks react-adapter Utility General utility hooks react-adapter
// From react-adapter (state/data hooks)
import { useAuth, useDevices } from '@tetherto/mdk-react-adapter'
// From react-devkit (UI component hooks)
import { useChartDataCheck, useTimeframeControls } from '@tetherto/mdk-react-devkit'