# @reckona/mreact-devtools

> Runtime event bridge for mreact developer tooling.

Latest version **0.0.225** (published 2026-09-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @reckona/mreact-devtools
pnpm add @reckona/mreact-devtools
yarn add @reckona/mreact-devtools
bun add @reckona/mreact-devtools
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.0.225 |
| Published | 2026-09-15 |
| First published | 2026-05-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 97.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 0 |
| Maintainers | tatsuokaniwa |
| Keywords | debugging, devtools, events, jsx, mreact, typescript |

## Links

- npm: https://www.npmjs.com/package/@reckona/mreact-devtools
- Repository: https://github.com/t-k/mreact
- Homepage: https://github.com/t-k/mreact/tree/main/packages/devtools#readme
- Issues: https://github.com/t-k/mreact/issues
- npm.io page: https://npm.io/package/@reckona/mreact-devtools

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.225 (latest) — 2026-09-15
- 0.0.224 — 2026-09-15
- 0.0.223 — 2026-09-13
- 0.0.222 — 2026-09-13
- 0.0.221 — 2026-09-12
- 0.0.220 — 2026-09-12
- 0.0.219 — 2026-09-12
- 0.0.218 — 2026-09-12
- 0.0.217 — 2026-09-12
- 0.0.216 — 2026-09-10
- 0.0.215 — 2026-09-09
- 0.0.214 — 2026-09-09
- 0.0.213 — 2026-09-07
- 0.0.212 — 2026-09-06
- 0.0.211 — 2026-09-06
- … 209 more at https://npm.io/package/@reckona/mreact-devtools/versions

## README

# @reckona/mreact-devtools

`@reckona/mreact-devtools` provides a small event bridge for runtime tooling.
Reactive runtime packages can emit structured events, and developer tools can
subscribe without coupling directly to internal runtime state.

## Basic Usage

```ts
import { createDevtools, installDevtools } from "@reckona/mreact-devtools";

const devtools = installDevtools(createDevtools());

const unsubscribe = devtools.subscribe((event) => {
  console.log(event.type, event.payload);
});
```

For a browser inspector during development, mount the in-page overlay from the
`overlay` subpath:

```ts
if (import.meta.env.DEV) {
  const { mountDevtoolsOverlay } = await import("@reckona/mreact-devtools/overlay");

  mountDevtoolsOverlay();
}
```

## Core APIs

- `createDevtools()` creates an isolated event bus with a retained history capped at 1,000 events by default.
- `createDevtools({ maxEvents })` customizes the retained event history limit. Live subscribers still receive every emitted event immediately; the limit only affects `devtools.events()`.
- `defaultDevtoolsMaxEvents` exposes the default retained history limit.
- `installDevtools()` installs a devtools instance on `globalThis`.
- `getInstalledDevtools()` returns the currently installed instance.
- `devtools.emit()` and `devtools.subscribe()` move runtime events.
- `mountDevtoolsOverlay()` mounts a small browser inspector with Reactive,
  Query, and Router tabs. It keeps only the latest 200 events by default.

## Notes

The overlay is opt-in and has no side effects until mounted. Keep the dynamic
import behind a development guard so production bundles do not include it.

---
_Source: https://npm.io/package/@reckona/mreact-devtools · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
