How gnomocarek/bibliotecapdf works
Minha Biblioteca Digital de PDFs is a browser-based, installable library for adding, organizing, reading, and downloading PDFs. A user selects or drops a PDF; the app extracts metadata and a cover, saves the book locally and optionally to Supabase, then lists it for search, filters, reading progress, favorites, and download. IndexedDB supports offline use; cloud storage enables access across devices. The README also documents backup import/export, themes, statistics, and PWA support. The excerpts show the main app, PDF helper, local database, cloud client, and service worker; other UI details are documented but not independently inspected.
Main entry points: app.js App controller · db.js IndexedDB manager · cloud.js Supabase sync · sw.js Service worker cache
Components 13
Library experience
- App controller
js/app.js - PDF metadata and covers
js/pdf-helper.js - PDF reader
index.html - Search and organization
js/app.js - Backup and statistics
js/app.js
Book persistence
- IndexedDB manager
js/db.js - Browser book store
- Supabase sync
js/cloud.js - Supabase books and storage
Offline and install
- Service worker cache
sw.js - Cache API
- PWA manifest
manifest.json
Other components
- Library user
Connections 11
- Library user → App controller: uses
README.md - App controller → PDF metadata and covers: extracts metadata
js/app.js - App controller → IndexedDB manager: initializes and saves
js/app.js - App controller → Supabase sync: fetches and uploads
js/app.js - App controller → Search and organization: renders and filters
README.md - App controller → PDF reader: opens PDF
README.md - App controller → Backup and statistics: exports and imports
README.md - IndexedDB manager → Browser book store: reads and writes
js/db.js - Supabase sync → Supabase books and storage: syncs book data
js/cloud.js - Service worker cache → Cache API: caches assets
sw.js - Library user → PWA manifest: installs app
README.md