Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yjs/ywasm
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yjs/ywasm
- Owner: yjs
- License: apache-2.0
- Created: 2020-10-16T22:13:04.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-14T15:22:01.000Z (almost 4 years ago)
- Last Synced: 2024-04-13T21:10:18.779Z (7 months ago)
- Language: JavaScript
- Size: 61.5 KB
- Stars: 34
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE_APACHE
Awesome Lists containing this project
README
# Ywasm
> Wasm bindings of the [Yrs](https://github.com/yjs/yrs/) CRDT
### 🛠️ Build with `wasm-pack build`
```sh
wasm-pack build
```Then open the demo application:
```sh
cd www
npm i
npm start
```### 🔬 Test in Headless Browsers with `wasm-pack test`
```sh
wasm-pack test --headless --firefox
```### 🎁 Publish to NPM with `wasm-pack publish`
```sh
wasm-pack publish
```### Advantages over Yjs
* Manual garbage collection. I.e. doesn't track every character as a separate object.
* Uses wee_alloc as a minimal memory management library.
* Small bundle size.### Todo
* Switch to monorepo.
* Reimplement classes from Yrs to export information custom to the web.