
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
@keepkey/connection-indicator
Advanced tools
A React component for displaying the connection status of KeepKey Desktop.
npm install @keepkey/connection-indicator
# or
yarn add @keepkey/connection-indicator
# or
pnpm add @keepkey/connection-indicator
import { ConnectionIndicator } from '@keepkey/connection-indicator';
function App() {
return (
<div>
<h1>My KeepKey App</h1>
<ConnectionIndicator />
</div>
);
}
import { ConnectionIndicator } from '@keepkey/connection-indicator';
function App() {
return (
<div>
<h1>My KeepKey App</h1>
<ConnectionIndicator
connectionOptions={{
pollingInterval: 5000, // Check every 5 seconds
timeout: 1000, // 1 second timeout
}}
showTooltip={true}
onClick={(e, isConnected) => {
if (!isConnected) {
console.log('Launching KeepKey Desktop...');
}
}}
/>
</div>
);
}
import { useDesktopConnection } from '@keepkey/connection-indicator';
function CustomIndicator() {
const { isConnected, checkConnection, launchDesktop } = useDesktopConnection();
return (
<button
style={{
backgroundColor: isConnected ? 'green' : 'red',
color: 'white',
padding: '8px 16px',
borderRadius: '4px'
}}
onClick={() => !isConnected && launchDesktop()}
>
{isConnected ? 'Connected to KeepKey' : 'Launch KeepKey Desktop'}
</button>
);
}
Prop | Type | Default | Description |
---|---|---|---|
className | string | '' | Custom class name for the indicator |
style | CSSProperties | undefined | Custom style for the indicator |
connectionOptions | UseDesktopConnectionOptions | {} | Options for the useDesktopConnection hook |
showTooltip | boolean | true | Whether to show a tooltip with connection status |
connectedIndicator | ReactNode | undefined | Custom connected indicator component |
disconnectedIndicator | ReactNode | undefined | Custom disconnected indicator component |
tooltipComponent | ReactNode | undefined | Custom tooltip component |
onClick | function | undefined | Callback for when the indicator is clicked |
Option | Type | Default | Description |
---|---|---|---|
pollingInterval | number | 15000 | Polling interval in milliseconds |
timeout | number | 2000 | Timeout for connection check in milliseconds |
endpoint | string | 'http://localhost:1646/docs' | Endpoint to check for KeepKey Desktop |
MIT
FAQs
Connection status indicator for KeepKey Desktop
We found that @keepkey/connection-indicator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.