npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vite-plugin-intellitester

v0.4.1

Published

Vite plugin for integrating IntelliTester into Vite projects

Readme

vite-plugin-autotester

Vite plugin for integrating AutoTester into your Vite projects. Automatically generates test stubs, provides a dev server endpoint for test management, and integrates with AutoTester's testing capabilities.

Features

  • Automatic Test Stub Generation: Scans your components and generates YAML test stubs
  • Dev Server Integration: Adds a /__autotester endpoint to view and manage tests
  • Hot Module Replacement: Watches test files and re-runs tests on changes
  • Build Integration: Optionally run tests after build completion
  • TypeScript Support: Full TypeScript definitions included

Installation

npm install vite-plugin-autotester
# or
pnpm add vite-plugin-autotester
# or
yarn add vite-plugin-autotester

Usage

Add the plugin to your vite.config.ts:

import { defineConfig } from 'vite';
import { autotester } from 'vite-plugin-autotester';

export default defineConfig({
  plugins: [
    autotester({
      // Scan these patterns for components to generate test stubs
      include: ['src/components/**/*.tsx', 'src/pages/**/*.tsx'],

      // Directory for test files
      testsDir: './tests',

      // Watch test files in dev mode
      watchTests: true,

      // Run tests after build
      runOnBuild: false,

      // Path to AutoTester config
      configPath: 'autotester.config.yaml',
    }),
  ],
});

Configuration Options

include

  • Type: string[]
  • Default: []
  • Description: Glob patterns for components to scan and generate test stubs for
include: ['src/components/**/*.tsx', 'src/pages/**/*.tsx']

testsDir

  • Type: string
  • Default: './tests'
  • Description: Directory where test files are stored

watchTests

  • Type: boolean
  • Default: true
  • Description: Whether to watch test files and re-run tests in dev mode

runOnBuild

  • Type: boolean
  • Default: false
  • Description: Whether to run tests after build completes

configPath

  • Type: string
  • Default: 'autotester.config.yaml'
  • Description: Path to autotester.config.yaml

endpoint

  • Type: string
  • Default: '/__autotester'
  • Description: Base URL for the dev server endpoint

Dev Server Endpoint

When running the Vite dev server, navigate to http://localhost:5173/__autotester (or your configured port) to view:

  • Test configuration status
  • Available test files
  • Test execution options

Test Stub Generation

The plugin automatically generates test stubs for components matching your include patterns. Each stub follows AutoTester's YAML format:

name: Button Component Test
platform: web

config:
  web:
    baseUrl: http://localhost:5173
    headless: false
    timeout: 30000

steps:
  - type: navigate
    value: /

  - type: screenshot
    name: button-initial-state

Note: Test stubs are only created if they don't already exist. The plugin will not overwrite your customized tests.

Requirements

  • Vite 5.x, 6.x, or 7.x
  • Node.js 18+
  • TypeScript 5+ (recommended)

Integration with AutoTester

This plugin works alongside the AutoTester CLI. To run your tests:

# Install AutoTester
npm install autotester

# Run all tests
npx autotester run

# Run a specific test
npx autotester run tests/Button.test.yaml

Example Project Structure

my-vite-app/
├── src/
│   ├── components/
│   │   ├── Button.tsx
│   │   └── Input.tsx
│   └── pages/
│       └── Home.tsx
├── tests/
│   ├── components/
│   │   ├── Button.test.yaml  # Auto-generated
│   │   └── Input.test.yaml   # Auto-generated
│   └── pages/
│       └── Home.test.yaml    # Auto-generated
├── autotester.config.yaml
├── vite.config.ts
└── package.json

License

MIT

Author

Zach Handley [email protected]