Skip to content

SG60/EventSpider

Repository files navigation


Uses Just (see the justfile) for running scripts etc.

https://eu-west-2.console.aws.amazon.com/dynamodbv2/home?region=eu-west-2#item-explorer?initialTagKey=&table=tasks

DB Design

The DB just stores sync settings and refresh tokens.

DB Schema

PK Attributes
userId SK type (GSI-1-PK) data (GSI-1-SK)
firebase auth user id
userDetails type data notionBotId googleRefreshToken notionAccessToken other stuff
userDetailsACTIVE or INACTIVEnotionB#bot_id asdfasefa asdfasefa workspace name, workspace emoji, etc.
sync#0 typedata (next sync timestamp)last syncnotionDatabasegoogleCalendarnotionDBProps
syncSCHEDULED#2007-04-05T14:30Z
or DISABLED
or ERROR
LAST#2007-04-05T14:30Zasdfaseasdf3
{"notionTitleId":{"S":"title"},"notionDoneId":{"S":"O%7CaE"}}

GSI-1 will be:

type (e.g. userDetails)data

This should allow sorting all active syncs (e.g. 'sync' + startsWith 'SCHEDULED#') and other useful queries.

Probably doesn't need rows for items. Maybe they can all just be stored in memory.

https://eu-west-2.console.aws.amazon.com/dynamodbv2/home?region=eu-west-2#item-explorer?initialTagKey=&table=tasks

https://console.firebase.google.com/project/notion-sync-tools/authentication/users

Notion Integration

https://www.notion.so/my-integrations/public/f8014299c7f64cac8315d858c2aab2c8

Postman Workspace

https://web.postman.co/workspace/fe759fe4-0286-4679-860f-6dc84d8af0fc

k8s infra

Deployed to Oracle kubernetes cluster.

https://github.com/SG60/EventSpider-infrastructure-config