
Algolia Search
Covers the essentials for integrating Algolia's search into React and Next.js apps. You get patterns for the modern hooks-based InstantSearch setup, SSR configuration for Next.js (including the tricky bits around dynamic rendering and routing), and solid indexing strategies to keep your data synced without killing performance. The batching guidance is practical: 10MB or 1K-10K records per batch, prefer partial updates over full reindexing. Useful if you're implementing search functionality and want to avoid the common pitfalls around SSR state management and expensive delete operations. The sharp edges table exists but unfortunately has no details filled in.
- skills.sh installs
- 211
- GitHub stars
- 33.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add davila7/claude-code-templates --skill algolia-search --agent claude-codeInstalls into .claude/skills of the current project.
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:
- Full Reindexing - Replace entire index (expensive)
- Full Record Updates - Replace individual records
- Partial Updates - Update specific attributes only
Sponsors
Details
- Repository
- github.com/davila7/claude-code-templates
- Categories
- Frontend Development, Backend & APIs
- First seen
- Jun 3, 2026
More from davila7/claude-code-templates
All 618- Azure Functions211
- Form Cro211
- Openapi To Typescript211
- Vaex211
- Gtars210
- Flowio209
- Latchbio Integration209
- Molfeat209
- Dnanexus Integration208
- Exa Search208
- Labarchive Integration208
- Datamol207
- Pathml207
- Referral Program207
- Neon Postgres206
- Address Github Comments205
- Slack Bot Builder205
- Plaid Fintech204
- Daily Meeting Update203
- Github Actions Creator203
- Omero Integration203
- Opentrons Integration202
- Protocolsio Integration202
- Footballbin Predictions201