supabase-js-without-realtime-js
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

supabase-js-without-realtime-js

An isomorphic JavaScript client for Supabase.

Usage

First of all, you need to install the library:

npm install supabase-js-without-realtime-js

Then you're able to import the library and establish the connection with the database:

import { createClient } from 'supabase-js-without-realtime-js'

// Create a single supabase client for interacting with your database
const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key')

Custom fetch implementation

supabase-js uses the cross-fetch library to make HTTP requests, but an alternative fetch implementation can be provided as an option. This is most useful in environments where cross-fetch is not compatible, for instance Cloudflare Workers:

import { createClient } from 'supabase-js-without-realtime-js'

// Provide a custom `fetch` implementation as an option
const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key', {
  fetch: (...args) => fetch(...args),
})

Package Sidebar

Install

npm i supabase-js-without-realtime-js

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

137 kB

Total Files

76

Last publish

Collaborators

  • maxcodefaster