Skip to main content

Installation

DortDB is distributed as a set of npm packages. You always install the core, and then add one or more language packages.

Core

npm install @dortdb/core

@dortdb/core contains the DortDB engine, the optimizer, the index abstractions, and all the extension points. It ships no query language on its own; you add those separately.

Language packages

Install whichever of the provided languages you want to use:

npm install @dortdb/lang-sql
npm install @dortdb/lang-cypher graphology
npm install @dortdb/lang-xquery

Each language package declares @dortdb/core as a peer dependency, so a single core instance is shared across all of them.

Bundle size

Because the core and each language are separate packages, a browser bundle only includes the languages and extensions you actually import. Loading SQL does not pull in the Cypher or XQuery parsers.

Optional extensions

Extensions bundle extra functions, operators, or aggregates. The provided datetime extension adds date/time helpers:

npm install @dortdb/datetime

See Extending DortDB for how extensions work and how to write your own.

Next step

Continue to Your First Query to construct an engine and run a query.