# automerge-backend-wasm

> A js/wasm wrapper for the rust implementation of automerge-backend

Latest version **0.1.4** (published 2021-02-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install automerge-backend-wasm
pnpm add automerge-backend-wasm
yarn add automerge-backend-wasm
bun add automerge-backend-wasm
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2021-02-18 |
| First published | 2020-04-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6728 |
| Maintainers | orionhenry |

## Links

- npm: https://www.npmjs.com/package/automerge-backend-wasm
- Repository: https://github.com/automerge/automerge-rs
- Homepage: https://github.com/automerge/automerge-rs#readme
- Issues: https://github.com/automerge/automerge-rs/issues
- npm.io page: https://npm.io/package/automerge-backend-wasm

## Recent versions

- 0.1.4 (latest) — 2021-02-18
- 0.1.0 — 2020-04-02

## README

## automerge-backend-wasm

This is a wrapper for the rust implementation of [automerge-backend](https://github.com/automerge/automerge-rs/tree/master/automerge-backend) to be used with [Automerge](https://github.com/automerge/automerge).

### Using

You can require this syncronously as a CommonJS module or import it as a ES6 module

```js
let Automerge = require("automerge")
let Backend = require("automerge-backend-wasm")
Automerge.setDefaultBackend(Backend)
```

```js
import * as Automerge from "automerge"
import * as Backend from "automerge-backend-wasm"
Automerge.setDefaultBackend(Backend)
```

Note that the first uses a syncronous filesystem load of the wasm and will not be transferable to a browser bundle.  The second uses ES6 wasm import statements which should work in all modern browsers but require a '--experimental-wasm-modules' flag on nodejs (v13 on) unless you pack/bundle the code into compatible format.

---
_Source: https://npm.io/package/automerge-backend-wasm · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
