Skip to content

Notes

This is a collaborative note-taking app with real-time sync powered by Electric and Yjs.

Electric <> Yjs demo

See the demo running at notes.examples.electric-sql.com

Notes demonstrates our Yjs integration. By combining Yjs's powerful collaborative editing capabilities with Postgres and Electric, you get the best of both worlds:

  • Postgres provides rock-solid storage that can handle millions of documents with powerful querying capabilities
  • Electric provides real-time sync that scales to millions of concurrent users while keeping your data consistent
  • Yjs handles the collaborative editing with battle-tested conflict resolution

y-electric.ts provides a standard Yjs provider similar to y-websocket. Internally it syncs Yjs operations using the standard ShapeStream class from the Electric Typescript client.