Node SDK for the Depot API
npm install @depot/sdk-node

!Powered by TypeScript
A Node.js SDK for the Depot API.
š API Documentation
Use pnpm or your favorite package manager:
``bash`
pnpm add @depot/sdk-node
Each of the Depot API services is exposed on the main depot export. Authentication is provided via an Authorization header with an Organization Token, for each API request. The service paths match their corresponding gRPC service names.
- depot.build.v1.BuildService
- depot.buildkit.v1.BuildKitService
- depot.core.v1.ProjectService
- depot.core.v1.UsageService
- depot.core.v1.OrganizationService
List projects:
`typescript
import {depot} from '@depot/sdk-node'
const headers = {
Authorization: Bearer ${process.env.DEPOT_TOKEN},
}
async function example() {
const result = await depot.core.v1.ProjectService.listProjects({}, {headers})
console.log(result.projects)
}
`
MIT License, see LICENSE`.