@supabase/postgrest-js
    TypeScript icon, indicating that this package has built-in type declarations

    0.35.0 • Public • Published

    postgrest-js

    Build Package License: MIT

    Isomorphic JavaScript client for PostgREST. The goal of this library is to make an "ORM-like" restful interface.

    Full documentation can be found here.

    Quick start

    Install

    npm install @supabase/postgrest-js

    Usage

    import { PostgrestClient } from '@supabase/postgrest-js'
    
    const REST_URL = 'http://localhost:3000'
    const postgrest = new PostgrestClient(REST_URL)

    Custom fetch implementation

    postgrest-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 { PostgrestClient } from '@supabase/postgrest-js'
    
    const REST_URL = 'http://localhost:3000'
    const postgrest = new PostgrestClient(REST_URL, { fetch: fetch })

    License

    This repo is licensed under MIT License.

    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

    Install

    npm i @supabase/postgrest-js

    DownloadsWeekly Downloads

    22,400

    Version

    0.35.0

    License

    MIT

    Unpacked Size

    209 kB

    Total Files

    84

    Last publish

    Collaborators

    • kiwicopple
    • ange1ico
    • awalias
    • phamhieu1998