JavaScript/TypeScript search engine that runs in the browser, on a server or at the edge. It supports full-text, vector and hybrid search, plus chat-style RAG sessions, filters, facets and typo tolerance.
Overview
Orama is a search engine written in JavaScript and TypeScript that you embed in your own application. It runs in the browser, on a server or on an edge network. You create a database instance by defining an indexing schema, then insert documents and query them.
It supports full-text search with BM25 scoring, typo tolerance, exact match, field boosting, filters, facets and geosearch. Vector search and hybrid search are available by setting the search mode and supplying embeddings at query time. Stemming and tokenization are provided for 30 languages. Pinning rules allow merchandising-style control over results.
Schemas support ten data types, including strings, numbers, booleans, enums, geopoints, arrays of those types and vectors. Since version 3, Orama can also run GenAI chat sessions, so you can build a ChatGPT- or Perplexity-like experience over your own data. This needs calls to the OpenAI APIs; the Secure Proxy plugin is intended for making those calls safely from client-side code.
A plugin system extends the library. Official plugins cover embeddings, a secure proxy, analytics, data persistence and QPS. Others integrate with documentation tools such as Docusaurus, Astro, Nextra and Vitepress. You can install it with npm, yarn, pnpm or bun, or import it from a CDN in a browser module or in Deno.
The company behind it also sells an enterprise AI platform; what follows is the embeddable search library.
Key features
- Full-text search with BM25
- Vector and hybrid search
- GenAI chat sessions (RAG)
- Typo tolerance and exact match
- Filters, facets and geosearch
- Field boosting and pinning rules
- Stemming and tokenization in 30 languages
- Plugin system
Use cases
- Client-side search in web apps
- Site search for documentation
- Semantic search with embeddings
- Chat-style Q&A over your own data
- Edge or server-side search