All Templates / Other
ZeroSync
Rocicorp's ZeroSync engine for local-first apps
ZeroSync
rocicorp/zero:0.15.2025021402
Just deployed
/zero-data
This template only creates the sync engine. You will need to bring your own Postgres instance.
Before deploying for the first time,
PG_DATABASE_URL
environment variable. This should be the private URL.logical
.
"ALTER SYSTEM SET wal_level = 'logical'
. Next restart your running Postgres instance.After deploying for the first time,
ok
it means everything is working.ZERO_PUBLIC_URL
.In Zero, access is denied by default. To be able to sync data to your application, you will first need to set up permissions. It's best to read this page to understand how it works.
Although you describe permissions by calling functions in Typescript, permissions are actually compiled into JSON and then uploaded to your Postgres instance. Once you defined your permissions, you will have to run the following command:
npx zero-deploy-permissions -p ./path/to/schema --upstream-db ${DATABASE_PUBLIC_URL}
Note that DATABASE_PUBLIC_URL
is the public URL to your database, not the private URL that you set up before deploying.
You may have to play around with the ZERO_NUM_SYNC_WORKERS
to figure out what works best depending on the your service's allocated resources. Decrease/increase this value depending on how many upstream connections your service resources allow.
Template Content
ZeroSync
rocicorp/zero:0.15.2025021402PG_DATABSE_URL
Postgres connection URL.
Details
Marcelo Perrella's Projects
Created on Feb 16, 2025
2 total projects
1 active projects
83% success on recent deploys
Other
More templates in this category
Foundry Virtual Tabletop
A Self-Hosted & Modern Roleplaying Platform
Lucas's Projects
44
(v1) Simple Medusa Backend
Deploy an ecommerce backend and admin using Medusa
Shahed Nasser's Projects
318