AegisRunner
Start free

// vite testing

AI end-to-end testing for Vite — React, Vue, Svelte.

Add one line to your vite.config, run your dev server, and an AI scan of your app is one click away — right inside the app, on localhost. The browser runs on your own machine, so there’s no deploy, no staging URL, and no tunnel to fall over on a big single-page app.

vite.config.js
$ npm install -D @aegisrunner/vite

// vite.config.js
import { defineConfig } from 'vite'
import aegis from '@aegisrunner/vite'

export default defineConfig({ plugins: [ aegis() ] })

# then, as usual — the shield appears in your app:
$ npm run dev

dev-only (`apply: 'serve'`). never runs in `vite build`.

// the flow

From dev server to a real test suite — on your machine.

01

Add the plugin

One line in vite.config: plugins: [ aegis() ]. It's dev-only (apply: 'serve') — it never runs in vite build.

02

Run vite (npm run dev)

A floating shield appears in your app. The browser runs on your own machine and scans localhost directly — no tunnel, no deploy.

03

AI explores your app

The agent drives your components, routes and forms like a user — React, Vue, Svelte or Solid — and signs in if you set a credential.

04

Tests come back

A generated end-to-end suite plus accessibility, SEO and functional findings — keyed to your real pages, before you push.

// why aegisrunner for vite

Built for the way you ship on Vite.

Whole Vite ecosystem

React, Vue, Svelte, Solid, Preact — anything on Vite. Framework-agnostic; no per-stack setup.

Runs on your machine

The browser drives localhost directly — no tunnel, no cloud relay. Fast even on large SPAs with hundreds of routes.

Shield in your app

Click Test this page or Test the whole site inside your running app — live progress, link to results.

Zero test code

No Playwright scripts, no brittle selectors. The AI decides what to test from your live app.

Export to Playwright

Own the output: export any generated suite to Playwright and run it with npx playwright test.

Signs in for you

Set a username/password (or a saved role) and the local browser signs in itself — credentials stay on your machine.

// faq

Vite testing, answered

How do I add AegisRunner to a Vite app?

Install @aegisrunner/vite and add it to your plugins: `plugins: [ aegis() ]`. On `npm run dev` a shield appears in your app; click it to scan. No deploy, no staging URL — the browser runs on your own machine against localhost.

Does it work with React, Vue and Svelte?

Yes — anything on Vite. The AI drives your app in a real browser, so it tests the rendered result regardless of framework: React, Vue, Svelte, Solid, Preact and more. There’s nothing framework-specific to configure.

My app is a big single-page app — will it keep up?

That’s exactly why local execution is the default. The browser runs on your machine and hits localhost directly, so a SPA that fires hundreds of module requests scans fast — there’s no tunnel relay to overwhelm.

Do I have to deploy to a staging URL first?

No. Local execution runs a real headless browser on your machine (via @aegisrunner/scan-runner — no Docker) and scans localhost directly. Nothing is exposed to the internet; only the findings come back.

How does it test pages behind authentication?

Set AEGIS_USERNAME / AEGIS_PASSWORD (or a saved --role) and the local browser signs in itself — credentials never leave your machine. The AI maps your username onto whatever the form calls its identity field.

Can I run the generated tests in CI?

Yes. Export any suite to Playwright and run it in your pipeline, or trigger a full AegisRunner scan/run from CI with a JUnit report. The same CI token powers the plugin and your pipeline.

Test your Vite app in two minutes

Add the plugin, start your dev server, click the shield. Watch the AI explore your app and hand you tests before you deploy.