deepgram/deepgram-js-sdk

Official JavaScript SDK for Deepgram.

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 39 minutes ago
Added to GitGenius on July 9th, 2026
Created on May 2nd, 2021
Open Issues & Pull Requests: 46 (+0)
Number of forks: 96
Total Stargazers: 270 (+0)
Total Subscribers: 16 (+0)

Issue Activity (beta)

Open issues: 30
New in 7 days: 1
Closed in 7 days: 0
Avg open age: 148 days
Stale 30+ days: 24
Stale 90+ days: 16

Recent activity

Opened in 7 days: 1
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • wip (15)
  • beta (13)
  • bug (12)
  • question (11)
  • enhancement (4)
  • react-native (3)
  • testing (2)
  • stale (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Repository Insights (GitGenius)

Median issue/PR response: 42.3 hours
Mean response time: 30.5 days
90th percentile: 88.4 days
Tracked items: 77

Most active contributors

Sign in to see contributor activity.

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "bug" is answered fastest, typically in about 2 days, while "question" waits about 7 weeks. Only 6% of issues opened in the past year have been closed. Three people close 78% of everything that gets resolved.

Detailed Description

The Deepgram JavaScript SDK is the official TypeScript-based SDK for integrating Deepgram's speech recognition, text-to-speech, and language understanding APIs into JavaScript and TypeScript applications. Built with Fern and distributed via npm, the SDK enables developers to add world-class speech and language AI capabilities to their applications with support for Node.js 18 and higher.

The SDK provides comprehensive client implementations for multiple use cases. Real-time speech recognition connects to Deepgram's WebSocket infrastructure for live audio transcription, while file transcription handles pre-recorded audio processing. Text-to-speech functionality generates natural-sounding speech from text input, and text analysis capabilities evaluate sentiment, topics, and intents. The SDK also includes support for voice agents that enable conversational AI interactions, allowing developers to build interactive voice-based applications.

Authentication is handled through two primary methods: API key authentication for server-side applications and access token authentication for temporary or scoped access, with the latter recommended for client-side use. The SDK automatically discovers credentials from environment variables, specifically DEEPGRAM_ACCESS_TOKEN and DEEPGRAM_API_KEY, with explicit parameters taking precedence over environment variables. Developers can obtain a free API key through the Deepgram console.

Browser compatibility is a notable feature, with full support for WebSocket-based functionality including live transcription, voice agents, and live text-to-speech through direct connections to Deepgram's WebSocket endpoints. REST API features in browsers require a proxy server due to CORS restrictions, with the SDK supporting custom proxy configuration through baseUrl parameters. The SDK maintains runtime compatibility across multiple environments including Node.js, Vercel, Cloudflare Workers, Deno v1.25 and higher, Bun 1.0 and higher, and React Native.

The repository shows active maintenance and community engagement.

The SDK exports all request and response types as TypeScript interfaces, providing strong type safety for developers. Advanced features include configurable request options for timeouts and retries, access to raw response data, support for custom fetch implementations in unsupported environments, and built-in logging capabilities. The SDK includes migration guides for upgrading from v2 to v3, v3 to v4, and v4 to v5, with v5 being the current version. Development setup involves standard npm-based workflows with dependency installation, building, and testing. The project is licensed under the MIT License and welcomes community contributions through GitHub issues, Discord, and GitHub Discussions.

deepgram-js-sdk
by
deepgramdeepgram/deepgram-js-sdk

Repository Details

Fetching additional details & charts...