# @dxos/react-client

> React client API

Latest version **0.16.0** (published 2026-10-19) · FSL-1.1-Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @dxos/react-client
pnpm add @dxos/react-client
yarn add @dxos/react-client
bun add @dxos/react-client
```

## Health

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

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

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.16.0 |
| Published | 2026-10-19 |
| First published | 2020-03-06 |
| Weekly downloads | 0 |
| License | FSL-1.1-Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 14 |
| Unpacked size | 1.3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 532 |
| Author | DXOS.org |
| Maintainers | richburdon, marik_d, wittjosiah, dxos-bot, mykola-vrmchk |

## Links

- npm: https://www.npmjs.com/package/@dxos/react-client
- Repository: https://github.com/dxos/dxos
- Homepage: https://dxos.org
- Issues: https://github.com/dxos/dxos/issues
- npm.io page: https://npm.io/package/@dxos/react-client

## Dependencies (14)

- [@dxos/log](https://npm.io/package/@dxos/log.md) 0.16.0
- [@dxos/echo](https://npm.io/package/@dxos/echo.md) 0.16.0
- [@dxos/keys](https://npm.io/package/@dxos/keys.md) 0.16.0
- [@dxos/util](https://npm.io/package/@dxos/util.md) 0.16.0
- [@dxos/async](https://npm.io/package/@dxos/async.md) 0.16.0
- [@dxos/debug](https://npm.io/package/@dxos/debug.md) 0.16.0
- [@dxos/client](https://npm.io/package/@dxos/client.md) 0.16.0
- [@dxos/config](https://npm.io/package/@dxos/config.md) 0.16.0
- [@dxos/context](https://npm.io/package/@dxos/context.md) 0.16.0
- [@dxos/node-std](https://npm.io/package/@dxos/node-std.md) 0.16.0
- [@dxos/echo-react](https://npm.io/package/@dxos/echo-react.md) 0.16.0
- [@dxos/react-hooks](https://npm.io/package/@dxos/react-hooks.md) 0.16.0
- [@bufbuild/protobuf](https://npm.io/package/@bufbuild/protobuf.md) 2.11.0
- [@dxos/echo-protocol](https://npm.io/package/@dxos/echo-protocol.md) 0.16.0

## Recent versions

- 0.16.0 (latest) — 2026-10-19
- 0.16.0-next-60712ab191a99ba90316cc4be753e9e11b17100a (next) — 2026-10-19
- 0.9.1-main.c7dcc2e112 (main) — 2026-06-19
- 0.7.5-labs.d199c0f (labs) — 2025-03-12
- 2.33.9-dev.a2586ac4 (dev) — 2022-08-17
- 0.14.0 — 2026-10-10
- 0.13.0 — 2026-10-07
- 0.12.0-next-73daef452f1464b62efdbca75fb0067c1066f264 — 2026-08-27
- 0.12.0-next-2800d0376abcc62d5544afdd744b16b2b960434e — 2026-08-27
- 0.12.0-next-2be9f24c465d98f4bd186aa03ece788902e6c17a — 2026-08-27
- 1.0.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d — 2026-08-10
- 0.11.1 — 2026-08-05
- 0.11.0 — 2026-08-05
- 0.10.0 — 2026-07-02
- 0.9.1-staging.ee54ba693a — 2026-07-02
- … 3459 more at https://npm.io/package/@dxos/react-client/versions

## README

# @dxos/react-client

React client API

## Installation

```bash
pnpm i @dxos/react-client
```

## Usage

The snippet below illustrates a self-contained DXOS application that uses providers to create the client and instantiate a user profile.

```javascript

import React from 'react';
import { useClient, ClientProvider } from '@dxos/react-client';
import { createRoot } from 'react-dom/client';

const App = () => {
  const client = useClient();
  const space = useSpaces();
  return (
    <pre>{JSON.stringify(client.info())}</pre>
  );
};

const Root = () => (
  <ClientProvider>
    <App />
  </ClientProvider>
);

createRoot(document.getElementById('root')!)
  .render(<Root/>);

```

## Documentation

- [⚡️ Quick Start](https://docs.dxos.org/guide/quick-start)
- [📖 Developer Guide](https://docs.dxos.org/guide/echo/react)
- [📚 API Reference](https://docs.dxos.org/api/@dxos/react-client)

## Storybooks

The [HALO Invitation Story](./stories/halo-invitations.stories.tsx) demonstrates multiple clients (devices) joining the same HALO. [Demo video](https://user-images.githubusercontent.com/3523355/137532718-a21f1f27-9854-4c0b-831a-e9ff92feac49.mov).

The [Space Invitation Story](./stories/space-invitations.stories.tsx) demonstrates multiple clients creating and sharing spaces. [Demo video](https://user-images.githubusercontent.com/3523355/137532717-e77395dc-96f9-4e4b-8f67-e6bd026a3abe.mov).

## DXOS Resources

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

## 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: [FSL-1.1-Apache-2.0](./LICENSE) Copyright 2022 © DXOS

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