A Javascript/Typescript client for Supabase Management API generated from the OpenAPI Spec. See the Supabase Management API documentation for more information.
bun add @0xbigboss/supabase-managerExample usage below. Be sure to set TOKEN and BASE on your SupabaseManager instance.
import { SupabaseManager } from "@0xbigboss/supabase-manager";
const TOKEN = process.env.SUPABASE_ACCESS_TOKEN;
if (!TOKEN) {
throw new Error("SUPABASE_ACCESS_TOKEN is not defined");
}
const supabase = new SupabaseManager({
TOKEN,
BASE: "https://api.supabase.com/",
});
const projects = await supabase.projects.getProjects();
console.log(projects);To install dependencies and re-generate the source files:
bun install
bun run postinstallbunx changeset
bunx version
bunx publish
# commit the resultsThis project was created using bun init in bun v1.0.29. Bun is a fast all-in-one JavaScript runtime.