* Extract repository hosts into a provider registry GitHub and GitLab keep their behavior, but now sit behind a RepositoryProvider interface with a shared RepositoryRef. parseRepository understands provider hosts and leaves an unknown host for detection. This is groundwork for Gitea/Forgejo, self-hosted GitLab and GitHub Enterprise, Bitbucket and release feeds. * Support Gitea, Forgejo, Bitbucket and release feeds Adds host-aware adapters and detection, per-host tokens kept in the keychain, and a narrow Rust proxy for hosts that don't send CORS headers. The add-app flow can detect a host or take the player's choice, and source links and READMEs follow the host. Apps from hosts the account doesn't know stay on this computer. * Cover self-hosted GitLab and GitHub Enterprise hosts Adds provider tests for host-aware API bases, READMEs and releases, and documents the supported hosts, tokens, checksum limits and release-feed format. * Keep self-hosted apps device-only and tidy provider wording The account stores apps from github.com and gitlab.com; a self-hosted GitHub or GitLab has a host the account doesn't store yet, so it stays on this computer. Also updates the provider comments and the API package README. * Tidy the provider refactor before review Moves the API error import to the top, keeps catalog repository matching host-aware, and updates the remaining provider wording. * Fix the release host named for a custom app The Releases tab takes the host from the player's custom app rather than assuming GitHub, and the remaining provider comments name the host instead of GitHub. * Handle a bodiless provider answer The Fetch Response constructor refuses a body on 204 and 205, which a repository API can answer. * Remove unused provider imports * Remove unused provider types * Connect the provider proxy only to the addresses it checked The proxy looked a host up to refuse private addresses, then let the request look it up again, so a host could answer the check with a public address and the request with a private one. The request now connects to the addresses that were checked. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015HpW15bCSsabfgUpsRDVfe * Expect the GitLab token in the per-host keychain entry The settings test, added on main after the provider work branched, looked for the token under the old gitlabToken entry. Tokens are now kept together, by host, under repositoryTokens. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015HpW15bCSsabfgUpsRDVfe --------- Co-authored-by: DieMitchell <mitchell030504@gmail.com> Co-authored-by: Claude <noreply@anthropic.com>
1.2 KiB
@quiverlauncher/api
A typed client for the quiverlauncher.com catalog API
(https://api.quiverlauncher.com/api/v1), and the types of what it returns. Quiver Launcher uses it, and
@quiverlauncher/ui's components take its Entry.
import { createClient } from "@quiverlauncher/api";
const catalog = createClient();
const { items } = await catalog.apps({ search: "zelda" });
const app = await catalog.app(items[0].slug);
When api.quiverlauncher.com can't be reached at all, the default client asks the same API on the Convex
deployment's own host (FALLBACK_API) from then on, as Quiver Launcher 3 does; onFallback hears about it.
The types follow the site's public responses (also described at /api/v1/openapi.json); fields the client
doesn't know are ignored. It also has small helpers the launcher uses: inferPlatform for release file names,
parseRepository for repository addresses, and listSlug/listUrl for shared lists. The repository providers in
src/providers/ (GitHub, GitLab, Gitea/Forgejo, Bitbucket and release feeds) sit behind createProviders, with
detectProvider naming an unknown host.
All rights reserved. See the repository's LICENSE.