How mlitvaj/react-starter works
React Starter is a browser-based reading-list application with built-in token authentication. Users enter through authentication or, when signed in, the dashboard; they can discover books, manage reading and finished lists, view book details, and access profile functions. The API layer provides typed, schema-validated endpoint operations, while authentication state is persisted and restored across reloads. The graph covers documented features and source-indexed modules; unsampled route implementations are represented by their existing feature directories, and only evidenced relationships are connected.
Main entry points: App.tsx Route Selection · index.ts Auth Operations · Root.tsx Root Providers · auth Auth Screens
Components 18
App Shell
- Application Entry
src/index.tsx - Root Providers
src/app/Root.tsx - Route Selection
src/app/App.tsx - Translations
src/i18n/index.ts
Authentication
- Auth Screens
src/features/auth - Route Guards
src/common/auth/RequireIsLoggedIn.tsx - Auth Operations
src/common/auth/index.ts - Persisted Auth State
src/common/auth/state.ts - Session Restoration
src/app/PersistAuthGate.tsx
Bookshelf
- Dashboard
src/features/dashboard - Bookshelf Features
src/features/dashboard/features/bookshelf - Profile Features
src/features/dashboard/features/profile
API and State
- Query Operations
src/api/queries.ts - API Endpoints
src/api/endpoints.ts - Fetch Client
src/api/client.ts - Query Provider
src/app/providers/Query.tsx
Other components
- Reader
- Backend API
Connections 21
- Reader → Application Entry: uses
- Application Entry → Root Providers: renders
src/index.tsx - Root Providers → Route Selection: renders
src/app/Root.tsx - Root Providers → Query Provider: wraps with
src/app/Root.tsx - Route Selection → Auth Screens: routes to
src/app/App.tsx - Route Selection → Dashboard: routes to
src/app/App.tsx - Route Selection → Route Guards: protects route
src/app/App.tsx - Dashboard → Bookshelf Features: includes
- Dashboard → Profile Features: includes
- Auth Screens → Auth Operations: uses
- Auth Operations → API Endpoints: calls
src/common/auth/index.ts - Auth Operations → Persisted Auth State: updates
src/common/auth/index.ts - Session Restoration → Auth Operations: relogs in
src/app/PersistAuthGate.tsx - Persisted Auth State → Reader: persists token
- Bookshelf Features → Query Operations: uses
- Query Operations → API Endpoints: calls
src/api/queries.ts - API Endpoints → Fetch Client: calls
src/api/endpoints.ts - Fetch Client → Backend API: requests
- Auth Screens → Backend API: uses auth services
- Profile Features → Backend API: uses profile services
- Reader → Translations: selects language