Skip to content
VaultLens Studio

Live sync

Live sync sends changes people make in your Knack app to your database within seconds, instead of waiting for the next scheduled sync. It works through a short snippet you paste into your Knack app’s JavaScript. See Install the live sync snippet.

Live sync is required during analytics setup: the first clone only starts once VaultLens hears from your app.

How changes flow

  1. Someone adds, edits or deletes a record in your live Knack app.
  2. The snippet tells VaultLens which record changed. It sends the record ID only. No field values leave the browser.
  3. VaultLens waits about 5 seconds, then reads the record from Knack with your API key.
  4. VaultLens writes the record to your database, or marks it deleted if Knack no longer has it.

Each live change uses one Knack API call. It shows as Live sync in the app’s API usage meter.

Several quick edits count once

If the same record changes several times within about 5 seconds, VaultLens reads it once and writes its latest state. This saves API calls when someone saves a form several times in a row.

Connected records

When a record changes, connected records whose roll-ups depend on it (count, sum, min, max or average) are refreshed too. For example, a customer’s order count is refreshed when an order is added. This covers up to 50 records per change, one API call each. You can change it per table under Connected records in the app’s Settings tab.

What live sync covers

Changes made in your live app’s forms, table inline edits and delete links arrive within seconds.

Changes made elsewhere arrive at the next scheduled sync instead, because Knack doesn’t tell the browser about them:

  • action links
  • record rules (for example “update connected records” on a form)
  • bulk edits and deletes
  • edits in the Knack Builder, and imports
  • tasks, Flows and integrations such as Zapier or Make
  • API scripts

The scheduled sync always runs as a safety net, even with live sync on. See Scheduled syncs and schema changes.

Check live sync health

Open the app and go to the Live sync tab. Once VaultLens has heard from your app, Live sync health · last 7 days shows:

  • Changes: live changes received.
  • Failed: changes that couldn’t be applied.
  • Avg. time to database: from the change in Knack to the row in your database.
  • Last change: when the most recent change arrived.

The Overview tab shows the same status in the Live sync tile. If some live changes couldn’t be applied, a warning appears with a Retry button. The next scheduled sync also picks those records up.

Pause and resume

Pause live sync during big imports or maintenance:

  1. Go to the app’s Live sync tab.
  2. Click Pause live sync.

While paused, VaultLens holds the latest change for each record. Nothing is lost, and scheduled syncs still run. Click Resume live sync to apply the held changes.

Custom domains

If your live app runs on your own domain instead of *.knack.com, add the domain under Custom domains on the Live sync tab, one per line, then click Save domains. Changes from domains that aren’t listed are ignored.

Get a new snippet token

The snippet contains a token that routes changes to this app. It isn’t a password and can’t read or change your data. To replace it, click New snippet token. The old snippet stops working within 30 seconds, so paste the new snippet into Knack straight away.