# API Overview

> Every built-in module Elide provides and where each is documented.

JavaScript code gets the [`Elide` global](https://elide.help/docs/api-globals-elide), Node built-in modules, `elide:` database modules,
and Web globals. Suite results are in the [Compatibility Matrix](https://elide.help/docs/compatibility).

## Built-in modules

Node modules resolve with or without the `node:` prefix. Each `node:*` page lists only differences from
[nodejs.org/api](https://nodejs.org/api/).

| Module | Status |
|---|---|
| `assert`, `assert/strict` | [node:assert](https://elide.help/docs/api-node-assert) |
| `async_hooks` | [node:async_hooks](https://elide.help/docs/api-node-async-hooks) |
| `buffer` | [node:buffer](https://elide.help/docs/api-node-buffer) |
| `child_process` | [node:child_process](https://elide.help/docs/api-node-child-process) |
| `cluster` | Unavailable |
| `console` | [node:console](https://elide.help/docs/api-node-console) |
| `constants` | Unavailable |
| `crypto` | [node:crypto](https://elide.help/docs/api-node-crypto) |
| `dgram` | [node:dgram](https://elide.help/docs/api-node-dgram) |
| `diagnostics_channel` | [node:diagnostics_channel](https://elide.help/docs/api-node-diagnostics-channel) |
| `dns`, `dns/promises` | [node:dns](https://elide.help/docs/api-node-dns) |
| `domain` | [node:domain](https://elide.help/docs/api-node-domain) |
| `events` | [node:events](https://elide.help/docs/api-node-events) |
| `fs`, `fs/promises` | [node:fs](https://elide.help/docs/api-node-fs) |
| `http`, `https` | [node:http](https://elide.help/docs/api-node-http) |
| `http2` | Unavailable |
| `inspector` | Unavailable |
| `module` | [node:module](https://elide.help/docs/api-node-module) |
| `net` | [node:net](https://elide.help/docs/api-node-net) |
| `os` | [node:os](https://elide.help/docs/api-node-os) |
| `path`, `path/posix`, `path/win32` | [node:path](https://elide.help/docs/api-node-path) |
| `perf_hooks` | [node:perf_hooks](https://elide.help/docs/api-node-perf-hooks) |
| `process` | [process](https://elide.help/docs/api-globals-process) |
| `punycode` | Loads; undocumented |
| `querystring` | [node:querystring](https://elide.help/docs/api-node-querystring) |
| `readline`, `readline/promises` | Loads; undocumented |
| `repl` | Unavailable |
| `sea` | Unavailable |
| `sqlite` | [Database API](https://elide.help/docs/api-database) |
| `stream`, `stream/promises`, `stream/web`, `stream/consumers`, `stream/iter` | [node:stream](https://elide.help/docs/api-node-stream) |
| `string_decoder` | Loads; undocumented |
| `sys` | Loads; the same object as `util` |
| `test` | [node:test](https://elide.help/docs/api-node-test) |
| `test/reporters` | Unavailable |
| `timers`, `timers/promises` | [node:timers](https://elide.help/docs/api-node-timers) |
| `tls` | Loads; undocumented |
| `trace_events` | Unavailable |
| `tty` | Loads; undocumented |
| `url` | [node:url](https://elide.help/docs/api-node-url) |
| `util`, `util/types` | [node:util](https://elide.help/docs/api-node-util) |
| `v8` | [node:v8](https://elide.help/docs/api-node-v8) |
| `vm` | [node:vm](https://elide.help/docs/api-node-vm) |
| `wasi` | Unavailable |
| `worker_threads` | [node:worker_threads](https://elide.help/docs/api-node-worker-threads) |
| `zlib`, `zlib/iter` | [node:zlib](https://elide.help/docs/api-node-zlib) |

Importing an unavailable module throws `ERR_UNKNOWN_BUILTIN_MODULE`.

### `elide:` aliases

`elide:X` returns the same module object as `node:X`. There is no `elide:compression`; use `node:zlib` or
`CompressionStream`.

## Elide modules

`elide:sqlite`, `elide:postgres`, and `elide:mysql` each export `Database`; see the [Database API](https://elide.help/docs/api-database).

## Web and WinterCG globals

- [Fetch](https://elide.help/docs/api-whatwg-fetch), [Streams](https://elide.help/docs/api-whatwg-streams), [Compression](https://elide.help/docs/api-whatwg-compression)
- [URL](https://elide.help/docs/api-whatwg-url), [URLPattern](https://elide.help/docs/api-whatwg-urlpattern), [Encoding](https://elide.help/docs/api-whatwg-encoding)
- [DOM Events](https://elide.help/docs/api-whatwg-dom-events), [Abort](https://elide.help/docs/api-whatwg-dom-abort), [Web Crypto](https://elide.help/docs/api-whatwg-web-crypto)
- [Navigator](https://elide.help/docs/api-wintercg-navigator), [Messaging](https://elide.help/docs/api-wintercg-messaging), [Performance](https://elide.help/docs/api-wintercg-performance)
- [DOMException and rejection events](https://elide.help/docs/api-web-misc-globals), [Timers](https://elide.help/docs/api-html-timers)
- [process](https://elide.help/docs/api-globals-process)
