{"id":26605873,"url":"https://github.com/fantiga/hackernews-list-nextjs-react-ts","last_synced_at":"2026-04-15T19:35:47.275Z","repository":{"id":192230022,"uuid":"587286806","full_name":"FantiGA/hackernews-list-nextjs-react-ts","owner":"FantiGA","description":"This is an infinite loading demo generated from the HackerNews API using NextJS, React and styled-components.","archived":false,"fork":false,"pushed_at":"2024-03-16T02:59:34.000Z","size":731,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-03-16T03:36:38.139Z","etag":null,"topics":["functional-programming","nextjs","react","react18","styled-components","typescript"],"latest_commit_sha":null,"homepage":"https://fantiga.github.io/hackernews-list-nextjs-react-ts/","language":"CSS","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/FantiGA.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}},"created_at":"2023-01-10T12:01:04.000Z","updated_at":"2023-01-29T14:22:53.000Z","dependencies_parsed_at":"2023-09-03T14:59:52.937Z","dependency_job_id":"dc95f986-d7ce-46a1-8a9c-9660e4a26fcb","html_url":"https://github.com/FantiGA/hackernews-list-nextjs-react-ts","commit_stats":null,"previous_names":["fantiga/hackernews-list-nextjs-react-ts"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FantiGA%2Fhackernews-list-nextjs-react-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FantiGA%2Fhackernews-list-nextjs-react-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FantiGA%2Fhackernews-list-nextjs-react-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FantiGA%2Fhackernews-list-nextjs-react-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FantiGA","download_url":"https://codeload.github.com/FantiGA/hackernews-list-nextjs-react-ts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245168893,"owners_count":20571804,"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":["functional-programming","nextjs","react","react18","styled-components","typescript"],"created_at":"2025-03-23T21:16:47.718Z","updated_at":"2026-04-15T19:35:42.236Z","avatar_url":"https://github.com/FantiGA.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hackernews-list-nextjs-react-ts\n\n**English** | [简体中文](README.zh-CN.md)\n\n[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n\n- [hackernews-list-nextjs-react-ts](#hackernews-list-nextjs-react-ts)\n  - [Architecture](#architecture)\n  - [Requirements](#requirements)\n  - [Strategies](#strategies)\n  - [Maintainers](#maintainers)\n  - [License](#license)\n\nWelcome.\n\nThis is an infinite loading demo generated from the HackerNews API using NextJS, React and styled-components.\n\n[Demo](https://fantiga.github.io/hackernews-list-nextjs-react-ts/)\n\n## Architecture\n\n - The main Javascript framework is [React 18.2](https://reactjs.org/) version.\n - The main React framework is [NextJS 13.1.2](https://nextjs.org/) version.\n - Use [styled-components 5.3.6](https://styled-components.com/) for style management.\n - Use [react-intersection-observer 9.4.1](https://github.com/thebuilder/react-intersection-observer#readme) to monitor Element entering or leaving Viewport.\n - It follows the type checking and syntax specifications of [Typescript](https://www.typescriptlang.org/) and [ESLint](https://eslint.org/).\n\n## Requirements\n\n  1. Display a list of HackerNews top stories(100news).\n  2. Before data finishes fetching, show a loader.\n  3. Each news post has a link to navigate to the actual page as a new tab.\n  4. Infinite scrolling or Pagination.\n  5. Animations.\n\n## Strategies\n\n  1. `/pages/index.tsx` is an entry file.\n  2. `/pages/_document.tsx` introduces a webpage public header file `/components/Header.tsx`.\n  3. `/components/List.tsx` is a list page.\n  4. `/components/Loading.tsx` Loading page with simple animation applied.\n  5. The `/utils/` directory puts the public section. `common.ts` contains some constants used and methods for asynchronously obtaining data, and `interface.ts` defines the types used by all components.\n  6. Through the specified API `https://github.com/HackerNews/API`, the returned data will be rendered according to the requirements.\n  7. Cumulative time spent: about `40+` hours.\n\n## Maintainers\n\n[@FantiGA](https://github.com/FantiGA)\n\n## License\n\n[MIT](LICENSE)  © 2023 [@FantiGA](https://github.com/FantiGA)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffantiga%2Fhackernews-list-nextjs-react-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffantiga%2Fhackernews-list-nextjs-react-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffantiga%2Fhackernews-list-nextjs-react-ts/lists"}