How zafinamn/gg works
G&G International is a PDF catalog viewer with public sharing and an administrator dashboard. The main workflow is selecting a PDF, opening it in the catalog viewer, and optionally resolving a shared catalog through the API; administrators sign in to review analytics and manage stored PDFs and named links. The tree also contains a separate pdf-ai-analyzer-v3-smooth-page-turn frontend variant. The README documents viewer, storage, sharing, and analytics capabilities; sampled excerpts show the main app’s routing and viewer handoff, but not every API implementation or viewer feature.
Main entry points: src/App.tsx App routing · AdminDashboard.tsx Admin dashboard · src/App.tsx Alternate app · VirtualCatalogViewer.tsx Catalog viewer
Components 20
Catalog experience
- App routing
src/App.tsx - PDF upload
src/components/UploadZone.tsx - Catalog viewer
src/components/VirtualCatalogViewer.tsx - AI overview
src/components/AiOverview.tsx - Catalog chat
src/components/ChatInterface.tsx
Administration
- Admin dashboard
src/components/AdminDashboard.tsx
API and storage
- Admin authentication
api/admin-auth.ts - Admin analytics API
api/admin-analytics.ts - Catalog management API
api/admin-catalogs.ts - Share-link management API
api/admin-share-links.ts - Catalog lookup API
api/catalog.ts - Share-link API
api/share-link.ts - Open analytics API
api/analytics-open.ts - Blob upload API
api/blob-upload.ts - Catalog upload API
api/catalog-upload.ts - Vercel Blob storage
Alternate frontend
- Alternate app
pdf-ai-analyzer-v3-smooth-page-turn/src/App.tsx - Alternate catalog viewer
pdf-ai-analyzer-v3-smooth-page-turn/src/components/VirtualCatalogViewer.tsx - Alternate PDF upload
pdf-ai-analyzer-v3-smooth-page-turn/src/components/UploadZone.tsx
Other components
- Catalog visitor
Connections 23
- Catalog visitor → App routing: opens
src/App.tsx - App routing → PDF upload: renders
src/App.tsx - App routing → Catalog viewer: renders
src/App.tsx - App routing → Admin dashboard: routes to
src/App.tsx - Catalog visitor → Catalog viewer: uses search and bookmarks
README.md - Catalog visitor → Catalog viewer: uses page flip and zoom
README.md - App routing → Catalog lookup API: resolves shared catalog
src/App.tsx - App routing → Share-link API: resolves link
src/App.tsx - Admin dashboard → Admin analytics API: loads analytics
src/components/AdminDashboard.tsx - Admin dashboard → Admin authentication: authenticates
- Admin dashboard → Catalog management API: manages PDFs
README.md - Admin dashboard → Share-link management API: manages named links
README.md - Catalog lookup API → Vercel Blob storage: resolves PDF
README.md - Share-link API → Vercel Blob storage: resolves PDF
README.md - Blob upload API → Vercel Blob storage: stores PDF
README.md - Catalog upload API → Vercel Blob storage: stores catalog
README.md - Catalog management API → Vercel Blob storage: manages stored PDFs
README.md - App routing → Open analytics API: records opens
- App routing → AI overview: renders
- App routing → Catalog chat: renders
- Catalog visitor → Alternate app: uses alternate frontend
- Alternate app → Alternate PDF upload: renders
pdf-ai-analyzer-v3-smooth-page-turn/src/App.tsx - Alternate app → Alternate catalog viewer: renders
pdf-ai-analyzer-v3-smooth-page-turn/src/App.tsx