Powersync#

Self-Host for Local Development#

https://docs.powersync.com/self-hosting/local-development

Generate key using powersync-ja/self-host-demo

cd ~/github/powersync/self-host-demo/key-generator/
npm install
npm run start

Instructions have error: mounts ./config.yaml, but tutorial creates config/config.yaml.

Debug:

dc run --rm --entrypoint /bin/bash powersync

Fix volume mount in docker-compose.yml:

services:
  powersync:
    # ...
    volumes:
      - ./config.yml:/config/config.yaml

Conflict Resolution#

Basically: DIY

https://docs.powersync.com/architecture/consistency#powersync-designed-for-causal-consistency

Publication ‚powersync‘ not found#

You have to create a publication first (logical replication stream) before „test connection“ in Powersync dashboard works (c.f. powersync-ja/powersync-supabase-flutter-trello-demo)