How julirey/catlibrary works
Catlibrary is a browser-based cat-breed library. Its main workflow fetches paginated breeds and images for a catalogue, lets a visitor open a breed’s details, and saves selected breeds in browser favorites; separate home and Explore views show cat-image slideshows and a masonry gallery. The graph also preserves shared page-template utilities and the join page visible in the tree, though its behavior is not described. Source excerpts support the JavaScript calls and API requests; page-to-script wiring and the join flow were not shown, so those links are omitted.
Main entry points: breedList.mjs Breed data and catalogue · utils.mjs Shared utilities · cats.mjs Cat image service · breedDetails.mjs Breed details
Components 21
Visitor views
- Home page
src/index.html - Home controller
src/js/home.js - Explore page
src/explore/index.html - Explore controller
src/js/explore.js - Join page
src/join/index.html - Join confirmation
src/join/thankyou.html
Breed features
- Catalogue page
src/catalogue/index.html - Catalogue controller
src/js/catalogue.js - Breed page
src/breed/index.html - Breed controller
src/js/breed.js - Breed details
src/js/breedDetails.mjs - Breed data and catalogue
src/js/breedList.mjs - Favorites page
src/favorite/index.html - Favorites controller
src/js/favorite.js
Image gallery
- Cat image service
src/js/cats.mjs - Slideshow controls
src/js/slideshow.mjs
Shared runtime
- Shared utilities
src/js/utils.mjs - Site shell controller
src/js/main.js
Other components
- Visitor
- TheCatAPI
- Browser local storage
Connections 18
- Home controller → Cat image service: requests slideshow
src/js/home.js - Explore controller → Cat image service: requests gallery
src/js/explore.js - Catalogue controller → Shared utilities: reads page parameter
src/js/catalogue.js - Catalogue controller → Breed data and catalogue: requests breed list
src/js/catalogue.js - Breed controller → Shared utilities: reads breed parameter
src/js/breed.js - Breed controller → Breed data and catalogue: requests breed image
src/js/breed.js - Breed controller → Breed details: initializes details
src/js/breed.js - Breed details → Breed data and catalogue: loads breed
src/js/breedDetails.mjs - Breed details → Shared utilities: uses storage and stats
src/js/breedDetails.mjs - Breed data and catalogue → TheCatAPI: fetches breed data
src/js/breedList.mjs - Breed data and catalogue → Cat image service: requests breed images
src/js/breedList.mjs - Cat image service → TheCatAPI: fetches cat images
src/js/cats.mjs - Cat image service → Slideshow controls: controls slides
src/js/cats.mjs - Favorites controller → Shared utilities: loads favorites
src/js/favorite.js - Favorites controller → Breed data and catalogue: renders favorites
src/js/favorite.js - Breed details → Browser local storage: reads and saves
src/js/breedDetails.mjs - Shared utilities → Browser local storage: reads and writes
src/js/utils.mjs - Site shell controller → Shared utilities: loads shared shell
src/js/main.js