algolia-sdk-patterns

Installation
SKILL.md

Algolia SDK Patterns

Overview

Production-ready patterns for algoliasearch v5. Key architectural change from v4: all methods live on the client directly — no more client.initIndex(). Index name is passed as a parameter to every call.

Prerequisites

  • algoliasearch v5+ installed
  • Completed algolia-install-auth setup
  • TypeScript project (patterns work in JS too, you just lose type safety)

Instructions

Pattern 1: Typed Singleton Client

// src/algolia/client.ts
import { algoliasearch, type Algoliasearch } from 'algoliasearch';
Installs
1
GitHub Stars
2.3K
First Seen
Apr 13, 2026
algolia-sdk-patterns — jeremylongshore/claude-code-plugins-plus-skills