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

const id = await db.insertOne('users', {
  name: 'Alex',
  email: 'alex@example.com',
Related skills

More from maravilla-labs/maravilla-cli

Installs
15
First Seen
14 days ago