How shreyashri1011/tabs works
TABS is an Electron desktop app for organizing and reading PDFs with a scrapbook-like interface. The renderer entry mounts the application; the app manages document selection, PDF rendering, reading state, and saved annotations, while views and toolbar components present library and reading interactions. The excerpts show persistence requests through an Electron API, but do not reveal its implementation or the database schema. Several features are documented in component excerpts, but unsampled source limits which runtime connections can be confirmed.
Main entry points: App.jsx App workflow · imageUtils.js Image utilities · Toolbar.jsx Reader toolbar · HomeView.jsx Library view
Components 15
Desktop application
- Renderer entry
src/main.jsx - App workflow
src/App.jsx - PDF renderer
src/App.jsx - Electron persistence API
Library and navigation
- Library view
src/components/HomeView.jsx - Open animation
src/components/FolderOpenAnimation.jsx - Close animation
src/components/FolderCloseAnimation.jsx - Build version display
src/buildInfo.js
Reading and annotation
- Reader toolbar
src/components/Toolbar.jsx - Document notes
src/components/NotesPanel.jsx
Reading interface
- PDF reader view
src/components/ReaderView.jsx - Page counter
src/components/PageCounter.jsx - Color carousel
src/components/ColorCarousel.jsx - Image utilities
src/utils/imageUtils.js
Other components
- Reader
Connections 14
- Renderer entry → App workflow: mounts
src/main.jsx - App workflow → Reader toolbar: renders
src/App.jsx - App workflow → Open animation: renders
src/App.jsx - App workflow → Close animation: renders
src/App.jsx - App workflow → Electron persistence API: requests data
src/App.jsx - App workflow → PDF renderer: renders pages
src/App.jsx - Reader toolbar → Color carousel: renders
src/components/Toolbar.jsx - PDF reader view → Page counter: renders
src/components/ReaderView.jsx - Reader toolbar → Image utilities: cleans artwork
src/components/Toolbar.jsx - PDF reader view → Image utilities: cleans artwork
src/components/ReaderView.jsx - Open animation → Image utilities: cleans artwork
src/components/FolderOpenAnimation.jsx - Close animation → Image utilities: cleans artwork
src/components/FolderCloseAnimation.jsx - Library view → Image utilities: cleans artwork
src/components/HomeView.jsx - Library view → Build version display: shows version
src/components/HomeView.jsx