@intentface/latch-drizzle weekly downloads statistics
By intentface (10 listings) · npm · AI SDKs
Latch StorageAdapter on Drizzle (SQLite/libsql first, Postgres next).
@intentface/latch-drizzle has 184 recorded weekly downloads on npm, a decrease of 42.3% over the past 30 days, ranking #2519 of 3,247 tracked listings.
About @intentface/latch-drizzle
@intentface/latch-drizzle
The persistence tier for Latch — a StorageAdapter and SecretStore implemented on Drizzle (libsql/SQLite first-class, Postgres alongside).
What it does
createSqliteAdapter/ (pg variant) — theStorageAdapterthe runtime persists through: chats, messages (theAppMessagesource of truth), runs (status, leases, usage, cost incl. cached-token split), usage ledger, and schedules. Owner-keyed for org/user isolation (theownerfn derives the key from yourPrincipal).createSqliteSecretStore— the encrypted record store behind the coreVault(it never sees plaintext; the Vault wraps/unwraps).migrate(client)— creates thelatch_*tables (CREATE TABLE IF NOT EXISTS) plus idempotentALTERs for columns added later (timezone, cached-token counts, …). Safe to run at startup; no migration tooling required.
Tables: latch_chats, latch_messages, latch_runs, latch_usage, latch_secrets, latch_schedules.
Usage
import { createClient } from "@libsql/client";
import { createSqliteAdapter, createSqliteSecretStore, migrate } from "@intentface/latch-drizzle";
const client = createClient({ url: DATABASE_URL, authToken: TURSO_AUTH_TOKEN });
await migrate(client);
const owner = (p: Principal) => (p.userId ? [p.orgId, p.userId] : [p.orgId]);
const storage = createSqliteAdapter<Principal>(client, { owner });
Owner-key contract. owner must be a pure projection of the stable part
of your principal — durable ids from your database, never per-session state
(an "active org" that can be null on some requests will silently split one
user's data across two keys). The key is derived once, at root-resource
creation; child rows inherit it. Never re-derive it from a live principal in
a different request context (OAuth callbacks, webhooks, cron) — pin identity
into the flow/run and rebuild it via reconstructPrincipal instead.
Where it fits
The T1 (persistence) tier under @intentface/latch-core. Swap it for another StorageAdapter implementation behind the same contract.
Description from the npm listing.
- ai
- ai-sdk
- agents
- llm
- drizzle-orm
- sqlite
- postgres
- persistence
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (170)Similar npm AI SDKs plugins
All 20 @intentface/latch-drizzle alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@intentface/latch-drizzle. First seen Oct 16, 2026; last successful collection Nov 10, 2026. See the methodology.