StealthQL (v0.2.13) is a repo-native backend capsule for Next.js that bundles a local PGlite database, built-in auth (magic links, Google/GitHub/Facebook OAuth, recovery codes, org membership, service accounts, share tokens), policy-based row access control, field masks, Google-Sheets-style shares with proposals/CSV round-trip/expiration/revocation/audit logs, scheduled jobs, compliance evidence, and one-command deployment to DigitalOcean or Vercel+DigitalOcean split. Published on npm, TypeScript ships types, requires Node >=20, and follows a local-first dev loop with hot-reload. Differentiates from Supabase/Firebase by being fully self-hosted, repo-native (capsule files checked into your repo), and LLM-friendly.
npm install stealthqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Scaffolds a Next.js project with StealthQL backend capsule, local database, auth, and hot-reload dev server.
Replace `import StealthQL from 'stealthql'` with specific imports like `import { createCapsule } from 'stealthql/capsule'`Upgrade Node to v20 or later
Use ESM imports (import/export) or dynamic import() in CommonJS files
Use `npx stealthql setup next --typescript` instead of --javascript
Set `PGLITE_DATA_DIR` environment variable or configure `storage` in stealth.storage.js
Run `npm run build:capsule` and restart dev server after destructive schema changes
Use import('stealthql') or switch to ESM (type: module in package.json)Upgrade stealthql: npm install stealthql@latest
Change import to `import { createCapsule } from 'stealthql/capsule'`Install Node v20 or later
Set environment variable PGLITE_DATA_DIR to a persistent path, or add storage configuration in stealth.storage.js