simonsmith

simonsmith

Hi,

I am bit overwhelmed with some of the tooling & libraries available in elixir & phoenix. I am looking to build a collaborative text editor in Phoenix as a test project as it is something I know quite well and it seems the perfect project for phoenix.

I can see things like GitHub - deltadoc/text_delta: Elixir counter-part of the Quill.js Delta library. Provides a baseline for Operational Transformation of rich text. · GitHub , GitHub - derekkraan/delta_crdt_ex: Use DeltaCrdt to build distributed applications in Elixir · GitHub and the Phoenix.Presence which all look useful, however I am not clear on well trodden path for this sort of app in elixir. Is there a recommended set of tooling for this sort of problem?

Showing Posts 1 to 1

carterbryden

carterbryden

Welcome! I’ve felt the same before. There’s not as many universally used libraries in elixir yet as some languages, and people do things many different ways. It can be hard to know what path to follow.

My guess if that you’re not likely to find a well-trodden path for this in elixir right now. I think there are probably a lot of toy examples of this but I’d expect most libraries would be very new or lower level than what you’re hoping for.

My suggestion instead would be to take a step back and consider how you might do this in the simplest way possible without a library. It would probably look something like this (assuming phoenix):

  • A page (template, controller, and router path)
  • A textarea on that page
  • A phoenix channel to send changes to the server, and to send those changes out in real time to other people on the page

After that you’d have a basic real-time updating collaborative text editor.

If I was doing this myself I’d most likely use a phoenix liveview, which works really well for this kind of thing, but will involve some extra learning.

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews