Skip to content
Kitbay

plugin-bundle-size

Apache-2.0Updated on Nov 10, 2026307GitHub stars

A Grafana skill for making an app plugin load faster by shrinking the module.js bundle the browser fetches first.

What the skill teaches

A Grafana skill for making an app plugin load faster by shrinking the module.js bundle the browser fetches first. The agent can add bundle size reporting in CI, checks the plugin type and updates @grafana/create-plugin, looks for code worth splitting, then applies React.lazy, Suspense and webpack code splitting in priority order: the module entry point, routes in App.tsx, extension components and component registries or tabs. It regroups chunks if splitting goes too far, measures the result and tests the running plugin. Risk levels are given for each change.

Capabilities

  • Report plugin bundle size in CI
  • Lazy load plugin pages and extensions
  • Split module.js with webpack code splitting
  • Measure bundle size before and after