JSPM

  • Created
  • Published
  • Downloads 5033
  • Score
    100M100P100Q130936F
  • License MIT

Nhost JavaScript SDK

Package Exports

  • @nhost/nhost-js
  • @nhost/nhost-js/dist/cjs/index.js
  • @nhost/nhost-js/dist/esm/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@nhost/nhost-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@nhost/nhost-js

Nhost JavaScript SDK

npm npm license: MIT code style: prettier

Get Started

Install

npm install @nhost/nhost-js
# or yarn
yarn add @nhost/nhost-js

Initialize

import { NhostClient } from '@nhost/nhost-js';

const nhost = new NhostClient({
  backendUrl: 'https://xxx.nhost.run',
});

Features

GraphQL

Access Nhost Auth methods using nhost.graphql.

Authentication

Access Nhost Auth methods using nhost.auth.

Storage

Access Nhost Storage methods using nhost.storage.

Functions

Access Nhost Functions methods via nhost.functions.

Documentation

Coming soon