@hyperaide/db
v0.1.8
Published
Runtime database wrapper for Hyperaide apps.
Readme
@hyperaide/db
Runtime database wrapper for Hyperaide apps.
It re-exports @instantdb/react and adds a Hyperaide bootstrap helper for hosted apps.
Install
pnpm add @hyperaide/dbUsage
import { initHyperaideDb } from "@hyperaide/db";
const db = initHyperaideDb({
appId: import.meta.env.VITE_HYPERAIDE_DATABASE_APP_ID,
token: import.meta.env.VITE_HYPERAIDE_DATABASE_TOKEN,
});initHyperaideDb always requires an explicit appId. Pass token too when the app
should authenticate as a specific Hyperaide database user.
