Skip to content

About

Weekly radar of trending GitHub repos, AI first: a Next.js 16 site over the Notion archive my Claude Code routines write, each repo with a one-line summary and a sharp take.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

📡 GitHub Radar

CI

GitHub Radar's social card: the site mark and its one-line description, a weekly radar of trending GitHub repos, AI first.

A weekly radar of trending GitHub repos, AI first, each with a one-line summary and a sharp take.

Live site Next.js 16 License: MIT

A read-mostly Next.js site over the Notion archive that a set of Claude Code routines writes every week. The site never calls GitHub itself.


🌐 What it shows

Page Source table Shows
/ Trending + Blog + Loot Dashboard: the top five hot repos, the latest blog posts, and, for the signed-in owner only, one summary card per loot ledger
/trending, /trending/[id] Trending Archive Weekly trending repos, AI first, filterable by category, with 新上榜 / 在榜週數 badges; one page per repo
/blog, /blog/[id] Blog Archive AI and agent blog posts grouped 官方 / 個人, each with a summary and a 點評, newest first
/ask none (radar-rag) Ask the radar: questions in Chinese or English, answered from the Trending and Blog archives with citations that link to the detail pages here
/api/latest-week Trending Archive JSON: the latest week's top three repos (repo, link, stars/week, momentum, summary, take), ranked like the dashboard; feeds the owner's GitHub profile README
/loot/[target], /loot/[target]/[id] Loot Ledger (claude / copilot / opencode / codex) Owner only. Config assets worth stealing into each coding agent's setup, grouped by status, with an editable status

The site is in Traditional Chinese. Every per-repo signal it shows, and the rule that produces it, is in docs/signals.md.


🔧 How it works

flowchart LR
    Routines["Claude Code routines<br/>(private repo)<br/>weekly / daily"]
    Notion[("Notion<br/>archive tables")]
    Server["Next.js server<br/>reads cached 600 s"]
    Pages["Public pages<br/>/ · /trending · /blog"]
    Ask["/ask<br/>(browser)"]
    Rag["radar-rag<br/>POST /ask"]
    Gate{"/loot/*<br/>password gate"}
    Owner["Owner"]

    Routines -->|"write rows"| Notion
    Notion -->|"data_sources query"| Server
    Notion -->|"POST /sync (weekly)"| Rag
    Server --> Pages
    Ask -->|"question + Turnstile token"| Rag
    Server --> Gate
    Gate --> Owner
    Owner -->|"set loot Status"| Server
    Server -->|"PATCH page"| Notion
Loading
  • Data is written upstream. The routines that scout GitHub and the AI blogs, enrich each repo and write the Notion rows live in a separate, private repository. This site only reads those tables.
  • One write path. The owner can change a loot row's Status from the UI. It is a password-gated Server Action that patches that one Notion page and busts that ledger's cache, so a reload shows the new value.
  • Server-side only. Every Notion call runs on the server with an internal integration token; the token never reaches the browser.

The agents upstream, how their writes are bounded, and what broke in production are written up in docs/case-study.md.

The same Trending Archive and Blog Archive also feed radar-rag, a Java / Spring AI service that answers questions over them, in Chinese or English, with citations back to the rows it used. The site's /ask page is its front end. The page's browser code calls radar-rag directly, while the site's server still reads only Notion.


🔐 Access

The dashboard, /trending, /blog and /api/latest-week are public. /loot/* sits behind a single-password gate, because the Vercel free tier cannot password-protect a production deployment, so the gate lives in the app:

  • proxy.ts redirects any /loot/* request without a valid session to /login. The loot pages check the session again before reading a ledger, so a request the proxy matcher misses still gets no data.
  • A successful login sets a 30-day, HTTP-only session cookie holding an HMAC-signed expiry. The signing secret never leaves the server.
  • The status-write Server Action checks the session again, because Server Actions POST to their own route and the proxy does not see them.

Signed out, the dashboard renders without the loot summary and the nav has no Loot tab, so anonymous visitors never receive loot data.


🏃 Run it yourself

Note

This is a personal dashboard. It renders tables that a private set of routines fills, so a fresh clone has nothing to show until you point it at Notion tables with the same schema. The columns each page reads are the *_PROPS maps in lib/data.ts; a page whose first row lacks one of them shows an error naming the column rather than rendering blanks.

  1. Create a Notion integration at https://www.notion.so/profile/integrations → New integration → Internal. Give it Read content and Update content (the UI writes loot status back). Copy the secret, which starts with ntn_.
  2. Share every table in lib/config.ts's TABLES into it. Open each one in Notion → ••• → Connections → add the integration. An unshared table returns 404.
  3. Set three env vars. Copy .env.example to .env.local:
    NOTION_TOKEN=ntn_xxx   # the integration secret from step 1
    APP_PASSWORD=...        # the password you type to log in
    AUTH_SECRET=...         # high-entropy key that signs the session cookie
    
    Generate AUTH_SECRET with:
    node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
    All three are required. With AUTH_SECRET unset the gate fails safe: every /loot/* route redirects to /login and no login can succeed. An unset secret must never mean "open". The public pages keep working. A fourth, SESSION_VERSION, is optional: any string, and changing it logs every session out at once (logout only clears the browser's own cookie).
  4. Run it on the Node version in .nvmrc, which CI reads too:
    npm run dev
    Open http://localhost:3000 and log in with APP_PASSWORD.

🚀 Deploy

Import the repository at https://vercel.com/new, set the same three environment variables, and deploy. To lock the public pages down as well, turn on Vercel Deployment Protection.


🩺 Troubleshooting

Symptom Check
A page shows a data error instead of its list Read the message. "Missing expected property" names a column that page reads and its Notion table lacks: add and backfill the column in Notion first, because the reader cannot invent it.
A Notion edit doesn't show up Reads are cached for 600 seconds. On npm run dev, delete the whole .next directory, not just restart, before concluding the change failed.
One tab's data error says the table could not be found That table is not shared with the integration (step 2).
/loot keeps bouncing to /login AUTH_SECRET or APP_PASSWORD is unset in this environment. The server log says which; the login page deliberately does not.

🛠️ Develop

npm run lint && npm run build && npm test

CI runs exactly these three on every push and pull request (a pull request that touches only .md files or docs/ skips them), and needs no environment variables: every route renders on demand, so the build never reads Notion. CONTRIBUTING.md has the traps worth knowing first; AGENTS.md and NEXT16-BREAKING-CHANGES.md have the rest.


⚖️ License

MIT.

Unofficial personal project. Not affiliated with, endorsed by, or sponsored by GitHub, Notion, Vercel or Anthropic.

About

Weekly radar of trending GitHub repos, AI first: a Next.js 16 site over the Notion archive my Claude Code routines write, each repo with a one-line summary and a sharp take.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages