0xBigBoss / supabase-manager-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Usage

bun add @0xbigboss/supabase-manager

Example 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);

Contributing

To install dependencies and re-generate the source files:

bun install
bun run postinstall

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.

About

License:GNU General Public License v3.0


Languages

Language:TypeScript 100.0%