Skip to main content

JavaScript SDK

The official JavaScript/TypeScript SDK for PolarGrid.

Installation

Quick Start

Configuration

Auto-Routing

The PolarGrid.create() factory calls the autorouter (GET https://autorouter.polargrid.ai/v1/route), which returns the optimal edge based on your origin:

Streaming

Mock Mode

Perfect for frontend development without a backend:

Environment Variables

Next Steps

Full Reference

Complete API reference

Voice Guide

Text-to-speech and speech-to-text