{"id":13433492,"url":"https://github.com/ighoshsubho/NotionAutomation","last_synced_at":"2025-03-17T12:31:51.431Z","repository":{"id":187473184,"uuid":"671136153","full_name":"ighoshsubho/NotionAutomation","owner":"ighoshsubho","description":"Notion Automation using Serverless and Notion API","archived":false,"fork":false,"pushed_at":"2023-08-11T10:20:01.000Z","size":40,"stargazers_count":13,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-28T16:12:24.280Z","etag":null,"topics":["aws","devto","javascript","lambda","nodejs","notion-api","serverless"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ighoshsubho.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-26T16:07:52.000Z","updated_at":"2024-08-23T04:07:07.000Z","dependencies_parsed_at":"2023-08-10T18:05:34.906Z","dependency_job_id":null,"html_url":"https://github.com/ighoshsubho/NotionAutomation","commit_stats":null,"previous_names":["ighoshsubho/notionautomation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ighoshsubho%2FNotionAutomation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ighoshsubho%2FNotionAutomation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ighoshsubho%2FNotionAutomation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ighoshsubho%2FNotionAutomation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ighoshsubho","download_url":"https://codeload.github.com/ighoshsubho/NotionAutomation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244033854,"owners_count":20387013,"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","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":["aws","devto","javascript","lambda","nodejs","notion-api","serverless"],"created_at":"2024-07-31T02:01:27.069Z","updated_at":"2025-03-17T12:31:50.936Z","avatar_url":"https://github.com/ighoshsubho.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Notion Automation using Serverless and Notion API\nHey, Subho this side, I created this project. You can freely use this to automate your blog posts to DevTo. More integrations will come soon. And if you want you can defnitely contribute to this. Plan is to automate for all the blogging platforms.\n\n## How to setup Local Environment\n\n### Step 1 \n\nInstall all dependencies :accessibility:\n\n```\nnpm install\n\nnpm install -g serverless\n\nserverless config credentials --provider aws --key \u003cYOUR_USER_KEY\u003e --secret \u003cYOUR_USER_SECRET\u003e\n```\n\n### Step 2\n\nAdd Environment Variables. There is only two variables required to make this work. You already have a **.env.local** file in your root directory if you have done the Step 1 properly.\n```\nNOTION_API_KEY=\nDEV_TO_API_KEY=\nNOTION_DATABASE_ID=\n```\n\n#### Getting the env. 🔍\nHead to [Notion's Integration Website](https://www.notion.so/my-integrations). Make a new integration and get the secret key from there. That is your NOTION_TOKEN.\n\nFinally it's time to get the NOTION_DATABASE_ID\n\nSee the URL of the page. For example https://www.notion.so/XYZ/ContentCurator-cd0db9f8767843ca9563c591a233be5b. Here `cd0db9f8767843ca9563c591a233be5b` is the database id.\n\n### Step 3\n\nAdd Environment Variables in `serverless.yml` file. If you want, you can play around with the scheduler and make your lambda function check every `X` minutes whether you are `done` with your blogs or not.\n```\nNOTION_API_KEY: \nDEV_TO_API_KEY: \nNOTION_DATABASE_ID: \n```\n\n### Step 4 🤝\n\nMaking Blogs database in notion.\n\n\nFor the next env. Make a new page in Notion and make a new database in that. \n\nAdd these three column there\n```\nTitle\nDescription\nCover Image URL\nTags\nStatus\nID\n```\nHere is a screenshot of the table and the propery names. ⬇️\n![image](https://github.com/ighoshsubho/NotionAutomation/assets/93722719/cc7fe96b-58df-4140-b3f4-b7b158427707)\n\n\nMake sure to name them exactly this. And `DON'T FORGET` to add a `Published` status. But initally it should have status `Not started` or `In progress`. Once you're done writing the blog, change your status to done. It will automatically get changed to status published and keep track of your post updates every 10 mins.\n\nNow it is time to connect the page to the Developers App you just built.\n\nGo to Shares of the page and scroll down until you find **Connections** . Click on **Add connections** and add your developer app. \n\nHere is a screenshot of where you can find the connections. And then you can add your app you made in this website [Notion's Integration Website](https://www.notion.so/my-integrations) ⬇️\n\n![image](https://github.com/ighoshsubho/NotionAutomation/assets/93722719/19355ee3-5bea-4798-abe3-86a938b772b3)\n\n\n### Step 5 🏃\nWhen all is set, deploy your lambda and check using...\n\n```bash\nnpm run deploy\n```\n\nAnd boom!\n\nNow start writing blogs on Notion and it will work magically.  \n\nStar this if you find it useful.\n\n\u003cbr /\u003e\n\n## Want to contribute to the repo to make it better?? 🔥\nYup! Everyone is welcome to cohntribute to this repo and making this better day by day. This could be a small typo fix, design fix to adding some big functionality like adding hashnode and other integrations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fighoshsubho%2FNotionAutomation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fighoshsubho%2FNotionAutomation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fighoshsubho%2FNotionAutomation/lists"}