supabase-minichat
TypeScript icon, indicating that this package has built-in type declarations

2.0.7 • Public • Published

supabase-js

Coverage Status

An isomorphic JavaScript client for Supabase.

Usage

First of all, you need to install the library:

npm install supabase-wechat-stable-v2

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

import { createClient } from 'supabase-wechat-stable-v2'

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

UMD

You can now use plain <script>s to import supabase-js from CDNs, like:

<script src="https://cdn.jsdelivr.net/npm/supabase-wechat-stable-v2"></script>

or even:

<script src="https://unpkg.com/@supabase/supabase-js"></script>

Then you can use it from a global supabase variable:

<script>
  const { createClient } = supabase
  const _supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key')

  console.log('Supabase Instance: ', _supabase)
  // ...
</script>
import { createClient } from 'supabase-wechat-stable-v2'

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

Sponsors

We are building the features of Firebase using enterprise-grade, open source products. We support existing communities wherever possible, and if the products don’t exist we build them and open source them ourselves. Thanks to these sponsors who are making the OSS ecosystem better for everyone.

New Sponsor

Package Sidebar

Install

npm i supabase-minichat

Weekly Downloads

1

Version

2.0.7

License

MIT

Unpacked Size

2.25 MB

Total Files

615

Last publish

Collaborators

  • lucarao