@strayl/backend
v0.1.3
Published
Official Strayl BaaS SDK for auth, database, and storage
Readme
strayl/backend
TypeScript SDK for Strayl BaaS. Provides a single client with auth, database, and storage helpers that talk to auth.strayl.dev, db.strayl.dev, and storage.strayl.dev.
import { createStraylBackendClient } from "strayl/backend";
const strayl = createStraylBackendClient({ tenant: "owner-slug" });
await strayl.auth.signIn({ email: "[email protected]", password: "secret" });
const todos = await strayl.db.from("todos").select("*").eq("done", false);
const upload = await strayl.storage.from("user-files").upload("avatar.png", file);See src/ for API details. Run npm run build to emit dist/.
