Skip to content

mateuszkulpa/nuxt-ab-testing

Repository files navigation

Nuxt A/B Testing

npm version npm downloads License Nuxt

🚧 This project is currently under development and not yet production ready.

Nuxt module designed to seamlessly integrate A/B testing.

Planned features

  • 🔄 Dynamic variant assignment
  • ⚙️ Comprehensive configuration options
  • 📐 Extensible variant definitions
  • 📅 Scheduled testing controls
  • 📊 Analytics and event tracking
  • 🛠 Developer tools and internal analytics dashboard
  • 💾 Flexible storage options

Quick Setup

  1. Add nuxt-ab-testing dependency to your project
# Using pnpm
pnpm add -D nuxt-ab-testing

# Using yarn
yarn add --dev nuxt-ab-testing

# Using npm
npm install --save-dev nuxt-ab-testing
  1. Add nuxt-ab-testing to the modules section of nuxt.config.ts
export default defineNuxtConfig({
  modules: [
    'nuxt-ab-testing'
  ]
})

That's it! You can now use Nuxt A/B Testing in your Nuxt app ✨

Development

# Install dependencies
pnpm install

# Generate type stubs
pnpm run dev:prepare

# Develop with the playground
pnpm run dev

# Build the playground
pnpm run dev:build

# Run ESLint
pnpm run lint

# Run Vitest
pnpm run test
pnpm run test:watch

# Release new version
pnpm run release