# @dasha.ai/sdk

> Dasha.AI SDK

Latest version **0.19.0** (published 2026-10-15) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @dasha.ai/sdk
pnpm add @dasha.ai/sdk
yarn add @dasha.ai/sdk
bun add @dasha.ai/sdk
```

## Health

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

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

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.19.0 |
| Published | 2026-10-15 |
| First published | 2021-03-25 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=24.0.0 |
| Dependencies | 17 |
| Unpacked size | 5.9 MB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Author | Dasha AI |
| Maintainers | andrey.chernykh, bloodcarter |

## Links

- npm: https://www.npmjs.com/package/@dasha.ai/sdk
- Issues: https://github.com/dasha-ai/dasha/issues
- npm.io page: https://npm.io/package/@dasha.ai/sdk

## Dependencies (17)

- [ajv](https://npm.io/package/ajv.md) ^8.20.0
- [axios](https://npm.io/package/axios.md) ^1.18.1
- [jszip](https://npm.io/package/jszip.md) ^3.10.1
- [lodash](https://npm.io/package/lodash.md) ^4.18.1
- [co-body](https://npm.io/package/co-body.md) ^6.2.0
- [winston](https://npm.io/package/winston.md) ^3.19.0
- [archiver](https://npm.io/package/archiver.md) ^7.0.1
- [env-paths](https://npm.io/package/env-paths.md) ^2.2.1
- [axios-retry](https://npm.io/package/axios-retry.md) ^4.5.0
- [proxy-agent](https://npm.io/package/proxy-agent.md) ^6.5.0
- [setimmediate](https://npm.io/package/setimmediate.md) ^1.0.5
- [@grpc/grpc-js](https://npm.io/package/@grpc/grpc-js.md) 1.14.4
- [@types/lodash](https://npm.io/package/@types/lodash.md) ^4.17.24
- [eventemitter3](https://npm.io/package/eventemitter3.md) ^5.0.4
- [openid-client](https://npm.io/package/openid-client.md) ^5.7.1
- [google-protobuf](https://npm.io/package/google-protobuf.md) 3.21.4
- [@sinclair/typebox](https://npm.io/package/@sinclair/typebox.md) ^0.34.50

## Recent versions

- 0.19.0 (latest) — 2026-10-15
- 0.2.0 (beta) — 2021-04-26
- 0.18.0 — 2026-10-13
- 0.17.0 — 2026-09-18
- 0.16.0 — 2026-09-01
- 0.15.0 — 2026-07-10
- 0.14.0 — 2026-06-19
- 0.13.0 — 2026-05-07
- 0.12.0 — 2026-04-27
- 0.11.11 — 2026-01-12
- 0.11.10 — 2025-12-30
- 0.11.9 — 2025-09-08
- 0.11.7 — 2025-07-21
- 0.11.6 — 2025-07-10
- 0.11.5 — 2025-06-18
- … 57 more at https://npm.io/package/@dasha.ai/sdk/versions

## README

# Dasha SDK for JavaScript - new and improved

We are proud to present a new iteration of the [Dasha SDK for JavaScript]. You can find more about the new SDK interfaces in the [SDK reference], or by browsing the [examples]. Below are some highlights of what's changed.

[dasha sdk for javascript]: https://www.npmjs.com/package/@dasha.ai/sdk
[sdk reference]: https://docs.dasha.ai/en-us/default/sdk/node-js
[examples]: https://github.com/dasha-samples

## Installation

```shell
npm install "@dasha.ai/sdk"
```

## What's new?

### Stored accounts

Using the [Dasha CLI], you can store your credentials to be fetched automatically by the SDK:

```shell
$ npm install --global "@dasha.ai/cli"
$ dasha account login
```

```javascript
const dasha = require("@dasha.ai/sdk");
const app = await dasha.deploy("path/to/app");
```

[dasha cli]: https://www.npmjs.com/package/@dasha.ai/cli

### Automatic reconnections

When encountering a connection problem, Dasha SDK will now automatically attempt to reconnect to the server. You can control this behavior via [deployment options].

[deployment options]: https://docs.dasha.ai/en-us/default/sdk/node-js/#parameters-3

### Promise-based conversation interface

Instead of the old `startJob()` method, use [`app.createConversation()`].

```javascript
const conv = app.createConversation();
conv.input = { foo: "bar" };

const result = await conv.execute();
console.log(result.output);
```

[`app.createConversation()`]: https://docs.dasha.ai/en-us/default/sdk/node-js/classes/application#createconversation

### Event-based conversation queue

The conversation queue handlers now operate on the same [conversation objects] as if created by [`app.createConversation()`], enabling easier migration to and from a queue-based operation model.

```javascript
storage.set(convKey, { foo: "bar" });
app.queue.push(convKey);

app.queue.on("ready", async (key, conv) => {
  conv.input = storage.get(convKey);
  await conv.execute();
})
```

[conversation object]: https://docs.dasha.ai/en-us/default/sdk/node-js/interfaces/conversation
[`app.createConversation()`]: https://docs.dasha.ai/en-us/default/sdk/node-js/classes/application#createconversation

### Better logging

Dasha SDK now uses [winston], and logs events more thoroughly.

[winston]: https://www.npmjs.com/package/winston

## License

This SDK is distributed under the
[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).

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