OramaJS · open source

    Full-text, vector, and hybrid search in one open-source library

    OramaJS runs in the browser, on your server, or at the edge. Define a schema, insert your documents, and search. Free, open source, from the team behind Orama Search.

    bash
    npm i @orama/orama

    Install it and see

    No account, no key, no service. The library is the whole thing.

    10.5k GitHub stars
    search.js
    import { create, insert, search } from '@orama/orama'
    
    const db = create({
      schema: {
        name: 'string',
        description: 'string',
        rating: 'number',
      },
    })
    
    insert(db, {
      name: 'Alpine 2 boot',
      description: 'Insulated waterproof hiking boot rated for winter routes',
      rating: 4.7,
    })
    
    const results = search(db, { term: 'waterproof winter boot' })
    // results.hits[0].document.name === 'Alpine 2 boot'
    

    It also runs straight from a CDN in the browser: import { create, insert, search } from 'https://cdn.jsdelivr.net/npm/@orama/orama@latest/+esm'

    What's in the box

    Three search modes

    Full-text, vector, and hybrid search over the same index.

    Answers, not just hits

    Chat sessions and generated answers grounded in your own index.

    Filters, facets, geosearch

    Narrow by field, facet the results, or search by location.

    Typo tolerance and exact match

    Forgiving when you want it, strict when you say so.

    Boosting and pinning

    Boost fields that matter and pin results where they belong.

    Multi-language text analysis

    Stemming and tokenization across a wide set of languages.

    A plugin system

    Extend indexing, ranking, and integrations without forking.

    Start in the docs

    Guides for every capability above, with runnable examples. If the docs don't answer it, the source will: the library is developed in the open.

    When you outgrow self-hosting

    OramaJS is free and stays free. But an index you host is an index you operate: pipelines, updates, uptime. When that stops being a good use of your time, Orama Cloud Pro does the operating: connect your content, get production search with AI answers, at a flat monthly price.