Installation
DreamDB ships as a single npm package for both Node.js and browser environments.
npm / pnpm / yarn
Then import the SDK in your application:
Browser via CDN
For quick prototypes or standalone HTML pages, load DreamDB from a CDN:
The script exposes a global DreamDB object:
Requirements
| Environment | Minimum version | Notes |
|---|---|---|
| Node.js | 18+ | Uses the native fetch API (stable since Node 18) |
| Browser | Any modern browser | Chrome 66+, Firefox 57+, Safari 12.1+, Edge 79+ |
| TypeScript | 5.0+ | Type declarations are bundled in the package |
The only runtime dependency is a standards-compliant fetch implementation. No native add-ons or WebAssembly modules are required.
Backend setup
DreamDB stores data on any S3-compatible object store. For local development, the fastest path is MinIO:
For production, point at any S3-compatible endpoint (AWS S3, Cloudflare R2, Backblaze B2, Wasabi). Set the standard AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_REGION environment variables and the HTTP connector auto-signs requests with SigV4.
Next steps
- Quick Start -- a 10-minute end-to-end walkthrough with ingest, query, and time-travel.
- TypeScript SDK Reference -- the full API surface for the
@dreamlake/dreamdbpackage. - Browser Demo -- try DreamDB in the browser without installing anything.