  1. [    Home ](/)
2. [Documentation](/docs)
3. [SDKs &amp; Libraries](/docs?category=9)
4. JavaScript SDK Reference
 
 SDKs &amp; Libraries Latest      10 min read  

# JavaScript SDK Reference

  A  admin  March 8, 2026   (Updated April 22, 2026)  

 

 

 JavaScript 

 

 

Image

   ![JavaScript SDK Reference](/sites/default/files/styles/16_9_512x288_focal_point_webp/public/doc-images/javascript-sdk-reference.png.webp?itok=6w3pDgO_ "JavaScript SDK Reference") 

 





 

 

  ## On this page

  
  [    Back to top ](#main-content) 

 The official JavaScript SDK provides a type-safe client for all Connectbase APIs with built-in retry logic, request batching, and streaming support.

## Installation

npm install @connectbase/sdk\\n# or\\nyarn add @connectbase/sdk

## Quick Start

import { ConnectbaseClient } from '@connectbase/sdk';\\n\\nconst client = new ConnectbaseClient({\\n apiKey: process.env.CONNECTBASE\_API\_KEY,\\n timeout: 30000,\\n});\\n\\n// Building lookup\\nconst building = await client.buildings.get('bld\_abc123');\\nconsole.log(building.address, building.coordinates);

## TypeScript Support

Full TypeScript definitions are included. All response types are strongly typed for excellent IDE auto-completion.

## Error Handling

try {\\n const result = await client.addresses.validate(address);\\n} catch (err) {\\n if (err instanceof ConnectbaseRateLimitError) {\\n // Automatic retry is built-in, but you can handle manually\\n await delay(err.retryAfter);\\n }\\n}

## Streaming

For large batch operations, use the streaming API:

const stream = client.buildings.stream({ filter: 'state:CA' });\\nfor await (const building of stream) {\\n process.stdout.write(building.id + '\\n');\\n}



 

 

 

 ### Tags

 

 

  [     Previous Webhooks Integration Guide  ](/docs/webhooks-integration-guide) [  Next REST API Reference     ](/docs/rest-api-reference)