An open API service indexing awesome lists of open source software.

https://github.com/satoren/y_ex

Yjs port for Elixir
https://github.com/satoren/y_ex

elixir yjs

Last synced: about 1 year ago
JSON representation

Yjs port for Elixir

Awesome Lists containing this project

README

          

# 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
(13.6) | yrs
(0.18) | y_ex
(0.7.0) |
|-----------------------------------------|:-------------------------------------------------:|:------------------------------------------:|:------------------------------------------:|
| YText: insert/delete | ✅ | ✅ | ✅ |
| YText: formatting attributes and deltas | ✅ | ✅ | ✅ |
| YText: embeded elements | ✅ | ✅ | ✅ |
| YMap: update/delete | ✅ | ✅ | ✅ |
| YMap: weak links | ✅ 
(weak-links branch) | ✅ | ❌ |
| YArray: insert/delete | ✅ | ✅ | ✅ |
| YArray & YText quotations | ✅ 
(weak links branch) | ✅ | ✅ |
| YArray: move | ✅ 
(move branch) | ✅ | ✅ |
| 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 | ✅ 
(y-websocket) | ✅ 
(yrs-warp) | ❌ |
| Network provider: WebRTC | ✅ 
(y-webrtc) | ✅ 
(yrs-webrtc) | ❌ |