Scan your whole stack
Are you using @bsv/btms-permission-module-ui?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.0.1
@bsv/btms-permission-module-ui was last scanned on 30 Nov 2026 at version 1.0.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.0.1 LATEST | 30 Nov 2026 | No rules fired |
| 1.0.0 | 16 Feb 2026 | Not shown |
Findings for v1.0.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.0.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
React/MUI UI components for BTMS token spending authorization.
This package provides ready-to-use React components with Material-UI styling for the BTMS Permission Module. It works in conjunction with @bsv/btms-permission-module (core package).
This UI package is for wallet developers integrating BTMS token support into BRC-100 wallets via BRC-98/99 hooks, using React/MUI for prompts.
../README.md@bsv/btms): ../core/README.md../permission-module/README.md../permission-module/INTEGRATION.mdhttps://btms.metanet.app): ../frontend/README.mdnpm install @bsv/btms-permission-module-ui
npm install react @mui/material @mui/icons-material @emotion/react @emotion/styled @bsv/uhrp-react
The package supports ESM imports and CommonJS require with TypeScript declarations for each entry point.
import { useTokenSpendPrompt } from '@bsv/btms-permission-module-ui'
import { BasicTokenModule } from '@bsv/btms-permission-module'
// Setup the UI hook
const { promptUser, PromptComponent } = useTokenSpendPrompt()
// Create the permission module with the prompt function
const basicTokenModule = new BasicTokenModule(promptUser)
// Render the component
return (
<>
{children}
<PromptComponent />
</>
)
import { useTokenSpendPrompt, type FocusHandlers } from '@bsv/btms-permission-module-ui'
const { isFocused, onFocusRequested, onFocusRelinquished } = useContext(UserContext)
const { promptUser, PromptComponent } = useTokenSpendPrompt({
isFocused,
onFocusRequested,
onFocusRelinquished
})
useTokenSpendPrompt(focusHandlers?: FocusHandlers)React hook for managing token usage prompts.
Parameters:
focusHandlers (optional): Window focus management functionsisFocused: () => Promise<boolean>onFocusRequested: () => Promise<void>onFocusRelinquished: () => Promise<void>Returns:
promptUser: (app: string, message: string) => Promise<boolean> - Function to show promptPromptComponent: React.ComponentType - Component to renderTokenAccessPromptThe underlying dialog component (exported as default).
Props:
app: string - Application name requesting permissionmessage: string - JSON-encoded token spend informationonAllow: () => void - Callback when user approvesonDeny: () => void - Callback when user deniesIf you don't want to use MUI, you can implement your own UI by creating a custom prompt function:
import { BasicTokenModule } from '@bsv/btms-permission-module'
const customPrompt = async (app: string, message: string): Promise<boolean> => {
const spendInfo = JSON.parse(message)
// Show your custom UI (Vue, Angular, vanilla JS, etc.)
const result = await showMyCustomDialog({
app,
tokenName: spendInfo.tokenName,
amount: spendInfo.sendAmount,
assetId: spendInfo.assetId
})
return result // true = approved, false = denied
}
const basicTokenModule = new BasicTokenModule(customPrompt)
The message parameter contains JSON with:
{
type: 'btms_spend',
sendAmount: number,
tokenName: string,
assetId: string,
recipient?: string,
iconURL?: string,
changeAmount: number,
totalInputAmount: number
}
Displays a Material-UI dialog with:
The component uses Material-UI's theming system. Customize by wrapping your app in a ThemeProvider:
import { ThemeProvider, createTheme } from '@mui/material'
const theme = createTheme({
// Your theme customization
})
<ThemeProvider theme={theme}>
<App />
</ThemeProvider>
Open BSV
Apache License 2.0
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.