How dgahagan/shelf works
Shelf is a self-hosted, multi-user home-library catalog. The principal workflow is scanning a barcode or searching a title, resolving metadata and artwork, then adding the item to a persistent collection. The graph also preserves photo intake, browsing, lending, inventory, collection maintenance, integrations, and valuation. Source excerpts and the index support the central routing, persistence, metadata, and cover relationships; README-based edges represent documented capabilities where implementation excerpts were not provided.
Main entry points: items.py Item workflows · database.py SQLite catalog · main.py Application routes · items_common.py Lookup and scan logic
Components 20
Web experience
- Web interface
static/js/app.js - Scanning interface
static/js/scan.js - Browse interface
static/js/browse.js - Application routes
app/main.py
Catalog workflows
- Item workflows
app/routers/items.py - Lookup and scan logic
app/routers/items_common.py - Item persistence logic
app/services/item_write.py - Cover review queue
app/routers/cover_review.py - Photo intake
app/routers/intake.py - Browse and search
app/routers/items_catalog.py - Lending and checkouts
app/routers/checkouts.py - Locations and inventory
app/routers/locations.py - Collection management
app/routers - Collection valuation
app/routers/valuation.py
Metadata and media
- Metadata providers
app/services - Cover search and storage
app/services/covers.py
Identity and persistence
- Authentication and roles
app/auth.py - SQLite catalog
app/database.py
Other components
- Household user
- Metadata services
Connections 24
- Household user → Web interface: uses
- Web interface → Application routes: requests pages
app/main.py - Scanning interface → Item workflows: submits scans
- Browse interface → Browse and search: browses catalog
- Application routes → Authentication and roles: authenticates
app/main.py - Application routes → Item workflows: mounts routes
app/main.py - Authentication and roles → SQLite catalog: reads users
app/auth.py - Item workflows → Lookup and scan logic: delegates lookup
app/routers/items.py - Lookup and scan logic → Metadata providers: looks up metadata
app/routers/items_common.py - Lookup and scan logic → Cover search and storage: finds artwork
app/routers/items_common.py - Item workflows → Item persistence logic: writes items
app/routers/items.py - Item persistence logic → SQLite catalog: persists records
app/services/item_write.py - Metadata providers → Metadata services: queries providers
- Cover search and storage → Metadata services: fetches artwork
app/services/covers.py - Household user → Photo intake: imports shelf photos
- Photo intake → Item persistence logic: adds confirmed items
- Household user → Cover review queue: reviews covers
- Cover review queue → Cover search and storage: searches candidates
app/routers/cover_review.py - Household user → Lending and checkouts: lends and returns
- Household user → Locations and inventory: audits locations
- Household user → Collection management: manages collection
- Household user → Collection valuation: requests valuation
- Browse and search → SQLite catalog: queries catalog
- Lending and checkouts → SQLite catalog: tracks loans
app/routers/checkouts.py