# agora-rtc-sdk-ng

> Agora WebRTC SDK for JavaScript

Latest version **4.24.10** (published 2026-11-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install agora-rtc-sdk-ng
pnpm add agora-rtc-sdk-ng
yarn add agora-rtc-sdk-ng
bun add agora-rtc-sdk-ng
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; large bundle.

## Facts

| | |
|---|---|
| Version | 4.24.10 |
| Published | 2026-11-16 |
| First published | 2020-03-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 11 |
| Unpacked size | 11.6 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 29 |
| Author | Agora WebRTC Team |
| Maintainers | agora.io, agorabuilder |
| Keywords | WebRTC, agora, rtc, agora-js, rtc-js, rtc.js |

## Links

- npm: https://www.npmjs.com/package/agora-rtc-sdk-ng
- Repository: https://github.com/AgoraIO/agora-rtc-web
- Homepage: https://api-ref.agora.io/en/voice-sdk/web/4.x/index.html
- Issues: https://github.com/AgoraIO/agora-rtc-web/issues
- npm.io page: https://npm.io/package/agora-rtc-sdk-ng

## Dependencies (11)

- [pako](https://npm.io/package/pako.md) ^2.1.0
- [axios](https://npm.io/package/axios.md) ^1.20.0
- [ua-parser-js](https://npm.io/package/ua-parser-js.md) ^0.7.34
- [webrtc-adapter](https://npm.io/package/webrtc-adapter.md) 8.2.0
- [@agora-js/media](https://npm.io/package/@agora-js/media.md) 4.24.10
- [@agora-js/report](https://npm.io/package/@agora-js/report.md) 4.24.10
- [@agora-js/shared](https://npm.io/package/@agora-js/shared.md) 4.24.10
- [formdata-polyfill](https://npm.io/package/formdata-polyfill.md) ^4.0.7
- [@agora-js/protocol](https://npm.io/package/@agora-js/protocol.md) 4.24.10
- [agora-rte-extension](https://npm.io/package/agora-rte-extension.md) ^1.2.4
- [agora-rte-extension-ng](https://npm.io/package/agora-rte-extension-ng.md) ^1.0.3

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 4.24.10 (latest) — 2026-11-16
- 4.19.0-special.1 (special) — 2026-11-18
- 4.24.8-1 (hotfix) — 2026-09-09
- 4.24.8-200 — 2026-11-02
- 4.24.8-100 — 2026-10-20
- 4.24.9 — 2026-10-13
- 4.24.3-400 — 2026-09-17
- 4.24.8 — 2026-08-31
- 4.24.7-100 — 2026-08-13
- 4.24.3-300 — 2026-08-10
- 4.24.7 — 2026-08-03
- 4.24.5-1 — 2026-07-21
- 4.24.6 — 2026-07-13
- 4.23.4-100 — 2026-07-02
- 4.18.2-600 — 2026-06-26
- … 118 more at https://npm.io/package/agora-rtc-sdk-ng/versions

## README

# AgoraRTC SDK (Version 4.x)

English | [简体中文](https://github.com/AgoraIO/agora-rtc-web/blob/main/README-zh_CN.md)

## Getting Started

### Install

Use `npm`, `pnpm` or `yarn`

```bash
# with npm
npm i agora-rtc-sdk-ng
# or with pnpm
pnpm add agora-rtc-sdk-ng
# or with yarn
yarn add agora-rtc-sdk-ng
```

CDN is also provided. The SDK exports a global `AgoraRTC` object.

```html
<!-- default UMD, no AI QoS -->
<script src="https://download.agora.io/sdk/release/AgoraRTC_N-4.24.8.js"></script>
```

To use AI QoS from CDN, load the full UMD instead. AI is already registered; only this one script is needed:

```html
<script src="https://download.agora.io/sdk/release/AgoraRTC_N-4.24.8-full.js"></script>
<script>
  const client = AgoraRTC.createClient({ mode: "live", codec: "vp8", aiClientMode: true });
  await client.join(appId, channel, token, uid);
</script>
```

npm UMD is the same split. Default has no AI QoS; `agora-rtc-sdk-ng/full` is the complete build:

```javascript
import AgoraRTC from "agora-rtc-sdk-ng/full";

const client = AgoraRTC.createClient({ mode: "live", codec: "vp8", aiClientMode: true });
await client.join(appId, channel, token, uid);
```

For the basic RTC build, use `agora-rtc-sdk-ng/min`. It uses the same public TypeScript declarations
as the default package:

```javascript
import AgoraRTC from "agora-rtc-sdk-ng/min";

const client = AgoraRTC.createClient({ mode: "rtc", codec: "vp8" });
```

ESM is unchanged: import the main ESM, then the optional service:

```javascript
import AgoraRTC from "agora-rtc-sdk-ng/esm";
import { AiAudioModeService } from "agora-rtc-sdk-ng/services/ai-audio-mode";

AgoraRTC.use(AiAudioModeService);
const client = AgoraRTC.createClient({ mode: "live", codec: "vp8", aiClientMode: true });
await client.join(appId, channel, token, uid);
```

### Quick start

`React`, `Vue`, `Svelte` quick start demo are provided, please check at [Quick Start Demo](https://github.com/AgoraIO/agora-rtc-web/blob/main/projects).
We also have [More Demos](https://github.com/AgoraIO/API-Examples-Web/tree/main/Demo).

Please follow the documentation at [api-ref.agora.io](https://api-ref.agora.io/en/voice-sdk/web/4.x/index.html).

## Changelogs

Please check the changelogs at [Release Notes](https://docs.agora.io/en/video-calling/overview/release-notes?platform=web).

---
_Source: https://npm.io/package/agora-rtc-sdk-ng · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
