vibebase-client
v0.2.0
Published
Client for a Vibebase backend — Postgres, auth, file storage, vector search, change-feed, migrations.
Maintainers
Readme
vibebase-client
The client for a Vibebase backend — Postgres + auth + file storage + vector search, fully typed.
Install
npm install vibebase-clientSet DATABASE_URL and AUTH_SECRET in your environment (Vibebase writes them to .env.local when it provisions your backend).
Use
import { signUp, signIn, getUser, addDocument, searchSimilar, putFile, migrate } from 'vibebase-client';
const { user, token } = await signUp('[email protected]', 'secret');
const me = await getUser(token);What's included
- Auth —
signUp/signIn/getUser/signOut/signOutAll, password reset, email verification, login rate-limiting - Social login —
oauthRedirectUrl/oauthCallback(Google, GitHub) - Vector search —
addDocument/searchSimilar(pgvector, for RAG) - File storage —
putFile/getFile/listFiles/deleteFile - Change feed —
changesSince/onChange - Schema —
migrate(versioned migrations) /insertMany(bulk seed) - Raw SQL —
sql\...`` (parameterized, injection-safe)
Full TypeScript types ship with the package.
License
MIT
