Skip to content

JSON File Store

The simplest subscriber store — perfect for local development and small lists.

Terminal window
export SUBSCRIBER_STORE=json
VariableDefaultDescription
SUBSCRIBERS_JSON_PATH./subscribers.jsonPath to subscriber data
EMAIL_LOG_JSON_PATH./email-log.jsonPath to email send log

Create a subscribers.json file with an array of subscriber objects:

[
{
"email": "alice@example.com",
"name": "Alice",
"productIds": ["my-app", "other-app"]
},
{
"email": "bob@example.com",
"productIds": ["my-app"]
}
]

Each subscriber has:

FieldRequiredDescription
emailYesSubscriber email address
nameNoDisplay name
productIdsYesArray of product IDs they’re subscribed to

When using audiences, use compound keys in productIds:

[
{
"email": "alice@example.com",
"productIds": ["my-app:beta"]
},
{
"email": "carol@example.com",
"productIds": ["my-app:enterprise", "other-app"]
}
]

Sent emails are logged to email-log.json (or your configured path). This is a simple append-only JSON array.

See subscribers.example.json in the repo.