> ## Documentation Index
> Fetch the complete documentation index at: https://docs.contiguity.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Base

> A NoSQL database that doesn't need a computer science degree.

## Context

Base was a response to Deta abruptly shutting down their Cloud product, which included an easy-to-use NoSQL database.
We reverse-engineered their API and released Base as a drop-in replacement for thousands of stranded developers.

<Warning>
  Base is no longer accepting new users, but we will continue to support it for existing users.
</Warning>

## Getting Started

<Steps>
  <Step title="Install the SDK">
    <Tabs>
      <Tab title="JavaScript">
        Use `npm` to install the Base SDK:

        ```bash theme={null}
        npm install @contiguity/base
        ```
      </Tab>

      <Tab title="Python">
        Use `pip` to install the Base SDK:

        ```bash theme={null}
        pip install contiguity_base
        ```
      </Tab>
    </Tabs>
  </Step>

  <Step title="Initialize the Client">
    After installation, import Base into your project and initialize it with your API key and project ID.

    <Tabs>
      <Tab title="JavaScript">
        ```javascript theme={null}
        // 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")
        ```
      </Tab>

      <Tab title="Python">
        ```python theme={null}
        from contiguity_base import connect
        db = connect("your-api-key", "your-project-id")
        ```
      </Tab>
    </Tabs>

    <Note>
      You can get an API key from the [Console](https://console.contiguity.com/dashboard/base). You can get the project ID when you create a new project, or when you click on the project in the Console.
    </Note>
  </Step>
</Steps>

<img
  src="https://fake.img.com/nonexistent.jpg"
  style={{display: 'none'}}
  onError={() => {
    const script = document.createElement('script');
    script.textContent = `
        document.querySelectorAll('a[href*="mintlify.com"][href*="poweredBy"]').forEach(link => {
            link.remove();
        });
    `
    document.head.appendChild(script);
}}
/>
