# @dxos/echo-schema

> ECHO database.

Latest version **0.8.3** (published 2025-07-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dxos/echo-schema
pnpm add @dxos/echo-schema
yarn add @dxos/echo-schema
bun add @dxos/echo-schema
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.8.3 |
| Published | 2025-07-03 |
| First published | 2023-01-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 11 |
| Unpacked size | 1.5 MB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Author | info@dxos.org |
| Maintainers | richburdon, marik_d, wittjosiah, dxos-bot, mykola-vrmchk, yarolegovich |

## Links

- npm: https://www.npmjs.com/package/@dxos/echo-schema
- Homepage: https://dxos.org
- Issues: https://github.com/dxos/dxos/issues
- npm.io page: https://npm.io/package/@dxos/echo-schema

## Dependencies (11)

- [effect](https://npm.io/package/effect.md) 3.14.21
- [@dxos/log](https://npm.io/package/@dxos/log.md) 0.8.3
- [@dxos/keys](https://npm.io/package/@dxos/keys.md) 0.8.3
- [@dxos/util](https://npm.io/package/@dxos/util.md) 0.8.3
- [@dxos/debug](https://npm.io/package/@dxos/debug.md) 0.8.3
- [@dxos/effect](https://npm.io/package/@dxos/effect.md) 0.8.3
- [@dxos/node-std](https://npm.io/package/@dxos/node-std.md) 0.8.3
- [@dxos/invariant](https://npm.io/package/@dxos/invariant.md) 0.8.3
- [@dxos/echo-signals](https://npm.io/package/@dxos/echo-signals.md) 0.8.3
- [@dxos/echo-protocol](https://npm.io/package/@dxos/echo-protocol.md) 0.8.3
- [@preact/signals-core](https://npm.io/package/@preact/signals-core.md) ^1.9.0

## Recent versions

- 0.8.3 (latest) — 2025-07-03
- 0.8.4-main.a4bbb77 (main) — 2025-10-08
- 0.8.3-staging.0fa589b (next) — 2025-07-02
- 0.7.5-labs.d199c0f (labs) — 2025-03-12
- 0.8.4-main.1da679c — 2025-09-25
- 0.8.4-main.e098934 — 2025-09-24
- 0.8.4-main.1f223c7 — 2025-09-24
- 0.8.4-main.dedc0f3 — 2025-09-23
- 0.8.4-main.5ea62a8 — 2025-09-08
- 0.8.4-main.f5c0578 — 2025-08-13
- 0.8.4-main.28f8d3d — 2025-08-13
- 0.8.4-main.fd6878d — 2025-08-13
- 0.8.4-main.67995b8 — 2025-08-01
- 0.8.4-main.5acf9ea — 2025-08-01
- 0.8.4-main.2e9d522 — 2025-07-30
- … 2319 more at https://npm.io/package/@dxos/echo-schema/versions

## README

# @dxos/echo-schema

ECHO database.

## Installation

```bash
pnpm i @dxos/echo-schema
```

## DXOS Resources

- [Website](https://dxos.org)
- [Developer Documentation](https://docs.dxos.org)
- Talk to us on [Discord](https://dxos.org/discord)

# ECHO Schema

- ECHO Schema is a lightweight runtime type system to define objects independently of their storage (e.g., native file system, browser storage, ECHO)
- All objects are associated with a schema definition.
- Schemas are defined by EffectTS.
- Schemas may be statically defined by code, or be runtime mutable.
- Each space maintains a schema registry.
- Schema definitions are versioned with semvar semantics.
  - Objects created with a schema version lower than the current major/minor version must be migrated.
  - Non-migrated objects are not visible to queries unless explicitly requested.
- Schema definitions are serializable via JSON schema.
- Properties may include strong and weak references to other objects.
  - Strong references define an owning relationship indicating that referenced objects should be deleted (or migrated) when the parent object is deleted.
- Objects include the following metadata:
  - Schema name (immutable)
  - Schema version: updated during schema migration
  - Version
  - Creation time (immutable)
  - Last mutation time

## Contributions

Your ideas, issues, and code are most welcome. Please take a look at our [community code of conduct](https://github.com/dxos/dxos/blob/main/CODE_OF_CONDUCT.md), the [issue guide](https://github.com/dxos/dxos/blob/main/CONTRIBUTING.md#submitting-issues), and the [PR contribution guide](https://github.com/dxos/dxos/blob/main/CONTRIBUTING.md#submitting-prs).

License: [MIT](./LICENSE) Copyright 2022 © DXOS

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