/random-notion

Sample Notion integration to explore their API

Primary LanguageGo

Random Notion

This is a small sample project for playing around with the Notion API. It's based on Tiago Forte's idea of a utility to fetch random pages you've previously stored in EverNote. This project expects a central "content" database in which all pages are stored. It queries the Notion API to build a list of all pages in the database, then returns one at random, which when opened should redirect to Notion to view. In order to improve performance, as for me this returns hundreds of pages, after the first call the user's pages are cached in DynamoDb.

Caveats

This is just a personal project right now, with no intention of allowing others to connect it to their accounts. My implementation of a central database for content is rather specific, so I'm not sure whether this could be made more generally useful. I may explore implementing authorization through Notion auth to enable others to add this as an integration, but this would probably also require making this less tied to my specific Notion structure.