ndrean
Re:ZeBridge – PostgreSQL replicas on devices, synchronized over NATS
on Thursday November 12, 2026 @03:47PM (#50474035)
FYI, I added CDRT support (the same as PowerSync) and an example. It is agnostic, so you bring in your prefered library. It is not optimal though, I don't clean Postgres. I will push this.
Re:ZeBridge – PostgreSQL replicas on devices, synchronized over NATS
on Wednesday November 11, 2026 @08:03AM (#50452915)
I understand. I needed rules, so LWW like Cassandra covered probably 80% of use cases. Otherwise, it is like Electric, all left to you.
Re:ZeBridge – PostgreSQL replicas on devices, synchronized over NATS
on Tuesday November 10, 2026 @04:25AM (#50437914)
CRDT is useful when the application has a meaningful way to merge concurrent edits, if any. They don' replace database constraints or business rules.
With LWW, you have a predictable winner when 2 devices replace the same value. Merging changes does not automatically preserve a unique realist: you need server validaation. LWW loses concurrent intents, but for many PG-backed applications, explicit/nderstandable conflict outcomes matters more than automatic edits preservation.
BTW, what do you mean by dead comments?
Re:ZeBridge – PostgreSQL replicas on devices, synchronized over NATS
on Sunday November 08, 2026 @06:41AM (#50412402)
Right, it isn’t transparent. Unlike a CRDT, not every write is guaranteed to be accepted. Every write is applied locally at once, durably queued, and sent to PostgreSQL when online. The guarantee is that no write is lost, and each one ends with an explicit verdict: accepted, or refused with the reason and rolled back locally.
ZeBridge – PostgreSQL replicas on devices, synchronized over NATS
Re:Sanitize HTML up to x15 vs. DOMPurify
on Sunday March 08, 2026 @04:26PM (#47301048)
Sanitize your HTML on steroids. You may not need heavy tools to sanitize HTML and CSS. Thanks to the power of Zig and Lexbor, I built Zanitizer: a fast and lightweight sanitizer that parses the actual HTML and CSS ASTs natively.
No more JSDOM. Up to 15 times faster. Tested against 229 known OWASP/H5SC threats.
Available as a ~350kB WASM drop-in for Node/Browser or a 1.2MB standalone CLI.