---
title: Dart Edge runtime APIs
description: Discover what runtime APIs are available with Dart Edge, their status and differences.
---

# Runtime APIs

This page outlines the available runtime APIs which Dart Edge provides. The APIs attempt to match
the underlying JavaScript APIs as closely as possible, however provide a "Dartified" API where
it makes sense.

<Warning>
  Implemented APIs are not guaranteed to be stable and may change in future
  releases (this is experimental!).
</Warning>

| Status | Description                        |
| :----: | ---------------------------------- |
|   ✅   | API is implemented & fully tested. |
|   🟢   | API is implemented.                |
|   🟠   | API is partially implemented.      |
|   🔴   | API is not implemented.            |

## Network APIs

| API                     | Status |                                    MDN Reference                                    |                                          API Reference                                          |
| ----------------------- | :----: | :---------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------: |
| `addFetchEventListener` |   🟢   | [📖](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener) | [📖](https://pub.dev/documentation/edge_runtime/latest/edge_runtime/addFetchEventListener.html) |
| `Fetch`                 |   🟢   |          [📖](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API)           |         [📖](https://pub.dev/documentation/edge_runtime/latest/edge_runtime/fetch.html)         |
| `FetchEvent`            |   🟢   |          [📖](https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent)          |   [📖](https://pub.dev/documentation/edge_runtime/latest/edge_runtime/FetchEvent-class.html)    |
| `Headers`               |   🟠   |           [📖](https://developer.mozilla.org/en-US/docs/Web/API/Headers)            |     [📖](https://pub.dev/documentation/edge_runtime/latest/edge_runtime/Headers-class.html)     |
| `Request`               |   🟠   |           [📖](https://developer.mozilla.org/en-US/docs/Web/API/Request)            |     [📖](https://pub.dev/documentation/edge_runtime/latest/edge_runtime/Request-class.html)     |
| `Response`              |   🟠   |           [📖](https://developer.mozilla.org/en-US/docs/Web/API/Response)           |    [📖](https://pub.dev/documentation/edge_runtime/latest/edge_runtime/Response-class.html)     |
| `FormData`              |   🟠   |           [📖](https://developer.mozilla.org/en-US/docs/Web/API/FormData)           |    [📖](https://pub.dev/documentation/edge_runtime/latest/edge_runtime/FormData-class.html)     |

## Encoding APIs

| API           | Status |                              MDN Reference                               |                                        API Reference                                        |
| ------------- | :----: | :----------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------: |
| `TextDecoder` |   🟠   |    [📖](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder)    | [📖](https://pub.dev/documentation/edge_runtime/latest/edge_runtime/TextDecoder-class.html) |
| `TextEncoder` |   🟠   |    [📖](https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder)    | [📖](https://pub.dev/documentation/edge_runtime/latest/edge_runtime/TextEncoder-class.html) |
| `atob`        |   🟢   | [📖](https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/atob) |       [📖](https://pub.dev/documentation/edge_runtime/latest/edge_runtime/atob.html)        |
| `btoa`        |   🟢   | [📖](https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/btoa) |       [📖](https://pub.dev/documentation/edge_runtime/latest/edge_runtime/btoa.html)        |

## Stream APIs

The Streaming APIs are subject to change. Dart provides great support for Streams so we're still figuring out the best public API
for interacting with these underlying APIs.

| API                           | Status |                                   MDN Reference                                    | API Reference                                                                            |
| ----------------------------- | :----: | :--------------------------------------------------------------------------------: | ---------------------------------------------------------------------------------------- |
| `ReadableStream`              |   🔴   |       [📖](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream)        | [📖](https://pub.dev/documentation/edge_runtime/latest/edge_runtime/ReadableStream-class.html) |
| `ReadableStreamBYOBReader`    |   🔴   |  [📖](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader)   | [📖](https://pub.dev/documentation/edge_runtime/latest/edge_runtime/ReadableStreamBYOBReader-class.html) |
| `ReadableStreamDefaultReader` |   🔴   | [📖](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultReader) | [📖](https://pub.dev/documentation/edge_runtime/latest/edge_runtime/ReadableStreamDefaultReader-class.html) |
| `TransformStream`             |   🔴   |       [📖](https://developer.mozilla.org/en-US/docs/Web/API/TransformStream)       | [📖](https://pub.dev/documentation/edge_runtime/latest/edge_runtime/TransformStream-class.html) |
| `WritableStream`              |   🔴   |       [📖](https://developer.mozilla.org/en-US/docs/Web/API/WritableStream)        | [📖](https://pub.dev/documentation/edge_runtime/latest/edge_runtime/WritableStream-class.html) |
| `WritableStreamDefaultWriter` |   🔴   | [📖](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter) | [📖](https://pub.dev/documentation/edge_runtime/latest/edge_runtime/WritableStreamDefaultWriter-class.html) |

## Crypto APIs

| API            | Status |                             MDN Reference                             | API Reference |
| -------------- | :----: | :-------------------------------------------------------------------: | ------------- |
| `crypto`       |   🟠   | [📖](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API) |               |
| `CryptoKey`    |   🔴   |   [📖](https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey)    |               |
| `SubtleCrypto` |   🔴   |  [📖](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto)  |               |

## Standard APIs

| API               | Status |                             MDN Reference                              | API Reference                                                                                   |
| ----------------- | :----: | :--------------------------------------------------------------------: | ----------------------------------------------------------------------------------------------- |
| `AbortController` |   🟢   | [📖](https://developer.mozilla.org/en-US/docs/Web/API/AbortController) | [📖](https://pub.dev/documentation/edge_runtime/latest/edge_runtime/AbortController-class.html) |
| `Cache`           |   🟢   |      [📖](https://developer.mozilla.org/en-US/docs/Web/API/Cache)      | [📖](https://pub.dev/documentation/edge_runtime/latest/edge_runtime/Cache-class.html)           |
