swiftsearch
swiftsearch
Nuxt module for a typesafe, SSR first algolia instantsearch experience
Nuxt Swiftsearch
A tailor made implementation of algolia instantsearch for nuxt 3.
Features
- 🍀 SSR First, client only on demand, as is any other nuxt component
- 🗼 Centralized state, you can tap into it from anywhere in your app
- 🌲 99% compatible with vue-instantsearch current implementation
- 👮 Typed components
Quick Setup
- Add
@atoms-studio/nuxt-swiftsearch
dependency to your project
# Using pnpm
pnpm add -D @atoms-studio/nuxt-swiftsearch
# Using yarn
yarn add --dev @atoms-studio/nuxt-swiftsearch
# Using npm
npm install --save-dev @atoms-studio/nuxt-swiftsearch
# Using bun
bun add -D @atoms-studio/nuxt-swiftsearch
- Add
@atoms-studio/nuxt-swiftsearch
to themodules
section ofnuxt.config.ts
export default defineNuxtConfig({
modules: ["@atoms-studio/nuxt-swiftsearch"],
});
That's it! You can now use Nuxt Swiftsearch in your Nuxt app ✨
Development
# Install dependencies
npm install
# Generate type stubs
npm run dev:prepare
# Develop with the playground
npm run dev
# Build the playground
npm run dev:build
# Run ESLint
npm run lint
# Run Vitest
npm run test
npm run test:watch
# Release new version
npm run release