Getting Started with Orama
Orama is a fast, batteries-included, full-text and vector search engine entirely written in TypeScript, with zero dependencies.
Get started with just a few lines of code:
Requirements
A JavaScript runtime is the only requirement. Orama has been designed to work on any runtime and has no dependencies.
Installation
You can install Orama using npm, yarn, pnpm:
Or import it directly in a browser module:
Basic usage
For more information, check out the Usage section.
CommonJS Imports
Orama ships ESM modules by default. This allows us to move faster when providing new features and bug fixes, as well as using the "exports"
field in package.json
to provide a better developer experience.
CommonJS imports are still supported, but we suggest you to migrate to ESM.
TypeScript
Set moduleResolution
in the compilerOptions
in your tsconfig.json
to be either Node16
or NodeNext
.
When importing types, always refer to the standard orama import:
Community Rewards
Are you using Orama in production? Have you written an article or made a YouTube video on Orama? Contact us to get some Orama swag in return!