OpenViking
volcengine
Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
PROJECT TOPICS
PROJECT README
A searchable, client-side index of public GitHub repositories tagged with dsh-plugin, ranked by stars.
English · 简体中文 · GitHub Topic
⚠️ Disclaimer — this is not an official registry, store, or marketplace. Any repository maintainer can add the
dsh-plugintopic, so inclusion here is not an endorsement and does not guarantee that a repository is safe, maintained, or installable. Data boundary: every public repository carrying the exactdsh-plugintopic that the GitHub REST Search API could return during a successful, fully-validated sync. Private repositories and repositories without the exact topic are out of scope. GitHub's search index may lag a few minutes behind reality.
dist/ is a plain SPA. No server, no API calls from the browser, no tracking.meta.count_deficit instead of being hidden.plugins.json fresh; Vercel re-deploys on every data commit.prefers-color-scheme and prefers-reduced-motion.
The hero view. A sticky header carries site branding and a 中文 / English language toggle. The hero section shows the eyebrow "Community-ranked · Stars Top 10", a bilingual tagline, a direct link to the GitHub topic, and the last-synced timestamp. Below it, the Top 10 most-starred dsh-plugin repositories are rendered as rich cards (owner avatar & handle, description, language, star count, forks, open issues, license, and topic tags). Everything below the fold — the Explore view, category filters, full-text search, and pagination — is loaded from the same static plugins.json and runs entirely in the browser. The browser never calls the GitHub API.
GitHub REST Search API
│ (recursive date sharding + integrity checks)
▼
public/plugins.json ← atomic, validated static snapshot
│
▼
React + TypeScript (Vite) — search & pagination entirely in the browser
scripts/sync-github.ts fetches every matching repository via the official GET /search/repositories endpoint (q=topic:dsh-plugin, sorted by stars).public/plugins.json.plugins.json and performs all search / pagination locally. The browser never calls the GitHub API.GitHub Search returns at most 100 results per page and only the first 1,000 results of any query. Looping through pages cannot go past that ceiling. To collect all repositories the sync script recursively shards the query by repository creation date:
topic:dsh-plugin created:2008-01-01..<today UTC>
Any shard whose total_count exceeds 1,000 is split at the midpoint of its date range into two adjacent, non-overlapping, gap-free closed ranges. When a range is already a single day but still exceeds 1,000 results (which happens in practice — one day can hold thousands of repos), the sync falls back to a second, orthogonal dimension and bisects by star count (stars:min..max). A single star value that still needs more than one page would make sort=stars degenerate (every repository ties), so the sync falls back to a third orthogonal dimension and bisects by creation timestamp within the day (down to the second), reducing each shard to a single page and eliminating offset-pagination drift. A single second that still exceeds the page size aborts the sync. When a shard cannot be paginated cleanly because pages overlap, the sync re-races it on a narrower dimension instead of failing outright. Truncated data is never published. All shards are merged and de-duplicated by GitHub repository id, then re-sorted globally.
A sync is only "successful" when every check passes:
incomplete_results === false.total_count <= 1000 fetches exactly Math.ceil(total_count / 100) pages and never returns overlapping pages. Its de-duplicated count must then land within GitHub's count-index tolerance — max(1, min(3, ceil(total_count / 100))) — of its first-page total_count.id, every item carries the exact dsh-plugin topic, counts are non-negative integers, and items are sorted by stars desc then full_name asc.meta.total_count equals the number of repositories actually collected and validated during the run (a "collection-time snapshot"). The root total_count is still measured before and after collection and logged, but is not used as a publish gate: the live topic grows continuously, so a strict before/after equality requirement would never be satisfiable.meta.count_deficit (repositories GitHub's counting index reported but its retrieval index never served). It is normally a handful of repositories across the whole topic; a shard that misses more than the tolerance still fails the sync.public/plugins.json. Any failure cleans up the temp file and leaves the last good snapshot intact.GitHub Search serves total_count from a counting index and result pages from a retrieval index. They are only eventually consistent, and for a single document they can disagree in a stable way — typically a repository that was deleted, renamed, made private or flagged after being indexed: still counted, never retrievable. Measured against the live API: topic:dsh-plugin created:2026-09-02T15:14:49Z..2026-09-02T15:14:49Z reports total_count=1 with zero items, and the same document is missing from the whole-day, whole-topic, alternate-sort and GraphQL variants alike — no amount of retrying or re-sharding (date → stars → creation time, down to one second) makes it retrievable. A strict unique === total_count gate is therefore unsatisfiable, and this is exactly what made every scheduled sync fail from 2026-09-30 until the tolerance was introduced. Overlapping pages (the fingerprint of genuine offset-pagination drift) are still never tolerated: they are retried and, failing that, re-sharded.
npm ci
npm run dev # start the Vite dev server
npm run test # run the offline test suite (node:test + tsx)
npm run typecheck # tsc --noEmit
npm run build # produce dist/
npm run preview # preview the production build
The sync script reads the token exclusively from process.env.GITHUB_TOKEN. Create a local, git-ignored .env (see .env.example) or export it inline:
GITHUB_TOKEN=ghp_xxx npm run sync
The token is used only by the sync script. It never appears in frontend code, public/plugins.json, dist/, logs, or error messages.
Without a token (or before the first sync), the repository ships a valid placeholder public/plugins.json with items: [], total_count: 0, and complete: false so local builds still work.
public/plugins.json has meta (schema version, topic, topic URL, query, fetched_at, total_count, count_deficit, complete) and items, where each item maps a GitHub repository to: id, name, full_name, owner, owner_avatar_url, url, homepage, description, stars, forks, open_issues, language, license (SPDX id or null), topics, fork, archived, and the three timestamps. See src/types.ts.
| File | Purpose |
|---|---|
src/App.tsx |
Page shell, async state machine (idle / loading / success / error), search input, category navigation, URL state (?q, ?cat, ?view), and the data-source region. |
src/i18n.ts |
English / 简体中文 translations, language detection, and persistence. |
src/categories.ts |
A curated set of representative categories mapped from repository topics (e.g. web-ui → Web UI, mcp → MCP). |
src/search.ts |
Pure, NFKC-normalized, case-insensitive, AND-semantics search. |
src/main.tsx |
React root. |
src/styles.css |
Design tokens, responsive layout, prefers-color-scheme, prefers-reduced-motion, and a sticky header / search / footer layout. |
The header, search bar (with category filters), and footer stay pinned while the page scrolls. The language toggle switches between English and Chinese and persists the choice. Categories are derived from each repository's topics (excluding dsh-plugin); plugins are grouped by category and sorted by stars descending within each category.
The snapshot is loaded via Vite's base URL so the app works at a domain root or any sub-path:
const dataUrl = `${import.meta.env.BASE_URL}plugins.json`;
Do not hard-code a hosting sub-path. For a sub-path deployment set Vite's base at build time (no source changes needed):
VITE_BASE=/my-app/ npm run build
dist/ is a plain static site that can be served by any static host (Vercel, Netlify, Cloudflare Pages, S3 / CDN, nginx, …). After choosing a host, configure:
npm run builddistThis project does not use GitHub Pages, and no specific hosting provider is preconfigured. Provider-specific deployment config is added only when a target is chosen (see the Vercel guide below).
This project targets Vercel as its host. The site is a fully static build (no serverless functions), configured by vercel.json (SPA rewrites, caching headers, and the npm run build / dist build settings).
The topic sync (scripts/sync-github.ts) recursively shards the GitHub Search API with a 2.1 s throttle and integrity checks, issuing a large number of requests that can take minutes. Vercel serverless functions are too short-lived for this, and Vercel's build filesystem is read-only, so the sync cannot run on Vercel. Instead:
15 */6 * * * cron (every 6 hours) and on manual dispatch, using github.token (no personal token stored).public/plugins.json back to main; the connected Vercel project automatically redeploys from that push.vercel.json (npm run build, output dist). Vercel rebuilds on every push to main, including the data commit from the sync workflow.public/plugins.json.That is all. On the next scheduled (or manually dispatched) sync, the workflow will refresh the data, commit it, and Vercel will redeploy automatically. No Vercel environment variable or Deploy Hook is required.
GITHUB_TOKEN used by the sync is GitHub's built-in per-run token; no long-lived token needs to be stored. It only needs contents: read for the API and contents: write for the data commit (granted automatically on scheduled / manual runs)..github/workflows/ci.yml runs offline tests, type-check, and build on every pull request and push. .github/workflows/sync.yml runs the full data sync on a 6-hour schedule and on manual dispatch, then rebuilds the data commit on the latest main and pushes it with contents: write (retrying if the push is rejected, and bounded by a 40-minute timeout). A failing sync opens one tracking issue, which closes automatically on the next successful run. A successful CI build uploads the standard dist/ directory as a dsh-plugin-hub-dist artifact.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: search。