Available Examples
E-Commerce Search
Complete product search with facets, filters, sorting, and pagination
Media Search
Image and article search with infinite scroll and date filtering
Geographic Search
Location-based search with map visualization using GeoSearch
Multi-Index Search
Search across multiple indices simultaneously
Next.js SSR
Server-side rendering with Next.js for better SEO and performance
URL Routing
Sync search state with URL for shareable searches
Source Code
All examples are available in the InstantSearch repository under theexamples/ directory:
- JavaScript:
examples/js/ - React:
examples/react/ - Vue:
examples/vue/
Getting Started
Each example includes:Running Examples Locally
To run any example from the repository:Most examples use demo Algolia credentials that are publicly available. For production use, replace these with your own Algolia application ID and API key.
Framework Variations
Many examples are available in multiple framework implementations:| Example | JavaScript | React | Vue |
|---|---|---|---|
| E-Commerce | ✓ | ✓ | ✓ |
| Media Search | ✓ | - | ✓ |
| Geographic Search | ✓ | - | - |
| Query Suggestions | ✓ | ✓ | - |
| SSR | - | ✓ | ✓ |
| Next.js | - | ✓ | - |
Common Patterns
Across all examples, you’ll find consistent patterns:Search Client Setup
Widget Configuration
Widgets are configured with containers and customizable templates:Styling
Examples use InstantSearch CSS themes as a foundation:Need Help?
If you have questions about any example:- Check the example’s README file in the repository
- Visit our community forum
- Review the API reference for widget options
- Explore guides for conceptual explanations