Algolia search

From satnamrsm/https-github.com-sickn33-antigravity-awesome-skills · View interactive version

Algolia search is an AI agent skill from the GitHub repository satnamrsm/https-github.com-sickn33-antigravity-awesome-skills. Expert patterns for Algolia search implementation, indexing strategies, React InstantSearch, and relevance tuning Use when: adding search to, algolia, instantsearch, search api, search functionality.

How to use this skill

Skill file

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:

Next.js Server-Side Rendering

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

Use <InstantSearchNext> instead of <InstantSearch> for SSR.

Supports both Pages Router and App Router (experimental).

Key considerations:

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

Best practices:

⚠️ Sharp Edges

| Issue | Severity | Solution |

|-------|----------|----------|

| Issue | critical | See docs |

| Issue | high | See docs |

| Issue | medium | See docs |

| Issue | medium | See docs |

| Issue | medium | See docs |

| Issue | medium | See docs |

| Issue | medium | See docs |

| Issue | medium | See docs |

When to Use

This skill is applicable to execute the workflow or actions described in the overview.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.