- Boot Sequin
- Connect to a sample playground database
- Configure a NATS subject to receive database changes
- See your changes flow in real-time
Boot NATS
Run Sequin
Create directory and start services
- Download sequin-docker-compose.zip.
- Unzip the file.
- Navigate to the unzipped directory and start the services:
Alternative: Download with curl
Alternative: Download with curl
Alternative: Clone the repository
Alternative: Clone the repository
Verify services are running
docker ps:Up).Login
Open the web console

Login with default credentials
- Email:
- Password:
View the playground database
sequin_playground with a sample dataset in the public.products table.Let’s take a look:Navigate to Databases
Select playground database
sequin-playground database:
View contents of the products table
products table. Run the following command:psql command.products table:Subscribe to NATS
Create a NATS Sink
products table to your NATS subject:Navigate to Sinks
Select sink type
Note "Source" configuration
sequin-playground database is selected and all schemas and tables are included. Leave these defaults:
Setup a backfill
Inital backfill card, select the public.products table to initate a backfill when the sink is created.
Configure "NATS Configuration"
- Host: If running NATS and Sequin locally with Docker, use
host.docker.internal - Port: The port NATS is listening on (default: 4222)
- Username: (Optional) Your NATS username if authentication is enabled
- Password: (Optional) Your NATS password if authentication is enabled
- JWT: (Optional) Your NATS JWT if authentication is enabled
- NKey Seed: (Optional) Your NATS NKey seed if NKey authentication is enabled
- TLS: Enable TLS/SSL for secure connection (default: disabled)

Test the connection
Create the sink
products table. Then, it will receive all changes to the products table in real-time.Click “Create Sink” to finish setting up your NATS sink.See changes flow to your NATS subject
Messages tab

products table to your NATS subject.Check your NATS subscription

read events from the initial backfill of the products table.Make some changes
products table and see them flow to your subject.In your terminal, run the following command to insert a new row into the products table:Update a product's price
Update a product's price
Change a product's name
Change a product's name
Delete a product
Delete a product
- Set up a complete Postgres change data capture pipeline
- Loaded existing data through a backfill
- Made changes to the
productstable - Verified changes are flowing to your NATS subject

