How roy-jade/blablabook works
Blablabook is a personal-library web app: readers browse/search books, inspect book details and community ratings, then manage owned titles and their own reading feedback; registered users can manage their accounts. The graph combines sampled call sites and explicit README capabilities. Backend domain controllers not excerpted are represented by their exact controller paths; their detailed internal calls are not inferred.
Main entry points: api.js API client · App.jsx React application · router.js HTTP routing · db.js SQL connection pool
Components 25
Reader experience
- React application
frontend/src/App.jsx - User session context
frontend/src/contexts/CurrentUserContext.js - Book browsing
frontend/src/pages/Library/Library.jsx - Book details and reviews
frontend/src/pages/BookID/BookID.jsx - Book cards
frontend/src/components/BookMini/BookMini.jsx - Ownership controls
frontend/src/components/BookOwnership/BookOwnership.jsx - Ratings and comments
frontend/src/components/RatingInput/RatingInput.jsx - Book suggestions
frontend/src/components/Carousel/Carousel.jsx - Registration and account
frontend/src/pages/Register/Register.jsx - Account settings
frontend/src/pages/Dashboard/Dashboard.jsx - API client
frontend/src/api/api.js
Backend API
- HTTP routing
backend/routers/router.js - Auth routing
backend/routers/authRouter.js - Authentication and accounts
backend/controllers/auth.js - JWT authorization
backend/middleware/checkJWT.js - Public book catalogue
backend/controllers/library.js - Catalogue search
backend/controllers/openLibrary.js - Personal library and reviews
backend/controllers/personalLibrary.js - Library book changes
backend/controllers/bookMovements.js
Persistence and catalogue
- OpenLibrary integration
backend/services/OpenLibrary.js - Search cache
backend/config/cache.js - SQL connection pool
backend/config/db.js - PostgreSQL
Other components
- Reader
- OpenLibrary
Connections 37
- Reader → React application: uses
frontend/src/App.jsx - React application → User session context: provides session
frontend/src/App.jsx - React application → API client: loads session
frontend/src/App.jsx - React application → Book browsing: routes to
frontend/src/App.jsx - React application → Book details and reviews: routes to
frontend/src/App.jsx - React application → Registration and account: routes to
frontend/src/App.jsx - React application → Account settings: routes to
frontend/src/App.jsx - Book browsing → API client: requests books
frontend/src/pages/Library/Library.jsx - Book browsing → Book cards: renders
frontend/src/pages/Library/Library.jsx - Book details and reviews → API client: requests details
frontend/src/pages/BookID/BookID.jsx - Book details and reviews → Ownership controls: renders
frontend/src/pages/BookID/BookID.jsx - Book details and reviews → Ratings and comments: renders
frontend/src/pages/BookID/BookID.jsx - Book details and reviews → Book suggestions: renders
frontend/src/pages/BookID/BookID.jsx - Ownership controls → API client: updates ownership
frontend/src/components/BookOwnership/BookOwnership.jsx - Ratings and comments → API client: submits rating
frontend/src/components/RatingInput/RatingInput.jsx - Registration and account → API client: registers
frontend/src/pages/Register/Register.jsx - Account settings → API client: updates account
- API client → HTTP routing: sends API requests
frontend/src/api/api.js - API client → Auth routing: sends auth requests
frontend/src/api/api.js - HTTP routing → Public book catalogue: dispatches
backend/routers/router.js - HTTP routing → Catalogue search: dispatches
backend/routers/router.js - HTTP routing → Personal library and reviews: dispatches
backend/routers/router.js - HTTP routing → Library book changes: dispatches
backend/routers/router.js - Auth routing → Authentication and accounts: dispatches
backend/routers/authRouter.js - Auth routing → JWT authorization: guards routes
backend/routers/authRouter.js - HTTP routing → JWT authorization: guards routes
backend/routers/router.js - Authentication and accounts → SQL connection pool: queries
backend/controllers/auth.js - JWT authorization → SQL connection pool: checks user
backend/middleware/checkJWT.js - Public book catalogue → SQL connection pool: queries
backend/controllers/library.js - Personal library and reviews → SQL connection pool: queries
backend/controllers/personalLibrary.js - Library book changes → SQL connection pool: queries
backend/controllers/bookMovements.js - SQL connection pool → PostgreSQL: queries
- Catalogue search → OpenLibrary integration: searches catalogue
backend/controllers/openLibrary.js - Catalogue search → Search cache: uses cache
backend/controllers/openLibrary.js - Library book changes → OpenLibrary integration: enriches books
backend/controllers/bookMovements.js - Library book changes → Search cache: uses cache
backend/controllers/bookMovements.js - OpenLibrary integration → OpenLibrary: fetches book data
backend/services/OpenLibrary.js