{"id":24072497,"url":"https://github.com/whitedg/nextjs-hackernews","last_synced_at":"2025-09-10T06:33:10.952Z","repository":{"id":230808616,"uuid":"780235501","full_name":"WhiteDG/nextjs-hackernews","owner":"WhiteDG","description":"A HackerNews clone built with Next.js and shadcn/ui.","archived":false,"fork":false,"pushed_at":"2024-08-19T06:35:05.000Z","size":7195,"stargazers_count":14,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-20T22:03:08.525Z","etag":null,"topics":["hackernews","nextjs14","react-server-components","server-actions","shadcn-ui","tailwindcss"],"latest_commit_sha":null,"homepage":"https://nextjs-hackernews-omega.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WhiteDG.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}},"created_at":"2024-04-01T03:15:42.000Z","updated_at":"2024-10-09T16:05:15.000Z","dependencies_parsed_at":"2025-01-09T17:18:00.567Z","dependency_job_id":"05cc4376-fa29-4453-90f2-618bc0b64bb2","html_url":"https://github.com/WhiteDG/nextjs-hackernews","commit_stats":null,"previous_names":["whitedg/nextjs-hackernews"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WhiteDG%2Fnextjs-hackernews","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WhiteDG%2Fnextjs-hackernews/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WhiteDG%2Fnextjs-hackernews/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WhiteDG%2Fnextjs-hackernews/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WhiteDG","download_url":"https://codeload.github.com/WhiteDG/nextjs-hackernews/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251336389,"owners_count":21573188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["hackernews","nextjs14","react-server-components","server-actions","shadcn-ui","tailwindcss"],"created_at":"2025-01-09T17:17:51.732Z","updated_at":"2025-04-28T15:00:24.620Z","avatar_url":"https://github.com/WhiteDG.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js HackerNews\nThis is a [HackerNews](https://news.ycombinator.com/) clone built with [Next.js](https://nextjs.org/) and [shadcn/ui](https://ui.shadcn.com/).\n\n![index](./screenshots/desktop/index.png)\n\n\u003cp style=\"text-align: center;\"\u003e\u003ca target=\"_blank\" href=\"https://nextjs-hackernews-omega.vercel.app\"\u003eLive Demo\u003c/a\u003e\u003c/p\u003e\n\n## Features\n\n- Next.js App Router\n- React Server Components (RSCs) and Suspense\n- Server Actions for mutations\n- Beautifully designed components from shadcn/ui\n- Styling with Tailwind CSS\n- Browse stories: Top, Newest, Best, Show, Ask, Jobs.\n- Search for stories.\n- User authentication: Create an account or log in using your Hacker News account to access personalized features.\n- Mark stories as favorite.\n- Upvote stories or comments.\n- Add comments.\n- View user profile: About, Submitted, Comments, Favorites, Upvoted(private).\n- Responsive design: Friendly to both mobile and desktop.\n- Automatic light/dark mode based on system settings.\n\n## Screenshots\n\n### Desktop\n![index-desktop](./screenshots/desktop/index.png)\n\n![story-desktop](./screenshots/desktop/story.png)\n\n![about-desktop](./screenshots/desktop/about.png)\n\n![upvoted-desktop](./screenshots/desktop/upvoted.png)\n\n![comments-desktop](./screenshots/desktop/comments.png)\n\n![login-desktop](./screenshots/desktop/login.png)\n\n\n### Mobile\n\u003cdiv style=\"display: inline-block\"\u003e\n  \u003cimg\n    src=\"./screenshots/mobile/index.png\"\n    width=\"220px\"\n    alt=\"index-mobile\"\n  /\u003e\n  \u003cimg\n    src=\"./screenshots/mobile/story.png\"\n    width=\"220px\"\n    alt=\"story-mobile\"\n  /\u003e\n\u003c/div\u003e\n\u003cbr /\u003e\n\u003cdiv style=\"display: inline-block; margin-top: 18px\"\u003e\n  \u003cimg\n    src=\"./screenshots/mobile/about.png\"\n    width=\"220px\"\n    alt=\"about-mobile\"\n  /\u003e\n  \u003cimg\n    src=\"./screenshots/mobile/upvoted.png\"\n    width=\"220px\"\n    alt=\"upvoted-mobile\"\n  /\u003e\n\u003c/div\u003e\n\u003cbr /\u003e\n\u003cdiv style=\"display: inline-block; margin-top: 18px\"\u003e\n  \u003cimg\n    src=\"./screenshots/mobile/comments.png\"\n    width=\"220px\"\n    alt=\"comments-mobile\"\n  /\u003e\n  \u003cimg\n    src=\"./screenshots/mobile/login.png\"\n    width=\"220px\"\n    alt=\"login-mobile\"\n  /\u003e\n\u003c/div\u003e\n\n## Running Locally\n\nRequires Node.js 18.17 or later.\n\n0. Clone the project.\n```bash\ngit clone https://github.com/WhiteDG/nextjs-hackernews.git\n\ncd nextjs-hackernews\n```\n\n1. Install dependencies.\n```bash\npnpm install\n```\n2. Copy `.env.example` to `.env.local` and update the variables.\n```bash\ncp .env.example .env.local\n```\n3. Run the development server with hot reload.\n```bash\npnpm dev\n```\n4. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\n5. Build for production\n```bash\npnpm run build\n```\n\n6. Serve in production mode\n```bash\npnpm start\n```\n\n## APIs\nThis project leverages the power of various APIs to provide an enriched user experience:\n- [HackerNews Official API](https://github.com/HackerNews/API)\n  - Get stories\n  - Get comments\n  - Get user profiles\n- [HackerNews Website](https://news.ycombinator.com)\n  - Login/create account\n  - Add comments\n  - Upvote\n  - Favorite\n  - Submitted, Comments, Favorites, Upvoted(private)\n- [HnAlgolia API](https://hn.algolia.com/api)\n  - Search\n\n\n## License\nLicensed under the [MIT license](https://github.com/WhiteDG/nextjs-hackernews/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhitedg%2Fnextjs-hackernews","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhitedg%2Fnextjs-hackernews","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhitedg%2Fnextjs-hackernews/lists"}