notion-swatches-latest
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
How to use:
- Go to https://www.notion.so/profile/integrations and create an internal integration.
- Be sure to give the integration access to your target database. On the
database page, go to
•••
→ Connections → Add your Integration to the database. - Copy the secret key and set it as the value of the API_TESTER Environment Variable in this project.
- 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.
- In main.ts, set MAX_COLORS to a desired value. You can limit it to a small number, like 5-10, for testing.
- Hit Run.