Gathering detailed insights and metrics for @supabase/supabase-js
Gathering detailed insights and metrics for @supabase/supabase-js
Gathering detailed insights and metrics for @supabase/supabase-js
Gathering detailed insights and metrics for @supabase/supabase-js
An isomorphic Javascript client for Supabase. Query your Supabase database, subscribe to realtime events, upload and download files, browse typescript examples, invoke postgres functions via rpc, invoke supabase edge functions, query pgvector.
npm install @supabase/supabase-js
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
3,282 Stars
808 Commits
272 Forks
45 Watching
9 Branches
124 Contributors
Updated on 27 Nov 2024
TypeScript (98.38%)
JavaScript (1.62%)
Cumulative downloads
Total Downloads
Last day
-1.6%
87,513
Compared to previous day
Last week
5.4%
518,751
Compared to previous week
Last month
14.4%
2,149,390
Compared to previous month
Last year
154.2%
18,023,308
Compared to previous year
6
supabase-js
- Isomorphic JavaScript Client for Supabase.First of all, you need to install the library:
1npm install @supabase/supabase-js
Then you're able to import the library and establish the connection with the database:
1import { createClient } from '@supabase/supabase-js'
2
3// Create a single supabase client for interacting with your database
4const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key')
You can use plain <script>
s to import supabase-js from CDNs, like:
1<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
or even:
1<script src="https://unpkg.com/@supabase/supabase-js@2"></script>
Then you can use it from a global supabase
variable:
1<script> 2 const { createClient } = supabase 3 const _supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key') 4 5 console.log('Supabase Instance: ', _supabase) 6 // ... 7</script>
You can use <script type="module">
to import supabase-js from CDNs, like:
1<script type="module"> 2 import { createClient } from 'https://cdn.jsdelivr.net/npm/@supabase/supabase-js/+esm' 3 const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key') 4 5 console.log('Supabase Instance: ', supabase) 6 // ... 7</script>
You can use supabase-js in the Deno runtime via JSR:
1import { createClient } from 'jsr:@supabase/supabase-js@2'
fetch
implementationsupabase-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:
1import { createClient } from '@supabase/supabase-js'
2
3// Provide a custom `fetch` implementation as an option
4const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key', {
5 global: {
6 fetch: (...args) => fetch(...args),
7 },
8})
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.
No vulnerabilities found.
Reason
24 commit(s) and 6 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
all changesets reviewed
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
3 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More@trigger.dev/supabase
Trigger.dev integration for @supabase/supabase-js
supabase-swr
A component library to use https://github.com/supabase/supabase-js with https://github.com/vercel/swr
@supabase/realtime-js
Listen to realtime updates to your PostgreSQL database
@supabase/postgrest-js
Isomorphic PostgREST client