Skip to content

Expert Algolia search patterns for React InstantSearch hooks, Next.js SSR, indexing strategies, and relevance tuning.

CCM score
53 of 100
skills.sh installs
211
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers React InstantSearch with hooks, Next.js server-side rendering, and data synchronization and indexing for Algolia
  • Includes hook guidance for useSearchBox, useHits, useRefinementList, usePagination, and useInstantSearch
  • Recommends batching records at about 10MB and 1K to 10K records per batch, and avoids deleteBy as computationally expensive
  • Designed for developers adding type-ahead search or faceted filtering to React and Next.js applications

Install

$ npx -y skills add davila7/claude-code-templates --skill algolia-search -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Algolia Search Integration

Patterns

React InstantSearch with Hooks

Modern React InstantSearch setup using hooks for type-ahead search.

Uses react-instantsearch-hooks-web package with algoliasearch client. Widgets are components that can be customized with classnames.

Key hooks:

  • useSearchBox: Search input handling
  • useHits: Access search results
  • useRefinementList: Facet filtering
  • usePagination: Result pagination
  • useInstantSearch: Full state access

Next.js Server-Side Rendering

SSR integration for Next.js with react-instantsearch-nextjs package.

Use instead of for SSR. Supports both Pages Router and App Router (experimental).

Key considerations:

  • Set dynamic = 'force-dynamic' for fresh results
  • Handle URL synchronization with routing prop
  • Use getServerState for initial state

Data Synchronization and Indexing

Indexing strategies for keeping Algolia in sync with your data.

Three main approaches:

  1. Full Reindexing - Replace entire index (expensive)
  2. Full Record Updates - Replace individual records
  3. Partial Updates - Update specific attributes only

Details

Repository
github.com/davila7/claude-code-templates
Categories
Frontend & UI Code, Backend & APIs
First seen
Jun 3, 2026

Questions

What is the algolia-search skill for?

algolia-search gives Claude Code expert patterns for Algolia search implementation, indexing strategies, React InstantSearch and relevance tuning. It covers adding search to a project, with type-ahead search built from hooks such as useSearchBox and useHits.

How do I install the algolia-search skill?

Run npx -y skills add davila7/claude-code-templates --skill algolia-search -y in a project to install it. Once installed, algolia-search lets the agent follow its React InstantSearch, Next.js server-side rendering and data indexing patterns.

Does algolia-search support Next.js server-side rendering?

algolia-search includes a Next.js server-side rendering pattern built on the react-instantsearch-nextjs package, using InstantSearchNext in place of InstantSearch. It also covers both the Pages Router and the experimental App Router.

How does algolia-search keep an Algolia index in sync with my data?

algolia-search describes three indexing approaches: full reindexing, full record updates and partial updates. It advises batching records, preferring incremental updates, using partialUpdateObjects for attribute-only changes and avoiding deleteBy.

More from davila7/claude-code-templates

All 398

Similar to Algolia Search

More Frontend & UI Code