Carbon LogoCarbon

Quickstart

Get started with Carbon in minutes

Welcome to Carbon

Carbon is an open-source manufacturing platform for vertically integrated manufacturing. It provides a modern, minimal, starting-point for building end-to-end manufacturing systems.

Creating an API Key

To use the API, you need to sign up on Carbon and get an API key. You can also run Carbon locally by following the README.

  1. Sign up at app.carbon.ms
  2. Navigate to Settings > API Keys
  3. Create a new API Key
  4. Navigate to API Docs to get your environment variables

Creating a Carbon Client with Supabase

npm install @supabase/supabase-js

Initialize the Client

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

const apiKey = process.env.CARBON_API_KEY
const apiUrl = process.env.CARBON_API_URL
const publicKey = process.env.CARBON_PUBLIC_KEY

const carbon = createClient(apiUrl, publicKey, {
  global: {
    headers: {
      "carbon-key": apiKey,
    },
  },
});

Make a request to the API

const response = await carbon.from("employees").select("*");

Read the Docs

Read the API Docs or view the source code on GitHub to get started.

Next Steps