Urgent.News

What's breaking now, across thousands of outlets.

Tech

I abused JS to abuse Yjs

Because I just wanted to keep my TypeScript classes. I was not trying to build a CRDT framework. Honestly, I really, really wanted to avoid building one, and I guess you can see that in the API. I ended up creating Plexus ( https://plexus.here.build/ , https://github.com/here-build/plexus ). I had a fairly large TypeScript object model. It originally grew out of the open-source model by third…

The author wanted to keep their TypeScript classes and didn't want to build a CRDT framework. They created Plexus, a framework that allows them to use their existing classes and MobX decorators while collaborating collaboratively with Yjs. The problem was that Yjs is a CRDT engine, which gives shared data structures that can be modified independently on different peers and merged, but using them directly would make the application model incompatible with their existing classes.

To solve this, the author needed to change the decorator used, not the model. However, the migration was challenging because the application model was already built around classes and MobX decorators. The author tried to use stage-3 decorators to avoid the temptation of using stage-2, but it required polymorphic decorators to replace getters and setters on auto-accessors.

This made the process more complex, but it allowed them to keep their existing classes and only change the decorator used, keeping the external behavior of their classes.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Flash Loan Attack Vector Analysis: Concrete

Flash Loan Attack Vector Analysis: Concrete Target Protocol : Concrete (TVL: $1259.7M) Concrete – Flash‑Loan Attack Vector Analysis Prepared by: [Your Company / Senior DeFi Security Researcher] Date…

Cross-Site Scripting in the WID-SEC-2026-3554 Batch: The CVE-2026-96369 Angle

Cross-Site Scripting in the WID-SEC-2026-3554 Batch: The CVE-2026-96369 Angle Vulnerability overview CVE-2026-96369 is part of CERT-BUND advisory WID-SEC-2026-3554, published 23 September 2026 and…

  • CVE-2026-96369 is a high-risk cross-site scripting vulnerability
  • Affects sixteen contributed Drupal projects
  • Exploitation could lead to arbitrary code execution

More from Thursday 1 October →