Peer-to-peer data sync between PhoenixKit instances, such as dev and prod or two separate websites. A sender connection lets a remote site pull chosen tables, with tokens, table allow/deny lists, limits, IP whitelists and expiry; one-time transfers use 8-character codes. Every transfer is recorded with history and an audit trail.
Use it when
- You want to copy production data into a dev or staging site
- Two of your sites need to share tables under controlled access
What it gives you
- Permanent token-based connections with automatic cross-site registration
- Incoming policies: auto accept, require approval, require password, deny all
- Ephemeral code-based one-time transfers
- Allowed/excluded tables, download and record limits, IP whitelist, time windows
- Conflict strategies skip, overwrite, merge, append; Oban background import
- Transfer history and activity audit; admin under /admin/sync
Example
config :phoenix_kit_sync,
allow_internal_urls: false,
excluded_tables: ["my_app_api_clients"]
Sync news
-
Sync 0.4.0: The module now owns the migrations of its tables
PhoenixKit Sync 0.4.0 for Phoenix takes over the migrations of its two tables from core, lets repair and doctor check them, and accepts PhoenixKit 3.x.
-
Sync 0.3.0: Requests per minute are enforced and previews load on demand
PhoenixKit Sync 0.3.0 for Phoenix enforces each connection's requests per minute, waits and retries when limited, and loads table previews only on a click.
-
Sync 0.2.5: Every connection limit is enforced, and secret tables stay home
PhoenixKit Sync 0.2.5 for Phoenix checks IP, hours, expiry, password and limits on every request and never syncs the tables that hold credentials.
-
Sync 0.2.4: Precise transfers pull only the records you picked
PhoenixKit Sync 0.2.4 for Phoenix makes the sender apply ID filters, reports tables it cannot pull, and stops sending the sign-in sessions table.
-
Sync 0.2.3: Breadcrumbs in the admin header and who created a connection
PhoenixKit Sync 0.2.3 for Phoenix shows the Sync pages in the admin header with breadcrumbs and records who created each connection in the Activity log.
Install
1
Add to mix.exs
{:phoenix_kit_sync, "~> 0.4"}
2 Fetch it and run its migrations
$ mix deps.get && mix phoenix_kit.update
3
Switch it on in /admin/modules
- Package
- phoenix_kit_sync
- Releases
-
- 0.4.0
- 0.3.0
- 0.2.5
- Admin
-
/admin/sync - Links
- HexDocs ↗ GitHub ↗ Changelog ↗
Related modules
What it needs, what builds on it, and its neighbours in Platform & tools.
Dashboards
Build admin dashboard pages from widgets that any module exposes
No other modules needed
Database Explorer
Browse Postgres tables and watch row changes live from the admin
No other modules needed
Hello World
A demo module to copy when building your own PhoenixKit module
No other modules needed
Legal
Generated legal pages, cookie consent banner and consent logging
Needs Publishing
Stats
Collect and chart time-series metrics from external sources over Graphite
No other modules needed
Templates Editor
Edit your app's email template files from the email settings page
Needs templates