Getting Started

1

Install the SDK

Use npm to install the Base SDK:

npm install @contiguity/base
2

Initialize the Client

After installation, import Base into your project and initialize it with your API key and project ID.

// Using CommonJS
const contiguity = require('@contiguity/base')
const db = contiguity.db("your-api-key", "your-project-id")

// Using ES Modules
import contiguity from '@contiguity/base'
const db = contiguity.db("your-api-key", "your-project-id")

You can get an API key from the Dashboard. You can get the project ID when you create a new project, or when you click on the project in the Dashboard.