{"repo":"AttackOnMorty/github-ranking","free":true,"listed":false,"github":"https://github.com/AttackOnMorty/github-ranking","clone":"git clone https://github.com/AttackOnMorty/github-ranking.git","description":"Search GitHub's top repositories, users and organizations.","language":"TypeScript","stars":19,"topics":["github-api","nextjs","shadcn"],"license":null,"category":"saas-starters-boilerplates","readme_excerpt":"GitHub Ranking Project Overview GitHub Ranking is a Next.js 16 web application that displays rankings of GitHub repositories, users, and organizations by stars, forks, and followers. Uses the GitHub Search API via Octokit. Development Commands Environment Setup Copy .example.env to .env.local and add a GitHub personal access token: Architecture Data Flow 1. Server Actions ( api/index.ts ) - Octokit-based functions with 'use server' directive call GitHub API 2. SWR Hooks ( hooks/use-github-api.ts ) - Client-side data fetching with 24-hour cache 3. Pages ( app/ ) - Client components that consume hooks Key Directories - api/ - Server actions wrapping GitHub API calls (getTopReposAsync, getTopUsersAsync, etc.) - hooks/ - SWR hooks for all data fetching - context/ - LanguageProvider fetches and shares available programming languages globally - components/ui/ - shadcn/ui components (radix-lyra style, hugeicons icons) - app/repositories/ components/ - Repository page-specific components Important Patterns - Organizations page ( app/organizations/ ) reuses UserTable from users page with USER TYPE.ORGANIZATION - GitHub API limits search results to 1000 items max ( MAX DATA COUNT in constants) - Language list is fetched from GitHub Linguist's YAML file Path Aliases Use @/ for imports from project root (configured in tsconfig.json).","default_branch":null,"files":null,"tree":[],"storefront":"/r/AttackOnMorty","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/AttackOnMorty/github-ranking/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}