{"id":51164906,"url":"https://github.com/embeddings-benchmark/leaderboard-frontend","last_synced_at":"2026-06-26T18:01:44.539Z","repository":{"id":361687129,"uuid":"1255291650","full_name":"embeddings-benchmark/leaderboard-frontend","owner":"embeddings-benchmark","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-25T13:03:51.000Z","size":21155,"stargazers_count":2,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-25T15:16:44.844Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://embeddings-benchmark.github.io/leaderboard-frontend/","language":"Svelte","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/embeddings-benchmark.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-31T16:43:40.000Z","updated_at":"2026-06-25T13:04:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/embeddings-benchmark/leaderboard-frontend","commit_stats":null,"previous_names":["embeddings-benchmark/leaderboardv2","embeddings-benchmark/leaderboardv3","embeddings-benchmark/leaderboard-frontend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/embeddings-benchmark/leaderboard-frontend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embeddings-benchmark%2Fleaderboard-frontend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embeddings-benchmark%2Fleaderboard-frontend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embeddings-benchmark%2Fleaderboard-frontend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embeddings-benchmark%2Fleaderboard-frontend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/embeddings-benchmark","download_url":"https://codeload.github.com/embeddings-benchmark/leaderboard-frontend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embeddings-benchmark%2Fleaderboard-frontend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34827535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2026-06-26T18:01:40.948Z","updated_at":"2026-06-26T18:01:44.533Z","avatar_url":"https://github.com/embeddings-benchmark.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MTEB Leaderboard\n\nSvelteKit + TypeScript + Svelte 5 (runes) frontend for the\n[mteb](https://github.com/embeddings-benchmark/mteb) leaderboard. Talks to the\nmteb FastAPI service (branch `api`, source under `mteb/api/`) at runtime;\ndeployed as a static bundle to a Hugging Face Space and to GitHub Pages.\n\n## Live deployments\n\n- **Hugging Face Space (canonical):** https://mteb-leaderboardv2.hf.space\n- **GitHub Pages mirror:** https://embeddings-benchmark.github.io/leaderboardv2\n\n## Develop\n\n```sh\nmake dev              # vite dev on http://localhost:5173\nmake check            # svelte-kit sync \u0026\u0026 svelte-check\nmake lint             # prettier --check . \u0026\u0026 eslint . \u0026\u0026 stylelint\nmake format           # prettier --write .\nmake test             # build + Playwright e2e\nmake test-ui          # interactive Playwright UI\nmake build            # vite build for local serving\nmake deploy-build     # BASE_PATH=/leaderboardv2 build (matches CI)\nmake preview          # serve build/ on http://localhost:4173\n```\n\n### Environment\n\n| Var                  | When set                                                                                                                                                   |\n| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `PUBLIC_API_URL`     | **Required.** Points at the mteb FastAPI base (e.g. `http://localhost:8000`). Inlined at build time. Loaders throw a clear error when unset.               |\n| `PUBLIC_SITE_URL`    | Canonical origin baked into prerendered OG / canonical-link tags. Without it, SvelteKit's prerender placeholder ends up in the HTML.                       |\n| `BASE_PATH`          | Path prefix for the build. Empty for the Space, `/leaderboardv2` for GitHub Pages.                                                                         |\n| `BUILD_NO_PRERENDER` | Opt-out for local fast builds. `BUILD_NO_PRERENDER=1 npm run build` skips the prerender phase entirely. CI never sets this — production always prerenders. |\n\n```sh\n# Normal dev — talk to a local mteb FastAPI\necho 'PUBLIC_API_URL=http://localhost:8000' \u003e .env.local\n\n# Fast local build, no backend hit during prerender\nBUILD_NO_PRERENDER=1 npm run build\n```\n\nThere is no offline mock mode — `PUBLIC_API_URL` is mandatory and every\nloader fails loudly when the backend is unreachable.\n\n## Routes\n\n| Route                                     | Purpose                                                                   |\n| ----------------------------------------- | ------------------------------------------------------------------------- |\n| `/`                                       | Home — category menu of benchmark cards                                   |\n| `/benchmarks`                             | Full benchmark catalog, sidebar filters (Modality / Task type / Domain)   |\n| `/benchmark/[name]`                       | Per-benchmark detail: hero + 6 tabs (Summary / Perf×Size / Perf×Time / …) |\n| `/models` + `/models/[...name=modelName]` | Model index + detail. The matcher enforces the HF `org/name` shape.       |\n| `/tasks` + `/tasks/[name]`                | Task index + detail                                                       |\n| `/compare`                                | Side-by-side comparison of up to 4 models                                 |\n\nDetail routes prerender the hero card eagerly and fetch the heavy scores\ntable client-side after hydration, so the build stays fast and HTML files\nstay small. A miss on any detail slug throws `error(404, ...)`; the root\n`+error.svelte` renders the message.\n\n## Architecture\n\nSee [CLAUDE.md](./CLAUDE.md) for the data flow, store conventions, theme\nsystem, sticky-shelf / floating-action patterns, and shared component\ncatalogue (`SearchInput`, `SortDirIcon`, `ScrollToTopButton`,\n`ShareUrlButton`, `FilterSidebar`, `SummaryTable`, etc.).\n\n## Deploy\n\n- **Hugging Face Space** — `Dockerfile` at the repo root runs the SvelteKit\n  build and serves the static bundle via `nginx-unprivileged` on port 7860.\n  `PUBLIC_API_URL` / `PUBLIC_SITE_URL` are set as `Dockerfile` `ENV`.\n- **GitHub Pages** — `.github/workflows/deploy.yml` runs `make deploy-build`\n  (sets `BASE_PATH=/leaderboardv2`) and uploads `build/`. PR builds run the\n  same prerender (no `BUILD_NO_PRERENDER`) so the live data path is exercised.\n\n## License\n\nSee [LICENSE](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembeddings-benchmark%2Fleaderboard-frontend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fembeddings-benchmark%2Fleaderboard-frontend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembeddings-benchmark%2Fleaderboard-frontend/lists"}