Typesense
PlatformOpen-source, typo-tolerant search engine, self-hosted or on Typesense Cloud
- Price
- Free tier, then paid
- Access
- API key (you set it when self-hosting)
About
Search engine written in C++ for instant, typo-tolerant keyword search plus vector, hybrid and geo search over a REST API. Run the GPL-3.0 server yourself as one binary or Docker image, or use Typesense Cloud, which has a free 0.5 GB cluster.
What you can do with it
- Add search-as-you-type with typo tolerance, filters and facets to a site or app
- Combine keyword and vector results in one hybrid search query
- Keep Algolia InstantSearch widgets and swap in a Typesense backend
Get started
- Start Typesense with Docker or create a free Typesense Cloud cluster
- Create a collection with a schema, then index documents
- Search with the q and query_by parameters
Example
mkdir -p typesense-data
docker run -d -p 8108:8108 -v "$(pwd)/typesense-data:/data" typesense/typesense:30.2 \
--data-dir /data --api-key=$TYPESENSE_API_KEY
curl "http://localhost:8108/collections" -X POST \
-H "Content-Type: application/json" -H "X-TYPESENSE-API-KEY: $TYPESENSE_API_KEY" \
-d '{"name": "companies", "fields": [{"name": "company_name", "type": "string"}]}'
curl "http://localhost:8108/collections/companies/documents" -X POST \
-H "Content-Type: application/json" -H "X-TYPESENSE-API-KEY: $TYPESENSE_API_KEY" \
-d '{"company_name": "Stark Industries"}'
curl "http://localhost:8108/collections/companies/documents/search?q=stork&query_by=company_name" \
-H "X-TYPESENSE-API-KEY: $TYPESENSE_API_KEY"Details
- Hosting
- Hosted service, Self-hosted
- Available in
- Worldwide
- Official SDKs
- JavaScript/TypeScript, Python, Ruby, PHP
- MCP server
- Remote