Integrations
Adapters wrap external state or events as Triggery primitives; integrations live on the developer-experience side — they ship with your tooling, not with your runtime.
Build tools
Section titled “Build tools”| Package | What it does |
|---|---|
@triggery/vite | Vite plugin: auto-imports every *.trigger.ts file via a virtual:triggery-registry module and supports HMR for trigger edits. No import './triggers/foo.trigger' by hand. |
Webpack and Rspack auto-discovery plugins are on the roadmap for the 1.0 cycle.
Code quality
Section titled “Code quality”| Package | What it does |
|---|---|
@triggery/eslint-plugin | ESLint 9 flat-config plugin. Eight rules: no-event-cascade, no-dynamic-id, hook-rules, exhaustive-conditions, exhaustive-required, max-handler-size, max-ports-per-trigger, prefer-named-hook. Ships recommended and strict presets. |
@triggery/codemod | ts-morph codemods. extract-trigger pulls a useEffect block into a *.trigger.ts file; migrate-from-listener-middleware generates one trigger per RTK startListening call. CLI and programmatic API. |
CLI and scaffolding
Section titled “CLI and scaffolding”| Package | What it does |
|---|---|
@triggery/cli | triggery create (scaffold a project from templates via giget), triggery scaffold trigger (new *.trigger.ts file), triggery graph (print the trigger graph as JSON / DOT / Markdown), triggery lint (run ESLint with the recommended preset shimmed in). |
DevTools
Section titled “DevTools”| Package | What it does |
|---|---|
@triggery/devtools-redux | Middleware that streams runtime events into the Redux DevTools browser extension. Labels actions triggery/<id>/fire and friends. Works whether or not you actually use Redux. |
@triggery/devtools-panel | Drop-in React components for in-app inspection — <InspectorView>, <TriggerSnapshotView>. Ship them behind a feature flag in dev. |
@triggery/devtools-bridge | installDevtoolsBridge(runtime) — page-side bridge that exposes the runtime for external inspectors (Chrome extension, standalone panel). |
| Chrome DevTools extension | Load unpacked from extensions/chrome-devtools. Live inspector panel over the devtools-bridge. |
Coming after 1.0
Section titled “Coming after 1.0”@triggery/devtools-replay— record / replay / time-travel.@triggery/otel— one OpenTelemetry span per handler run.@triggery/sentry— Sentry breadcrumbs adapter.@triggery/broadcast— multi-tab sync viaBroadcastChannel.- VS Code extension — “used by N triggers” lens, “Go to trigger” navigation.
Adapters State manager and event-source packages.
Roadmap What's shipped, what's planned.
CLI guide triggery create / scaffold / graph / lint.
Codemod guide extract-trigger and friends.