How masiama/libri-admin works
Libri Admin is a Vue admin panel for maintaining the Libri catalog and operating crawler runs. The main workflow is an administrator signing in, browsing and changing paginated book records, then monitoring crawler jobs and resolving invalid-ISBN books. Shared services handle authenticated API access, source options, API health, and live event parsing. The README documents image uploads, crawl history and errors, and Clerk-protected admin access. Generated API modules are absent from the supplied tree, so API is shown as an external service; some unsampled page-to-component wiring is omitted.
Main entry points: usePagination.ts Pagination · BookUpsertSlideover.vue Book create/edit · purgatory.vue ISBN purgatory · crawler.vue Crawler page
Components 24
Admin experience
- Application shell
src/App.vue - Sign-in page
src/pages/login.vue - App layout
src/components/AppLayout.vue - Header
src/components/Header.vue
Catalog management
- Books page
src/pages/index.vue - Book editor
src/components/BookEditForm.vue - Book create/edit
src/components/BookUpsertSlideover.vue - Book helpers
src/utils/book.ts - ISBN purgatory
src/pages/purgatory.vue - Approve purgatory book
src/components/ApprovePurgatoryBookButton.vue - Delete purgatory book
src/components/DeletePurgatoryBookButton.vue
Crawler operations
- Crawler page
src/pages/crawler.vue - Live event stream
src/composables/useCrawlJobEvents.ts - Job helpers
src/utils/crawlJob.ts
Shared services
- Pagination
src/composables/usePagination.ts - API health polling
src/composables/useApiStatusPolling.ts - API status store
src/stores/apiStatus.ts - Load sources
src/composables/useLoadSources.ts - Sources store
src/stores/sources.ts - Authenticated mutator
src/api/mutator.ts - Domain schemas
src/utils/types.ts
Other components
- Administrator
- Clerk
- libri-api
Connections 31
- Administrator → Sign-in page: signs in
README.md - Administrator → Books page: manages catalog
README.md - Administrator → Crawler page: operates crawler
README.md - Administrator → ISBN purgatory: resolves ISBNs
README.md - Application shell → API health polling: starts polling
src/App.vue - Application shell → Load sources: loads sources
src/App.vue - Sign-in page → Clerk: authenticates with
README.md - Authenticated mutator → Clerk: gets JWT
- Authenticated mutator → libri-api: sends requests
README.md - Books page → Pagination: loads book pages
src/pages/index.vue - Pagination → libri-api: fetches pages
src/composables/usePagination.ts - Books page → Book create/edit: opens editor
src/pages/index.vue - Book create/edit → Book editor: renders form
src/components/BookUpsertSlideover.vue - Book create/edit → Authenticated mutator: submits book
src/components/BookUpsertSlideover.vue - Book editor → Book helpers: gets cover URL
src/components/BookEditForm.vue - Book create/edit → Book helpers: clones book
src/components/BookUpsertSlideover.vue - ISBN purgatory → Pagination: loads queue
src/pages/purgatory.vue - ISBN purgatory → Approve purgatory book: offers approval
- ISBN purgatory → Delete purgatory book: offers deletion
- Crawler page → Pagination: loads job history
src/pages/crawler.vue - Crawler page → Live event stream: subscribes to events
src/pages/crawler.vue - Live event stream → libri-api: opens SSE stream
src/composables/useCrawlJobEvents.ts - Crawler page → Job helpers: formats job data
src/pages/crawler.vue - API health polling → libri-api: checks health
src/composables/useApiStatusPolling.ts - API health polling → API status store: updates status
src/composables/useApiStatusPolling.ts - Load sources → libri-api: fetches sources
- Load sources → Sources store: stores sources
src/composables/useLoadSources.ts - Book editor → Sources store: reads options
src/components/BookEditForm.vue - Pagination → Domain schemas: validates results
src/composables/usePagination.ts - Live event stream → Domain schemas: parses events
src/composables/useCrawlJobEvents.ts - Header → API status store: reads status
src/components/Header.vue