Skip to content

0xBigBoss/supabase-manager-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published