maravilla-db

Installation
SKILL.md

Maravilla DB

platform.env.DB is a MongoDB-shaped document store with secondary indexes and first-class vector search. Two backends: a Mongo-mode default and a per-tenant SQLite mode (set via the production-sqlite feature flag — vector search runs there).

import { getPlatform } from '@maravilla-labs/platform';
const db = getPlatform().env.DB;

Layer 1 (tenant isolation) is unconditional. If you've declared a resource in maravilla.config.ts whose name matches the collection name, Layer-2 policies gate every op too — including find, where rows that fail the policy are silently filtered out of the result set. See maravilla-policies.

CRUD basics

Insert

Installs
21
First Seen
Apr 29, 2026
maravilla-db — maravilla-labs/maravilla-cli