Skip to content

Install and first run

DropNow is a command-line tool that runs on a machine inside your own environment: a server, a scheduled job runner or a laptop that can reach your database.

DropNow is open source under the Apache-2.0 licence. The code is on GitHub, so you can read exactly what it does before it touches your data.

  • Node.js 20 or newer. Check with node --version.
  • A DROP account. You generate an API key in the DROP portal. Start with a sandbox key.
  • Access to your consumer data. Postgres or a CSV export today.
  • Your 4-digit Data Broker ID, shown in your DROP account.
Terminal window
npm install -g dropnow

This puts the dropnow command on your path. Check it:

Terminal window
dropnow --version

To update later, run npm update -g dropnow.

  1. In the folder you will run DropNow from, create a starter config, then edit it. See Configuration for every field.

    Terminal window
    dropnow init

    It writes dropnow.config.json, set to the DROP sandbox, and never overwrites a config that is already there.

  2. Put your secrets in environment variables. They are never read from the config file.

    Terminal window
    export DROPNOW_API_KEY="your DROP API key"
    export DROPNOW_PG_URL="postgres://user:password@host:5432/database"
  3. Check that your hashing matches DROP’s. Hash a test value and compare it with the standardization and hashing tool in the DROP sandbox:

    Terminal window
    dropnow hash Email anna.smith@domain.com
    # KA18MT/ph6IHYjzT9zwETySDQyvSh87YuoSBpOQtkhE=

Run these in order:

Terminal window
dropnow pull # download the next batch
dropnow match # find matches (reads only)
dropnow apply # dry run: shows what would change
dropnow apply --execute # delete and opt out
dropnow upload # report statuses to DROP
dropnow status # where you stand against the deadline

If DROP is still preparing your lists, pull says so. Run it again a minute later.

Start in the sandbox. When you are ready for real requests, set "environment": "production" in the config and switch to your production API key.