How hari2617/netstar works
Netstar is a React anime-browsing site backed by the Jikan API. The main workflow routes visitors to seasonal, popular, top-rated, or upcoming lists; list and search pages fetch anime data and render cards, which link to a detail view. The header also submits searches, and a fallback page handles unmatched routes. The shown fetch code supports the data-flow edges below; the bearer-token helper is imported but not used in the sampled fetch calls.
Main entry points: AllRoute.jsx Route dispatch · App.jsx App shell · Search.jsx Anime search · ListMovies.jsx Anime lists
Components 14
App shell
- React entry
src/main.jsx - App shell
src/App.jsx - Navigation and search
src/Components/Header.jsx - Footer
src/Components/Footer.jsx
Anime browsing
- Route dispatch
src/AllRoutes/AllRoute.jsx - Anime lists
src/pages/ListMovies.jsx - Anime search
src/pages/Search.jsx - Anime details
src/pages/MovieDetails.jsx - Not found
src/pages/PageNotFound.jsx - Anime card
src/Components/Card.jsx
Data access
- Fetch hook
src/hooks/useFetch.jsx - Bearer token config
src/utils/BarearToken.jsx
Other components
- Visitor
- Jikan API
Connections 17
- Visitor → React entry: opens
src/main.jsx - React entry → App shell: renders
src/main.jsx - App shell → Navigation and search: renders
src/App.jsx - App shell → Route dispatch: renders
src/App.jsx - App shell → Footer: renders
src/App.jsx - Navigation and search → Anime search: navigates to
src/Components/Header.jsx - Route dispatch → Anime lists: routes to
src/AllRoutes/AllRoute.jsx - Route dispatch → Anime search: routes to
src/AllRoutes/AllRoute.jsx - Route dispatch → Anime details: routes to
src/AllRoutes/AllRoute.jsx - Route dispatch → Not found: routes to
src/AllRoutes/AllRoute.jsx - Anime lists → Fetch hook: fetches via
src/pages/ListMovies.jsx - Anime search → Fetch hook: fetches via
src/pages/Search.jsx - Fetch hook → Jikan API: requests data
src/hooks/useFetch.jsx - Anime details → Jikan API: requests details
src/pages/MovieDetails.jsx - Anime lists → Anime card: renders
src/pages/ListMovies.jsx - Anime search → Anime card: renders
src/pages/Search.jsx - Anime card → Anime details: links to
src/Components/Card.jsx