Configure the agent to collect, filter and send bundle stats and build information to RelativeCI.
This page contains the setup guide for the RelativeCI agent v5. Go to RelativeCI agent v4 to follow the setup guide for the previous version.
The RelativeCI agent runs in your CI pipeline after a build to collect the bundle stats JSON file, read build metadata (branch, commit, pull request), and send the data to RelativeCI for analysis. It supports webpack, rspack, Vite, Rollup, Next.js, Nuxt, Gatsby, Astro, SvelteKit, and any other bundler that produces a webpack-compatible stats file.
Select a method to setup and configure the agent:
- GitHub Action — recommended for open-source projects or projects with strict security policies; supports forks, dependabot, and
workflow_runevents - CLI — recommended for advanced configurations; two-step setup with separate stats generation and ingestion jobs
- Webpack Plugin — recommended for small/medium private projects; one-step setup for webpack, rspack, Next.js, and Gatsby
- Rollup Plugin (beta) — recommended for small/medium private projects; one-step setup for Rollup, Vite, and Rolldown
GitHub Action
- Recommended for open-source projects or projects with strict security policies
- Support for forks and unsecure workflows (eg: dependabot)
- Support for webpack, rspack, vite, rollup, Next.js, Nuxt, Gatsby, Astro, SvelteKit, etc
Command line (CLI)
- Recommended for projects with advanced configuration
- Two steps setup that offers advanced control for the bundle stats artifact and ingestion job
- Support for webpack, rspack, vite, rollup, Next.js, Nuxt, Gatsby, Astro, SvelteKit, etc
Webpack Plugin
- Recommended for small/medium size private projects
- One step setup
- Support for webpack, rspack, Next.js, Gatsby, etc
Rollup Plugin (beta)
- Recommended for small/medium size private projects
- One step setup
- Support for Rollup, Vite, Rolldown