@0xbigboss/supabase-manager
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @0xbigboss/supabase-manager

Weekly Downloads

2

Version

0.0.2

License

GPL-3.0-only

Unpacked Size

436 kB

Total Files

357

Last publish

Collaborators

  • 0xbigboss