{"id":26605874,"url":"https://github.com/fantiga/github-query-react-ts","last_synced_at":"2026-04-02T03:04:00.683Z","repository":{"id":192230027,"uuid":"577728282","full_name":"FantiGA/github-query-react-ts","owner":"FantiGA","description":"This is a demo of implementing GitHub repository search functionality with React and the GitHub REST API.","archived":false,"fork":false,"pushed_at":"2024-03-16T02:58:17.000Z","size":2116,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T14:01:59.877Z","etag":null,"topics":["functional-programming","material-ui","react","react18","typescript","webpack","webpack5"],"latest_commit_sha":null,"homepage":"https://fantiga.github.io/github-query-react-ts/dist","language":"JavaScript","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-12-13T11:47:40.000Z","updated_at":"2025-06-01T11:13:05.000Z","dependencies_parsed_at":"2025-10-09T14:01:11.650Z","dependency_job_id":"cbac1e74-971a-4ff9-9dbe-0f485865d3a3","html_url":"https://github.com/FantiGA/github-query-react-ts","commit_stats":null,"previous_names":["fantiga/github-query-react-ts"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/FantiGA/github-query-react-ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FantiGA%2Fgithub-query-react-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FantiGA%2Fgithub-query-react-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FantiGA%2Fgithub-query-react-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FantiGA%2Fgithub-query-react-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FantiGA","download_url":"https://codeload.github.com/FantiGA/github-query-react-ts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FantiGA%2Fgithub-query-react-ts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","material-ui","react","react18","typescript","webpack","webpack5"],"created_at":"2025-03-23T21:16:47.781Z","updated_at":"2026-04-02T03:04:00.659Z","avatar_url":"https://github.com/FantiGA.png","language":"JavaScript","readme":"# github-query-react-ts\n\n- [English](README.md)\n- [简体中文](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\nWelcome.\n\nThis is a demo of implementing GitHub repository search functionality with React and the GitHub REST API.\n\n[Demo](https://fantiga.github.io/github-query-react-ts/dist/)\n\n## Table of Contents\n\n- [github-query-react-ts](#github-query-react-ts)\n  - [Table of Contents](#table-of-contents)\n  - [Architecture](#architecture)\n  - [Strategies](#strategies)\n  - [Maintainers](#maintainers)\n  - [License](#license)\n\n## Architecture\n\n - The main Javascript framework is [React 18.2](https://reactjs.org/) version.\n - Use components such as `Box`, `TextField`, `Avatar`, `Link`, `DataGrid`, `Grid2` from [Material UI Component Library](https://mui.com/).\n - Simple package and use of [Axios Promise](https://axios-http.com/).\n - Asynchronous data requests and responses using the [GitHub REST API](https://docs.github.com/en/rest).\n - Use [Webpack 5.75.0](https://webpack.js.org/) for code and resource packaging.\n - It follows the type checking and syntax specifications of [Typescript](https://www.typescriptlang.org/) and [ESLint](https://eslint.org/).\n\n## Strategies\n\n 1. All projects are in the `/` directory.\n 2. `/src/index.tsx` is an entry file.\n 3. `/src/pages/Index.tsx` is a single page. \n 4. The `/src/components/` directory is the two components `Query` and `Result` in the page.\n 5. The `Query` component is used to collect the `keyword` entered by the user.\n 6. `Index.tsx` serves as a middleware to help `Query` pass `keyword` values to `Result`. Since it is just a simple demo project, no third-party state management library is used.\n 7. After receiving the `keyword`, the `Result` component sends a request to the GitHub REST API through the specified URL `https://api.github.com/search/repositories`. Put the returned `items` into the `DataGrid` component. Calculate the total number of pages returned by `total_count` and put it into `rowCount`.\n 8. The `onPageChange` and `onPageSizeChange` callback methods of the `DataGrid` itself can complete the server asynchronous request for page turning.\n 9. Please be careful not to operate frequently, otherwise the API will return \"403 Forbidden\", resulting in a white screen on the page and a large number of errors in the console. Refresh the page after waiting for a few seconds, and it will return to normal.\n 10. Cumulative time spent: about `15` 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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffantiga%2Fgithub-query-react-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffantiga%2Fgithub-query-react-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffantiga%2Fgithub-query-react-ts/lists"}