Notion Swatch Database Generator

How to use:

  1. Go to https://www.notion.so/profile/integrations and create an internal integration.
  2. Be sure to give the integration access to your target database. On the database page, go to ••• → Connections → Add your Integration to the database.
  3. Copy the secret key and set it as the value of the API_TESTER Environment Variable in this project.
  4. Copy the Data Source ID for your database's data source and set it as the value of the DATA_SOURCE_ID Environment Variable in this project.
  5. In main.ts, set MAX_COLORS to a desired value. You can limit it to a small number, like 5-10, for testing.
  6. Hit Run.