[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-81552":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":15,"starSnapshotCount":15,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},81552,"github-stars-notion-sync","brianlovin\u002Fgithub-stars-notion-sync","brianlovin","Sync your GitHub starred repos into Notion","",null,"TypeScript",29,1,25,0,3,4,9,49.3,"MIT License",false,"main",true,[],"2026-06-12 04:01:34","\u003Cimg width=\"3370\" height=\"2476\" alt=\"Screen Shot 2026-05-22 at 16 11 18@2x\" src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F9fbb3721-06d6-4662-84e4-9167067f8d33\" \u002F>\n\n\n# GitHub Stars → Notion\n\nSync your GitHub starred repos into a Notion database. Every starred repo becomes a Notion page with rich metadata (description, stars, topics, languages, license, owner avatar) and the README rendered into the page body — fully searchable inside Notion. A daily delta sync picks up newly-starred repos automatically.\n\nThe worker also exposes two tools so a Notion AI agent can star and unstar repos on your behalf — useful for prompts like *\"unstar every archived repo\"* or *\"unstar all repos from owner X\"*.\n\nRuns on [Notion Workers](https:\u002F\u002Fwww.notion.so\u002Fdevelopers\u002Fworkers) — no server, no cron.\n\n## Setup\n\nInstall the Notion CLI:\n\n```bash\ncurl -fsSL https:\u002F\u002Fntn.dev | bash\n```\n\n```bash\nntn login\n```\n\nClone and run setup:\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fbrianlovin\u002Fgithub-stars-notion-sync.git\n```\n\n```bash\ncd github-stars-notion-sync && npm install && npm run setup\n```\n\nSetup asks for a Notion [Personal Access Token](https:\u002F\u002Fwww.notion.so\u002Fdevelopers\u002Ftokens), walks you through registering a GitHub OAuth app, creates the `GitHub Stars` database (with views for All Repos \u002F Active \u002F Archived \u002F By Owner \u002F By Language), deploys the worker, then runs an initial backfill of every starred repo.\n\nFor the GitHub OAuth app at [github.com\u002Fsettings\u002Fapplications\u002Fnew](https:\u002F\u002Fgithub.com\u002Fsettings\u002Fapplications\u002Fnew), the only field that matters is the **Authorization callback URL**: `https:\u002F\u002Fwww.notion.so\u002Fworkers\u002Foauth\u002Fcallback`.\n\n## Worker tools\n\nAfter deploy, two tools are available to any [Notion AI agent](https:\u002F\u002Fwww.notion.so\u002Fhelp\u002Fnotion-ai) connected to the worker:\n\n- **Star a GitHub repository** — adds a star\n- **Unstar a GitHub repository** — removes a star\n\nPair the agent with the `GitHub Stars` database and try prompts like:\n\n- *\"Unstar every repo where Archived is true.\"*\n- *\"Unstar all repos from owner {owner}.\"*\n- *\"Star {owner\u002Frepo}.\"*\n\nThe agent finds candidates in Notion and calls the tools. Each action goes through GitHub's API using the same OAuth grant the sync uses.\n\n## Maintenance\n\n```bash\nnpm run backfill                              # idempotent full re-sync\nnpm run dedup                                 # archive duplicate rows (recovery only)\nntn workers sync trigger githubStarsDelta     # force a delta sync now\nntn workers sync status                       # health check\nntn workers runs list                         # recent runs + audit detail\n```\n\nChange `schedule: \"1d\"` in `src\u002Findex.ts` (valid `5m` … `7d`) and run `ntn workers deploy` to adjust the cadence.\n\n## Development\n\n```bash\nnpm run check    # type-check (no emit)\nnpm test         # unit tests (~200ms, no network)\n```\n\n## License\n\nMIT — see [LICENSE](.\u002FLICENSE).\n","该项目用于将您在GitHub上标星的仓库同步到Notion数据库中。其核心功能是自动抓取用户标星的所有GitHub仓库，并将其转化为包含丰富元数据（如描述、星星数、主题、语言、许可证和所有者头像）的Notion页面，同时将README内容渲染至页面主体部分，使得这些信息能够在Notion内部被完全搜索。此外，通过集成Notion AI代理，用户可以执行批量操作如取消对标记为归档状态或特定所有者的仓库的星标。此工具基于TypeScript开发，运行于无服务器环境下的Notion Workers平台上，无需额外配置定时任务。适用于需要整理个人技术资源库、跟踪关注项目动态或进行相关研究分析的开发者和技术爱好者。",2,"2026-06-11 04:05:28","CREATED_QUERY"]