README.md
# Yex
[![CI](https://github.com/satoren/y_ex/actions/workflows/elixir.yml/badge.svg)](https://github.com/satoren/y_ex/actions/workflows/elixir.yml)
[![Coverage Status](https://coveralls.io/repos/satoren/y_ex/badge.svg?branch=main)](https://coveralls.io/r/satoren/y_ex?branch=master)
[![hex.pm version](https://img.shields.io/hexpm/v/y_ex.svg)](https://hex.pm/packages/y_ex)
[![hex.pm downloads](https://img.shields.io/hexpm/dt/y_ex.svg)](https://hex.pm/packages/y_ex)
[![hex.pm license](https://img.shields.io/hexpm/l/y_ex.svg)](https://github.com/satoren/y_ex/blob/master/LICENSE)
[![Last Updated](https://img.shields.io/github/last-commit/satoren/y_ex.svg)](https://github.com/satoren/y_ex/commits/master)
[Yjs](https://yjs.dev/) port for Elixir using [y-crdt](https://github.com/y-crdt/y-crdt)
A demo using the phoenix framework can be found [here](https://github.com/satoren/y-phoenix-channel).
## Installation
```elixir
def deps do
[
{:y_ex, "~> 0.6.0"}
]
end
```
## Feature parity
| | yjs <br/>(13.6) | yrs<br/>(0.18) | y_ex<br/>(0.6.5) |
|-----------------------------------------|:-------------------------------------------------:|:------------------------------------------:|:------------------------------------------:|
| YText: insert/delete | ✅ | ✅ | ✅ |
| YText: formatting attributes and deltas | ✅ | ✅ | ✅ |
| YText: embeded elements | ✅ | ✅ | ✅ |
| YMap: update/delete | ✅ | ✅ | ✅ |
| YMap: weak links | ✅ <br/> <small>(weak-links branch)</small> | ✅ | ❌ |
| YArray: insert/delete | ✅ | ✅ | ✅ |
| YArray & YText quotations | ✅ <br/> <small>(weak links branch)</small> | ✅ | ✅ |
| YArray: move | ✅ <br/> <small>(move branch)</small> | ✅ | ✅ |
| XML Element, Fragment and Text | ✅ | ✅ | ✅ |
| Sub-documents | ✅ | ✅ | ❌ |
| Shared collections: observers | ✅ | ✅ | ❌ |
| Shared collections: recursive nesting | ✅ | ✅ | ❌ |
| Document observers | ✅ | ✅ | ✅ |
| Transaction: origins | ✅ | ✅ | ✅ |
| Snapshots | ✅ | ✅ | ❌ |
| Sticky indexes | ✅ | ✅ | ❌ |
| Undo Manager | ✅ | ✅ | ❌ |
| Awareness | ✅ | ✅ | ✅ |
| Network provider: WebSockets | ✅ <br/> <small>(y-websocket)</small> | ✅ <br/> <small>(yrs-warp)</small> | ❌ |
| Network provider: WebRTC | ✅ <br/> <small>(y-webrtc)</small> | ✅ <br/> <small>(yrs-webrtc)</small> | ❌ |