Skip to content

Tanker187/supabase-js-nodoubtz

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

919 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeQL Advanced

Supabase JS - Nodoubtz Fork

MIT License

This repository is a fork of the official Supabase JS library. It provides an isomorphic JavaScript client for interacting with Supabase services, including:

  • Querying your Supabase database.
  • Subscribing to real-time events.
  • Uploading and downloading files.
  • Browsing TypeScript examples.
  • Invoking PostgreSQL functions via RPC.
  • Invoking Supabase Edge Functions.
  • Querying pgvector for AI-related functionalities.

Table of Contents


About

Supabase is an open-source Firebase alternative. This library serves as the JavaScript client for Supabase, making it simple to interact with Supabase APIs in your web or Node.js applications.

Visit the official Supabase website: https://supabase.com

Installation

Install the library using npm or yarn:

# Using npm
npm install @supabase/supabase-js

# Using yarn
yarn add @supabase/supabase-js

Usage

Here's a basic example of how to initialize the client and make a query:

import { createClient } from '@supabase/supabase-js'

const supabaseUrl = 'https://your-supabase-url.supabase.co'
const supabaseKey = 'your-anon-key'
const supabase = createClient(supabaseUrl, supabaseKey)

// Example: Fetch data from a table
const { data, error } = await supabase
  .from('your_table_name')
  .select('*')

if (error) {
  console.error('Error fetching data:', error)
} else {
  console.log('Data:', data)
}

For more examples, refer to the official documentation.

License

This project is licensed under the MIT License.

Contributing

Contributions are welcome! If you'd like to contribute to this project, please fork the repository and submit a pull request.

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature-branch-name.
  3. Make your changes and commit them: git commit -m 'Add some feature'.
  4. Push your branch: git push origin feature-branch-name.
  5. Open a pull request.

Acknowledgements

This project is a fork of the official Supabase JS repository. Special thanks to the Supabase team for their amazing work.


About

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.

Resources

License

Security policy

Stars

Watchers

Forks

Contributors

Languages

  • TypeScript 98.8%
  • JavaScript 1.2%