@0xbigboss/supabase-manager
v0.0.2
Published
A Typescript client for Supabase Management API generated from the [OpenAPI Spec](https://api.supabase.com/api/v1-json). See the [Supabase Management API documentation](https://supabase.com/docs/reference/api/introduction) for more information.
Downloads
14
Readme
Supabase Manager API Client
A Javascript/Typescript client for Supabase Management API generated from the OpenAPI Spec. See the Supabase Management API documentation for more information.
To install dependencies and re-generate the source files:
bun install
bun run postinstall
Usage
Example usage below. Be sure to set TOKEN
and BASE
on your SupabaseManager
instance.
import { SupabaseManager } from "@0xbigboss/supabase-manager-js";
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);
Release a new version
bunx changeset
bunx version
bunx publish
# commit the results
This project was created using bun init
in bun v1.0.29. Bun is a fast all-in-one JavaScript runtime.