Typesense an open-source alternative to Algolia and Elasticsearch
What is it
Typesense an open-source alternative to Algolia and Elasticsearch.
Show me the code Click here
Otherwise keep reading.
One key feature of any website or web application is the ability to search the data or content within the system. A fast and accurate search experience can improve user experience for you customers.
Building a custom search into your application can be a deeply technical and expensive endeavor in terms of hours and subscription fees. Typesense is aiming to fix those pains with it’s Open-Sourced solution to web search Typesense.
Typesense is a fast typo tolerant search engine boasting a sub-50ms search that feels instant. Typesense is built in C++, it is free to use and deploy on self hosted projects.
A few notable features include
Typesense will automatically try to correct your typos. Typo tolerance is configurable on a per field basis.
Multi-tenant API Keys
Security through API keys, which allows you to restrict access to specific sets of data, not all apps need to have access to all your data.
Filter data using geolocation data to retrieve data within a given radius.
Users are able to search across multiple data sets (collections) in one HTTP request.
Other features include synonyms, tunable ranking, result pinning, filtering and faceting, dynamic sorting, easy high availability and easy version upgrades.
UI component libraries
If that wasn’t cool enough to further smooth the road, Typesense has UI Component adapters to help you build your UI. The Typesense Instant Search Adapter is based on Algolia open-sourced instantsearch.js. If you have experience with Algolias adapter it makes the switch to Typesense all that much smoother.
The adapter comes in 4 flavours
This demo should run on your localhost only. Have fun 🚀
Typesense React Client
Fork it Click here
What you will see:
✨ Bootstrapped with Create Snowpack App (CSA).
Use Docker for MAC/Windows etc it's the simplest for this code demo.
Run the following scripts in multiple tabs in the order they appear here:
Yarn, to install all dependencies.
Pulls down a Typesense Docker image (v0.22.0.rcu6), sets a local data directory, maps it to the container and starts the container. Container is running on port 8180.
Indexes the demo e-commerce data into Typesense. Thanks to @jasonbosco for this.
🚨 Note: environment variables are dangerously set to
process.env.SNOWPACK_PUBLIC_and should not be deployed to production servers in this demonstration state.
Runs the app in the development mode. Open http://localhost:8080 to view it in the browser.
The page will reload if you make edits. You will also see any lint errors in the console.
Builds a static copy of your site to the
Your app is ready to be deployed!
What about EJECT? No eject needed! Snowpack guarantees zero lock-in, and CSA strives for the same.
Stay up to date
Consider keeping up to date with software development and design by signing up to my newsletter.I will only email you when I make a new post.