website/docs/integrations/neon.md
Neon is a serverless Postgres hosting platform.
You can use Electric with Neon's serverless Postgres hosting.
[!Tip] Need context? See the Deployment guide for more details.
Sign up to Neon and go through the steps to create a database.
On the project page, go to Settings -> Logical Replication and click "Enable".
[!Tip] Neon and logical replication See the Neon guide on logical replication for information about how logical replication works with the rest of the Neon feature set.
Go to the Dashboard page and copy the database connection string.
Make sure you don't check "Pooled connection". You want the direct connection string in order to use logical replication.
You can then run Electric with this connection string as the DATABASE_URL, e.g.:
docker run -it \
-e "DATABASE_URL=YOUR_NEON_CONNECTION_STRING" \
electricsql/electric:latest
[!Tip] Need somewhere to host Electric? If you need somewhere to deploy Electric then Neon works well with Render.
Electric and Neon have also collaborated to develop PGlite, which was started as a project by Neon's CTO, Stas Kelvich.