Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
fix: fetch gh stars
dev_wandry680994c1a52e
diff --git a/config/site.ts b/config/site.tsindex e388cfeb..89d7fe2e 100644--- a/config/site.ts+++ b/config/site.ts@@ -7,7 +7,7 @@ export const PEACH = "#FFB38E";export const LAVENDER = "#D4B3FF";export const MINT = "#A1EEBD";-export const GITHUB_URL = "https://github.com/kapishdima/remocn";+export const GITHUB_URL = "https://github.com/Remocn/remocn";/** Canonical example install command shown on the landing page. */export const INSTALL_COMMAND = "npx shadcn@latest add remocn/soft-blur-in";diff --git a/content/docs/getting-started/agent-skill.mdx b/content/docs/getting-started/agent-skill.mdxindex afc79534..4e682614 100644--- a/content/docs/getting-started/agent-skill.mdx+++ b/content/docs/getting-started/agent-skill.mdx@@ -12,11 +12,11 @@ your additions to match the library — without you pasting context every time.## Install with skills.sh-The skill lives in the [`skills/`](https://github.com/kapishdima/remocn/tree/main/skills) folder of+The skill lives in the [`skills/`](https://github.com/Remocn/remocn/tree/main/skills) folder ofthe remocn repo. Install it with the [`skills`](https://skills.sh) CLI:```bash-npx skills add kapishdima/remocn+npx skills add Remocn/remocn```This finds the `remocn` skill and installs it into your agent (for Claude Code:@@ -26,16 +26,16 @@ This finds the `remocn` skill and installs it into your agent (for Claude Code:```bash# Install straight to the remocn skill, no prompts-npx skills add kapishdima/remocn --skill remocn --yes+npx skills add Remocn/remocn --skill remocn --yes# Install globally (available in every project)-npx skills add kapishdima/remocn --skill remocn -g+npx skills add Remocn/remocn --skill remocn -g# Target a specific agent-npx skills add kapishdima/remocn -a claude-code+npx skills add Remocn/remocn -a claude-code# Just list what's available in the repo-npx skills add kapishdima/remocn --list+npx skills add Remocn/remocn --list```### Use without installing@@ -43,7 +43,7 @@ npx skills add kapishdima/remocn --listTo try it for a single session without writing files:```bash-npx skills use kapishdima/remocn@remocn | claude+npx skills use Remocn/remocn@remocn | claude```## What's insidediff --git a/lib/github-stargazers.ts b/lib/github-stargazers.tsindex 07697fe3..8e21350d 100644--- a/lib/github-stargazers.ts+++ b/lib/github-stargazers.ts@@ -69,16 +69,51 @@ const API_BASE = "https://api.github.com";// the route handler + tests keep their existing `@/lib/github-stargazers` import.export { parseRepoInput } from "@/lib/parse-repo";-function buildHeaders(accept: string): HeadersInit {+function buildHeaders(accept: string, withToken = true): HeadersInit {const headers: Record<string, string> = {Accept: accept,"X-GitHub-Api-Version": "2022-11-28",};const token = process.env.GITHUB_TOKEN;- if (token) headers.Authorization = `Bearer ${token}`;+ if (withToken && token) headers.Authorization = `Bearer ${token}`;return headers;}+/**+ * Fetch a GitHub endpoint, transparently retrying WITHOUT the token when an+ * authenticated request is rejected on data that is publicly readable.+ *+ * Stargazers are always public, yet some tokens can't list them: a fine-grained+ * PAT scoped to another owner returns 403, and a classic PAT tied to an account+ * with restricted user-list visibility returns 404 on `/stargazers` (and+ * `/subscribers`). Unauthenticated requests succeed in every one of these cases,+ * so on 401/403/404 we re-issue the request without `Authorization`. The token+ * still raises the rate limit on every request GitHub does accept (e.g. the repo+ * endpoint that backs the landing-page star count).+ */+async function githubFetch(+ url: string,+ accept: string,+ signal?: AbortSignal,+): Promise<Response> {+ const res = await fetch(url, {+ headers: buildHeaders(accept),+ signal,+ next: { revalidate: 3600 },+ });+ if (+ process.env.GITHUB_TOKEN &&+ (res.status === 401 || res.status === 403 || res.status === 404)+ ) {+ return fetch(url, {+ headers: buildHeaders(accept, false),+ signal,+ next: { revalidate: 3600 },+ });+ }+ return res;+}+/** Map a non-OK GitHub response to a typed error (rate limit vs. not found). */function errorForResponse(res: Response, context: string): StargazersError {if (res.status === 404) {@@ -193,11 +228,7 @@ async function fetchStargazerPage(const url = `${API_BASE}/repos/${owner}/${repo}/stargazers?per_page=${PER_PAGE}&page=${page}`;let res: Response;try {- res = await fetch(url, {- headers: buildHeaders("application/vnd.github.star+json"),- signal,- next: { revalidate: 3600 },- });+ res = await githubFetch(url, "application/vnd.github.star+json", signal);} catch (err) {if (err instanceof StargazersError) throw err;throw new StargazersError(@@ -236,11 +267,11 @@ export async function fetchStargazers({// 1. Repo endpoint → existence check (404) + authoritative star total.let repoRes: Response;try {- repoRes = await fetch(`${API_BASE}/repos/${owner}/${repo}`, {- headers: buildHeaders("application/vnd.github+json"),+ repoRes = await githubFetch(+ `${API_BASE}/repos/${owner}/${repo}`,+ "application/vnd.github+json",signal,- next: { revalidate: 3600 },- });+ );} catch (err) {if (err instanceof StargazersError) throw err;throw new StargazersError(diff --git a/lib/github.ts b/lib/github.tsindex ba53733c..05fb7371 100644--- a/lib/github.ts+++ b/lib/github.ts@@ -1,4 +1,4 @@-const GITHUB_REPO = "kapishdima/remocn";+const GITHUB_REPO = "Remocn/remocn";/*** Fetches the repository star count from the GitHub REST API.diff --git a/registry/remocn/github-stars/config.ts b/registry/remocn/github-stars/config.tsindex 6864f18d..5f1c88f5 100644--- a/registry/remocn/github-stars/config.ts+++ b/registry/remocn/github-stars/config.ts@@ -11,7 +11,7 @@ export const githubStarsConfig: ComponentConfig = {controls: {repo: {type: "text",- default: "kapishdima/remocn",+ default: "Remocn/remocn",label: "Repository",},totalStars: {