Introducing Magic Devtools 1.0.0
See your app the way Magic sees it.
The Magic adapter layer for the tapir and crumbs dev tools. It enriches their snapshots and records with Magic-aware context, and behind a !kReleaseMode guard it is absent from release builds.
Dev tools that understand Magic.
tapir and crumbs know nothing about Magic. Magic Devtools adapts them, so an LLM agent or a CI driver reads the route, the auth user, controller state and Gate results instead of guessing.
-
Magic-aware snapshots
Learn more about Magic-aware snapshotsMagicTapirIntegration.install()registers enrichers on tapir snapshots: route and middleware, forms and errors, controller state, Gate results, the auth user, Echo when broadcasting is bound, and recent HTTP, logs and exceptions. -
Magic-aware records
Learn more about Magic-aware recordsMagicCrumbsIntegration.install()registers crumbs watchers for Magic events and aMagicHttpFacadeAdapterthat records Magic HTTP requests. -
Masked auth header
The header named by
Learn more about Masked auth headerauth.token.header(defaultAuthorization) is hidden in crumbs records. Bodies go through crumbs' own redaction. -
One umbrella, two phases
Learn more about One umbrella, two phasesMagicDevtools.installPre()runs beforeMagic.init()andinstallPost()after it, so tapir and crumbs boot first and Magic attaches once the container exists. -
Performance sessions
Learn more about Performance sessionsMagicPerfIntegration.install()records performance sessions with insight rules (PerfInsightRules) and a navigator observer. -
Dev-only preview catalog
Learn more about Dev-only preview catalogMagicPreview.register(...)andMagicPreview.registerRoutes()add/previewand/preview/:component. One component at a time, light or dark from a header toggle.
Add it in seconds
Or add to pubspec.yaml:
dependencies:
magic_devtools: ^1.0.0
Or give your AI agent this prompt: