
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
@blac/devtools-ui
Advanced tools
Reusable DevTools UI components for BlaC state management. Provides in-app debugging tools that can be embedded as floating overlays or Picture-in-Picture windows.
npm install @blac/devtools-ui @blac/devtools-connect @blac/react @blac/core
# or
pnpm add @blac/devtools-ui @blac/devtools-connect @blac/react @blac/core
# or
yarn add @blac/devtools-ui @blac/devtools-connect @blac/react @blac/core
Step 1: Register the DevTools plugin:
import { getPluginManager } from '@blac/core';
import { createDevToolsBrowserPlugin } from '@blac/devtools-connect';
getPluginManager().register(
createDevToolsBrowserPlugin({
enabled: import.meta.env.DEV,
}),
);
Step 2: Add the DevTools UI component:
import { BlacDevtoolsUi } from '@blac/devtools-ui';
function App() {
return (
<>
{import.meta.env.DEV && <BlacDevtoolsUi />}
<YourApp />
</>
);
}
Step 3: Toggle with Alt+D
Auto-initializing DevTools overlay component. Uses Picture-in-Picture API when available (Chrome 116+), falls back to draggable overlay.
import { BlacDevtoolsUi } from '@blac/devtools-ui';
// Auto-detect best mode
<BlacDevtoolsUi />
// Force overlay mode (skip PiP)
<BlacDevtoolsUi mode="overlay" />
// Force Picture-in-Picture mode
<BlacDevtoolsUi mode="pip" />
Floating DevTools window that can be dragged and resized.
import { DraggableOverlay } from '@blac/devtools-ui';
<DraggableOverlay
onMount={(instancesBloc) => {
// Custom initialization logic
}}
/>;
Opens DevTools in a separate Picture-in-Picture window (Chrome 116+).
import { PictureInPictureDevTools, isPiPSupported } from '@blac/devtools-ui';
if (isPiPSupported()) {
<PictureInPictureDevTools />;
}
Core panel component for custom integrations (Chrome extension, etc.).
import { DevToolsPanel } from '@blac/devtools-ui';
<DevToolsPanel
onMount={(instancesBloc) => {
// Connect to data source
return () => {
// Cleanup
};
}}
/>;
Alt+D, close with Esc| Shortcut | Action |
|---|---|
Alt+D | Toggle DevTools |
Esc | Close DevTools |
Toggle DevTools programmatically:
window.dispatchEvent(new CustomEvent('blac-devtools-toggle'));
Listen for time-travel events:
window.addEventListener('blac-devtools-time-travel', (event) => {
const { targetState, restoredCount } = event.detail;
console.log(`Restored ${restoredCount} blocs`);
});
The DevTools UI uses its own BlaC-based state management:
import {
DevToolsInstancesBloc,
DevToolsSearchBloc,
DevToolsDiffBloc,
DevToolsLayoutBloc,
DevToolsLogsBloc,
} from '@blac/devtools-ui';
// Main components
export { BlacDevtoolsUi } from '@blac/devtools-ui';
export { DevToolsPanel } from '@blac/devtools-ui';
export { DraggableOverlay, defaultDevToolsMount } from '@blac/devtools-ui';
export { PictureInPictureDevTools, isPiPSupported } from '@blac/devtools-ui';
// Blocs
export {
DevToolsInstancesBloc,
DevToolsSearchBloc,
DevToolsDiffBloc,
DevToolsLayoutBloc,
DevToolsLogsBloc,
} from '@blac/devtools-ui';
// Types
export type {
DevToolsUIProps,
InstanceData,
DraggableOverlayProps,
PictureInPictureDevToolsProps,
BlacDevtoolsUiProps,
} from '@blac/devtools-ui';
| Browser | Overlay Mode | Picture-in-Picture Mode |
|---|---|---|
| Chrome 116+ | Yes | Yes |
| Chrome < 116 | Yes | No |
| Firefox | Yes | No |
| Safari | Yes | No |
| Edge | Yes | Yes (Chromium-based) |
MIT
FAQs
DevTools UI components for BlaC state management
We found that @blac/devtools-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.