Event sourcing
One of the key aspects of local-first software development is using event sourcing to trigger server-side / background processing.
ElectricSQL doesn't provide yet-another event sourcing solution. Instead it defers to existing change data capture systems that work with Postgres.
This section provides a summary of some of your options, including triggers, logical replication and streaming database integrations.