{"id":23044832,"url":"https://github.com/nish7/gcal-notion-bot","last_synced_at":"2025-08-14T23:31:27.316Z","repository":{"id":224300403,"uuid":"476158861","full_name":"Nish7/gcal-notion-bot","owner":"Nish7","description":"Google calendar and Notion Integration Bot. ","archived":false,"fork":false,"pushed_at":"2025-05-24T21:12:44.000Z","size":543,"stargazers_count":4,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"node-bot","last_synced_at":"2025-05-24T22:44:36.229Z","etag":null,"topics":["bot","expressjs","javascript","nodejs","notion-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nish7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-03-31T05:08:51.000Z","updated_at":"2025-03-17T18:53:02.000Z","dependencies_parsed_at":"2024-02-25T07:36:38.028Z","dependency_job_id":null,"html_url":"https://github.com/Nish7/gcal-notion-bot","commit_stats":null,"previous_names":["nish7/gcal-notion-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Nish7/gcal-notion-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nish7%2Fgcal-notion-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nish7%2Fgcal-notion-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nish7%2Fgcal-notion-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nish7%2Fgcal-notion-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nish7","download_url":"https://codeload.github.com/Nish7/gcal-notion-bot/tar.gz/refs/heads/node-bot","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nish7%2Fgcal-notion-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270499971,"owners_count":24595149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","expressjs","javascript","nodejs","notion-api"],"created_at":"2024-12-15T21:16:22.374Z","updated_at":"2025-08-14T23:31:27.295Z","avatar_url":"https://github.com/Nish7.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Calendar - Notion Integration\n[![refresh-events](https://github.com/Nish7/gcal-notion-bot/actions/workflows/refresh.yml/badge.svg?branch=node-bot)](https://github.com/Nish7/gcal-notion-bot/actions/workflows/refresh.yml)\n\nAutomatically syncs events from a Notion database to Google Calendar, including details like course, title, status, task, weightage, scores, and notes.\n\n## Features\n- Syncs Notion database entries to Google Calendar events\n- Automatically updates existing events when Notion entries change\n- Preserves all metadata including scores, weightage, and notes\n- Runs on a schedule or can be triggered manually\n\n## Setup\n\n### 1. Notion Setup\n1. Create a Notion integration at https://www.notion.so/my-integrations\n2. Copy your integration secret (this will be your `NOTION_KEY`)\n3. Share your Notion database with the integration\n4. Copy your database ID from the URL (this will be your `DATABASE_ID`)\n   - The ID is the part of the URL after the workspace name and before the query parameters\n   - Example: `https://notion.so/workspace/1234567890abcdef1234567890abcdef`\n   - In this case, `1234567890abcdef1234567890abcdef` is your database ID\n\n### 2. Google Calendar Setup\n1. Go to the Google Cloud Console: https://console.cloud.google.com\n2. Create a new project or select an existing one\n3. Enable the Google Calendar API\n4. Go to Credentials and create OAuth 2.0 Client credentials\n   - Set up the OAuth consent screen if needed\n   - Add the required scopes for Google Calendar\n5. Download the client credentials\n   - `OAUTH_CLIENTID` and `OAUTH_SECRET` will be in this file\n6. Get your `REFRESH_TOKEN` using Google OAuth 2.0 Playground:\n   - Go to https://developers.google.com/oauthplayground/\n   - Click ⚙️ (Settings) in the top right\n   - Check \"Use your own OAuth credentials\"\n   - Enter your OAuth Client ID and Secret\n   - Close settings\n   - On the left, find or search for:\n     - `https://www.googleapis.com/auth/calendar`\n     - `https://www.googleapis.com/auth/calendar.events`\n   - Select both scopes\n   - Click \"Authorize APIs\" and sign in\n   - Click \"Exchange authorization code for tokens\"\n   - Copy the \"Refresh token\" value\n\n### 3. Environment Variables\n1. Copy `.env.example` to `.env`:\n   ```bash\n   cp .env.example .env\n   ```\n2. Fill in your credentials in `.env`:\n   - `OAUTH_CLIENTID`: Your Google OAuth Client ID\n   - `OAUTH_SECRET`: Your Google OAuth Client Secret\n   - `REFRESH_TOKEN`: Your Google OAuth Refresh Token (obtained from OAuth Playground)\n   - `NOTION_KEY`: Your Notion Integration Secret\n   - `DATABASE_ID`: Your Notion Database ID\n   - `TZ`: Your timezone (default: Canada/Eastern)\n\n## Running the Project\n\n### With Bun\n\nBun has built-in support for loading environment variables from your `.env` file, so you do not need to use `dotenv` when running with Bun.\n\n```bash\n# Install dependencies\nbun install\n\n# Start the sync process\nbun run start\n\n# Development mode with hot reload\nbun run dev\n```\n\nAfter running `bun install`, Bun will generate a `bun.lockb` file for reproducible installs. You should commit this file to version control.\n\n### With Node\n\n```bash\n# Install dependencies\nnpm install\n\n# Start the sync process\nnpm start\n```\n\n## Required Notion Database Structure\n\nYour Notion database should have the following properties:\n- `Name` (Title): Event title\n- `Course` (Select): Course name\n- `Dates` (Date): Event date/time\n- `Task` (Multi-select): Task type\n- `Weight` (Number): Score weight\n- `Weightage` (Number): Total possible weight\n- `Scored` (Number): Actual score\n- `Status` (Checkbox): Completion status\n- `Notes` (Text): Additional notes (optional)\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnish7%2Fgcal-notion-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnish7%2Fgcal-notion-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnish7%2Fgcal-notion-bot/lists"}