{"id":25132204,"url":"https://github.com/mh4gf/notion-rss-hub","last_synced_at":"2025-10-25T03:32:24.988Z","repository":{"id":39572706,"uuid":"402446287","full_name":"MH4GF/notion-rss-hub","owner":"MH4GF","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-01T00:59:01.000Z","size":395,"stargazers_count":8,"open_issues_count":11,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-18T21:11:21.027Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/MH4GF.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}},"created_at":"2021-09-02T14:15:04.000Z","updated_at":"2024-11-02T12:19:00.000Z","dependencies_parsed_at":"2023-02-17T00:16:03.997Z","dependency_job_id":null,"html_url":"https://github.com/MH4GF/notion-rss-hub","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MH4GF%2Fnotion-rss-hub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MH4GF%2Fnotion-rss-hub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MH4GF%2Fnotion-rss-hub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MH4GF%2Fnotion-rss-hub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MH4GF","download_url":"https://codeload.github.com/MH4GF/notion-rss-hub/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250513380,"owners_count":21443200,"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":[],"created_at":"2025-02-08T14:17:16.447Z","updated_at":"2025-10-25T03:32:24.891Z","avatar_url":"https://github.com/MH4GF.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# notion-rss-hub\n\nRSS フィードを Notion に同期するマン\n\n## Description\n\n- Qiita, Zenn, note などの RSS の URL を登録することで、Notion の Database に記事のリンクをまとめることができます。\n- RSS フィードを取得できるサイトであれば好きな場所に記事を投稿できるようになり、Notion の Database を利用しているため自由に View を変えたり Filter や Sort を利用できます。\n- [super.so](https://super.so/)や[Wraptas](https://wraptas.com/)で自身のポートフォリオサイトとして公開するユースケースを想定しています。\n- リポジトリを Fork してご自由にお使いください。\n\n## Demo\n\n[https://mh4gf.dev/](https://mh4gf.dev/)\n\n## Usage\n\n同期は GitHub Actions で行います。発火方法は Schedule もしくは Workflow Dispatch を用意しています。\n\n1. RSS フィードの情報を Notion から取得\n2. RSS フィードの URL にそれぞれアクセスし、記事データを取得\n3. 同期用 Database に対して、記事 URL をユニークキーとし FindOrCreateOrUpdate\n\n## Installation\n\n1. リポジトリを Fork\n2. Notion 上で RSS フィードの設定用 Database と、記事の同期用 Database をテンプレートから複製\n3. Notion API の Integrations を Internal integrations で作成し、token を取得\n4. 環境変数を設定\n5. その他自由にソースコードを修正してください\n\n### 1. リポジトリを Fork\n\n[こちら](https://docs.github.com/ja/github/getting-started-with-github/quickstart/fork-a-repo)を参考に、自身の管理するアカウントにリポジトリをフォークしてください。\n\n### 2. Notion 上で RSS フィードを管理する Database と、記事を同期するための Database をテンプレートから複製\n\nNotion 上で二つの Database を用意します。\n\n- RSS フィード設定用 Database\n  - RSS フィードの情報を管理します。設定を Notion 上で行うことで、デプロイレスで設定を更新することができます。\n  - テンプレートを用意しているため、自身の Notion workspace に複製し利用してください。\n  - https://miyagi-cnw.notion.site/0a3613c46b404c1bbd30067b69b98e94?v=b84d7653fdef4bda9edea1c8ab01566b\n- 記事の同期用 Database\n  - 記事ごとにページが作成されます。Filter や Sort, View を自由に設定することができます。\n  - テンプレートを用意しているため、自身の Notion workspace に複製し利用してください。\n  - https://miyagi-cnw.notion.site/4d3cc536be544ce49e7ea4e71dacf521?v=a85ee872bd8d4c6dbc2c7e3da5f38a9c\n\n### 3. Notion API の Integrations を Internal integrations で作成し、token を取得\n\n[Getting Started](https://developers.notion.com/docs/getting-started) を参考にしながらアクセストークンを取得してください。\n\n### 4. 環境変数を設定\n\n[こちら](https://docs.github.com/ja/actions/reference/encrypted-secrets)を参考にフォークした GitHub のリポジトリにシークレットを登録してください。\n\n以下の内容を登録してください。\n\n```\nNOTION_KEY=\u003c3で取得したtoken\u003e\nFEED_SOURSES_NOTION_DATABASE_ID=\u003c2で作成したRSSフィード設定用DatabaseのID\u003e\nARTICLES_NOTION_DATABASE_ID=\u003c2で作成した記事の同期用DatabaseのID\u003e\n```\n\ndatabase_id の取得方法は[こちら](https://developers.notion.com/docs/working-with-databases)を参考にしてください。\n\n### 5. その他自由にソースコードを修正してください\n\nDatabase の Properties を変えたり、作成する Page の記載内容を変えたい場合は直接コードを修正してください。  \n`src/index.ts` がアクセスポイントとなっています。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmh4gf%2Fnotion-rss-hub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmh4gf%2Fnotion-rss-hub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmh4gf%2Fnotion-rss-hub/lists"}