How digoarthur/github-automated-repos works
This React library lets a portfolio developer select public GitHub repositories by a topic keyword, then returns repository metadata and matching banner URLs through either a basic hook or a React Query hook. Stack icon and label components render topic-based technology badges. The README also documents a CLI initializer, but no CLI implementation appears in this repository tree, so it is not mapped as a runtime component. Edges reflect calls and imports visible in the supplied excerpts or SOURCE INDEX; no storage layer is present.
Main entry points: handleRepository.ts Repository selection · StackLabels.tsx Stack label component · hook/useGithubAutomatedRepos.ts Basic hook · react-query/useGithubAutomatedRepos.ts React Query hook
Components 13
React Hooks
- Basic hook
src/hook/useGithubAutomatedRepos.ts - React Query hook
src/hook/react-query/useGithubAutomatedRepos.ts
Repository Data
- Repository selection
src/utils/handleRepository.ts - GitHub repositories API
- Repository fetcher
src/api/fetchGitHubAPI.ts - Banner selection
src/utils/handleBanner.ts - Public folder fetcher
src/api/fetchGitHubBanner.ts - GitHub contents API
Portfolio Rendering
- Stack icon component
src/components/StackIcons.tsx - Stack label component
src/components/StackLabels/StackLabels.tsx - Label styling
src/components/StackLabels/styles.ts - Technology icon map
src/icons/stackIconsURL.ts
Other components
- Portfolio developer
Connections 12
- Portfolio developer → Basic hook: provides username and keyword
src/hook/useGithubAutomatedRepos.ts - Portfolio developer → React Query hook: provides query inputs
src/hook/react-query/useGithubAutomatedRepos.ts - Basic hook → Repository selection: calls
src/hook/useGithubAutomatedRepos.ts - React Query hook → Repository selection: query function calls
src/hook/react-query/useGithubAutomatedRepos.ts - Repository selection → Repository fetcher: fetches repository list
src/utils/handleRepository.ts - Repository fetcher → GitHub repositories API: requests repositories
src/api/fetchGitHubAPI.ts - Repository selection → Banner selection: gets banners for matches
src/utils/handleRepository.ts - Banner selection → Public folder fetcher: fetches banner files
src/utils/handleBanner.ts - Public folder fetcher → GitHub contents API: requests public contents
src/api/fetchGitHubBanner.ts - Stack icon component → Technology icon map: looks up icon URL
src/components/StackIcons.tsx - Stack label component → Technology icon map: checks supported topic
src/components/StackLabels/StackLabels.tsx - Stack label component → Label styling: renders styles
src/components/StackLabels/StackLabels.tsx