Skip to content

Plugin Architecture

Extend Browser Lifecycle with focused plugins.

Implementation

ts
lifecycle.registerPlugin({
  id: "telemetry",
  onStart(ctx) {
    ctx.log("telemetry started");
  },
  onEvent(event) {
    if (event.name === "page:hidden") {
      flushTelemetry();
    }
  },
});

Best practices

Plugin Development

Playground

Plugin Playground

JOC is a JayOnCode monorepo of @jayoncode/* packages. Docs sync from source via TypeDoc and sync scripts.