diff --git a/package.json b/package.json index 1ab6f70..ad15af8 100644 --- a/package.json +++ b/package.json @@ -4,11 +4,12 @@ "private": true, "scripts": { "dev": "next dev", - "build": "next build --webpack", + "build": "npm test && next build --webpack", "start": "next start", "lint": "eslint", "preview": "opennextjs-cloudflare build && opennextjs-cloudflare preview", - "deploy": "opennextjs-cloudflare build && opennextjs-cloudflare deploy" + "deploy": "opennextjs-cloudflare build && opennextjs-cloudflare deploy", + "test": "node --test tests/*.test.mjs" }, "dependencies": { "@opennextjs/cloudflare": "^1.17.1", diff --git a/public/llms.txt b/public/llms.txt index d77a0f0..f2ccef4 100644 --- a/public/llms.txt +++ b/public/llms.txt @@ -1,6 +1,6 @@ # GitShow — Beautiful Developer Portfolio & Repository Showroom from Any GitHub Profile or Repo -> GitShow transforms any public GitHub profile into a stunning, auto-generated developer portfolio, and any public repository into an open source showroom. Replace github.com with gitshow.dev in any profile or repo URL — no signup, no config, no deploy. +> GitShow transforms any public GitHub profile into a auto-generated developer portfolio, and any public repository into an open source showroom. Replace github.com with gitshow.dev in any profile or repo URL — no signup, no config, no deploy. GitShow pulls data from the GitHub API and npm registry to show what GitHub doesn't: npm download stats, smart repo categorization, tech stack visualization, focus areas, project timelines, open source contribution history, and per-repo showrooms with team, languages, commit activity, community health, and latest releases. @@ -10,7 +10,7 @@ Replace `github.com` with `gitshow.dev` in any GitHub URL: - github.com/username → gitshow.dev/username (developer portfolio) - github.com/owner/repo → gitshow.dev/owner/repo (repository showroom) - Works for any public GitHub user, organization, or repository -- Data refreshes every hour via ISR caching +- Profiles and repository pages use a 24-hour revalidation interval. Cached data may remain visible while a refresh runs. ## Key Pages @@ -32,11 +32,11 @@ Replace `github.com` with `gitshow.dev` in any GitHub URL: - **Social Preview API (Profiles)** https://gitshow.dev/api/og/{username} - Dynamic 1200×630 OG image for profile sharing on Twitter and LinkedIn. + Pregenerated 1200×630 image for profile sharing. Refreshed daily; a default image is returned until a profile image is generated. - **Social Preview API (Repos)** https://gitshow.dev/api/og/{owner}/{repo} - Dynamic 1200×630 OG image for repository sharing with stats, contributors, and languages. + Pregenerated 1200×630 repository image. Refreshed daily; a default image is returned until a repository image is generated. ## Featured Profiles @@ -63,7 +63,7 @@ Replace `github.com` with `gitshow.dev` in any GitHub URL: - Tech stack language breakdown - Focus areas topic cloud - Project creation timeline -- Dynamic OG social cards for sharing +- Daily-refreshed OG social cards for sharing - README badge card for embedding - One-click share to X and LinkedIn @@ -86,7 +86,7 @@ Replace `github.com` with `gitshow.dev` in any GitHub URL: - Uses GitHub GraphQL API for contributions - Uses npm registry API for download statistics - Schema.org structured data: WebSite, SoftwareApplication, FAQPage, ProfilePage, SoftwareSourceCode, BreadcrumbList -- Deployed on Vercel +- Hosted on Cloudflare Workers - Open source under MIT license ## Source Code diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..b011270 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,5 @@ +User-Agent: * +Allow: / +Disallow: /api/ + +Sitemap: https://gitshow.dev/sitemap.xml diff --git a/public/sitemap.xml b/public/sitemap.xml new file mode 100644 index 0000000..7e1acf7 --- /dev/null +++ b/public/sitemap.xml @@ -0,0 +1,183 @@ + + + +https://gitshow.dev +weekly +1 + + +https://gitshow.dev/ofershap +daily +0.8 + + +https://gitshow.dev/torvalds +daily +0.8 + + +https://gitshow.dev/sindresorhus +daily +0.8 + + +https://gitshow.dev/tj +daily +0.8 + + +https://gitshow.dev/gaearon +daily +0.8 + + +https://gitshow.dev/yyx990803 +daily +0.8 + + +https://gitshow.dev/addyosmani +daily +0.8 + + +https://gitshow.dev/kentcdodds +daily +0.8 + + +https://gitshow.dev/thedaviddias +daily +0.8 + + +https://gitshow.dev/jessfraz +daily +0.8 + + +https://gitshow.dev/mxstbr +daily +0.8 + + +https://gitshow.dev/Rich-Harris +daily +0.8 + + +https://gitshow.dev/antfu +daily +0.8 + + +https://gitshow.dev/tannerlinsley +daily +0.8 + + +https://gitshow.dev/ThePrimeagen +daily +0.8 + + +https://gitshow.dev/denoland +daily +0.8 + + +https://gitshow.dev/rauchg +daily +0.8 + + +https://gitshow.dev/shadcn +daily +0.8 + + +https://gitshow.dev/t3dotgg +daily +0.8 + + +https://gitshow.dev/leveluptuts +daily +0.8 + + +https://gitshow.dev/fireship-io +daily +0.8 + + +https://gitshow.dev/vercel/next.js +daily +0.7 + + +https://gitshow.dev/facebook/react +daily +0.7 + + +https://gitshow.dev/denoland/deno +daily +0.7 + + +https://gitshow.dev/tailwindlabs/tailwindcss +daily +0.7 + + +https://gitshow.dev/vuejs/core +daily +0.7 + + +https://gitshow.dev/sveltejs/svelte +daily +0.7 + + +https://gitshow.dev/oven-sh/bun +daily +0.7 + + +https://gitshow.dev/withastro/astro +daily +0.7 + + +https://gitshow.dev/vitejs/vite +daily +0.7 + + +https://gitshow.dev/drizzle-team/drizzle-orm +daily +0.7 + + +https://gitshow.dev/trpc/trpc +daily +0.7 + + +https://gitshow.dev/colinhacks/zod +daily +0.7 + + +https://gitshow.dev/honojs/hono +daily +0.7 + + +https://gitshow.dev/modelcontextprotocol/servers +daily +0.7 + + diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 830424c..42e3ea3 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -14,6 +14,7 @@ export const metadata: Metadata = { "Turn GitHub profiles and repos into portfolios and project showrooms with npm stats, repo categories, and tech stacks. Free, open source, no signup.", applicationName: "GitShow", verification: { + google: "zn8NNlKIe-7WU0kPAKfIDcZmwISpj499v9dFBXpCsDE", other: { "msvalidate.01": "AAD3E490305203BA80DF599EC9F9067F" }, }, keywords: [ diff --git a/src/app/page.tsx b/src/app/page.tsx index eb4630b..c205577 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -4,7 +4,7 @@ import { UrlSwap } from "@/components/url-swap"; import { UsernameInput } from "@/components/username-input"; import { ProfileTicker } from "@/components/profile-ticker"; import { Footer } from "@/components/footer"; -import { JsonLd, websiteJsonLd, webApplicationJsonLd, faqPageJsonLd } from "@/components/json-ld"; +import { JsonLd, websiteJsonLd, webApplicationJsonLd, faqPageJsonLd, productFaqs } from "@/components/json-ld"; const svg = (children: ReactNode) => ( @@ -46,7 +46,7 @@ const FEATURES: { icon: ReactNode; title: string; text: string }[] = [ { icon: svg(<>), title: "Social Preview Cards", - text: "Dynamic 1200x630 OG images generated per profile. Looks good when shared on X and LinkedIn.", + text: "1200x630 profile and repository preview images for X and LinkedIn. Generated images refresh daily; new pages use a default image until the next refresh.", }, { icon: svg(<>), @@ -55,8 +55,8 @@ const FEATURES: { icon: ReactNode; title: string; text: string }[] = [ }, { icon: svg(<>), - title: "LLM & GEO Ready", - text: "Schema.org structured data, llms.txt, AI crawler access. Built to surface in ChatGPT, Perplexity, and Google AI.", + title: "Readable profile data", + text: "Server-rendered profiles and repository pages include structured data and links to the original GitHub sources.", }, ]; @@ -173,7 +173,7 @@ export default function Home() { step="3" title="Share on social" code="https://gitshow.dev/your-username" - text="Every profile has a dynamic OG image. Paste the link on X or LinkedIn and it looks great." + text="Share a profile or repository link on X or LinkedIn. Preview images refresh daily; a new page may use the default image first." /> @@ -202,13 +202,29 @@ export default function Home() { +
+
+

+ About GitShow +

+
+ {productFaqs.map(({ question, answer }) => ( +
+
{question}
+
{answer}
+
+ ))} +
+
+ +

Open source, free, no strings

- MIT licensed. Self-host it, fork it, contribute. Built with Next.js, React, TypeScript, and Tailwind CSS. Deployed on Vercel. + MIT licensed. Self-host it, fork it, contribute. Built with Next.js, React, TypeScript, and Tailwind CSS. Hosted on Cloudflare Workers.

({ - url: `${base}/${username}`, - lastModified: new Date(), - changeFrequency: "daily" as const, - priority: 0.8, - }), - ); - - const repoPages: MetadataRoute.Sitemap = FEATURED_REPOS.map( - (slug) => ({ - url: `${base}/${slug}`, - lastModified: new Date(), - changeFrequency: "daily" as const, - priority: 0.7, - }), - ); - - return [...staticPages, ...profilePages, ...repoPages]; -} diff --git a/src/components/json-ld.tsx b/src/components/json-ld.tsx index df1561e..75cdd4f 100644 --- a/src/components/json-ld.tsx +++ b/src/components/json-ld.tsx @@ -9,7 +9,7 @@ export function JsonLd({ data }: JsonLdProps) { return (