Install Orama using npm, yarn, pnpm, bun, CDN, or Deno to get started with powerful search capabilities.
Orama can be installed using your favorite package manager or imported directly via CDN. Choose the installation method that works best for your project.
Orama is written in TypeScript and includes full type definitions out of the box. You don’t need to install any additional @types packages.When you create a database with a schema, Orama automatically infers types for your documents:
import { create, insert } from '@orama/orama'const db = create({ schema: { title: 'string', year: 'number', rating: 'number' }})// TypeScript knows the shape of your documentsinsert(db, { title: 'The Prestige', year: 2006, rating: 8.5})// This would cause a TypeScript error:// insert(db, { title: 123 }) // Error: Type 'number' is not assignable to type 'string'
Orama requires Node.js version 20.0.0 or higher when running in Node.js environments. There are no version requirements for browser, Deno, or Bun environments.