How rachelalba-tech/stsweng_smartalbum works
Smart Album is a browser photo and album manager backed by a Node API. The main workflow is an authenticated user navigating albums, managing photos and album membership, and optionally building and exporting collages; account signup/login gates that workflow. Analysis capabilities include duplicate detection, similarity, photo quality, and color grading. Edges reflect calls shown in excerpts or explicit README statements; unsampled routes and modules are retained as capability nodes where supported, without guessing their internal wiring.
Main entry points: App.tsx Application shell · http.ts HTTP API and handlers · api.ts API client · PhotoGallery.tsx Photo gallery
Components 34
Browser application
- Application shell
frontend/src/app/App.tsx - Hash routing
frontend/src/app/route.ts - Sign in and signup
frontend/src/app/LoginPage.tsx - Signup validation
frontend/src/app/signUpValidation.ts - API client
frontend/src/app/api.ts - Photo API helpers
frontend/src/app/photoApi.ts
Album and photo management
- Album manager
frontend/src/app/AlbumManager.tsx - Album details
frontend/src/app/AlbumPage.tsx - Photo gallery
frontend/src/app/PhotoGallery.tsx - Photo upload
frontend/src/app/PhotoUpload.tsx
Photo analysis
- Duplicate detection
frontend/src/app/DuplicatePhotos.tsx - Photo similarity
frontend/src/app/SimilarPhotos.tsx - Similarity engine
frontend/src/app/photoSimilarity.ts - Photo quality analysis
frontend/src/app/photoQuality.ts - Low quality photos
frontend/src/app/LowQualityPhotos.tsx - Color grading
frontend/src/app/colorGrading.ts
Collage creation
- Collage editor
frontend/src/app/AlbumCollage.tsx - Collage templates
frontend/src/app/collageTemplates.ts - Collage state and types
frontend/src/app/collageStore.ts - Saved collage workflow
frontend/src/app/useCollages.ts - Collage API client
frontend/src/app/collageApi.ts - Preview and export
frontend/src/app/AlbumPreview.tsx - Collage export
frontend/src/app/collageExport.ts
API and persistence
- API startup
server/src/server.ts - HTTP API and handlers
server/src/http.ts - Album operations
server/src/albums.ts - Photo operations
server/src/photos.ts - Upload duplicate support
server/src/duplicates.ts - Photo details validation
server/src/photo-details.ts - Account operations
server/src/users.ts - Collage operations
server/src/collages.ts - Album JSON store
server/src/store.ts - Photo and upload store
server/src/photo-store.ts
Other components
- Account user
Connections 43
- Account user → Application shell: uses
- Application shell → Hash routing: resolves routes
frontend/src/app/App.tsx - Application shell → Sign in and signup: renders
frontend/src/app/App.tsx - Sign in and signup → Signup validation: validates signup
frontend/src/app/LoginPage.tsx - Application shell → Album manager: renders
frontend/src/app/App.tsx - Application shell → Album details: renders
frontend/src/app/App.tsx - Album details → Photo gallery: renders
frontend/src/app/AlbumPage.tsx - Application shell → Photo upload: renders
frontend/src/app/App.tsx - Application shell → API client: fetches data
frontend/src/app/App.tsx - Album manager → API client: manages albums
- Album details → API client: manages photos
frontend/src/app/AlbumPage.tsx - Photo gallery → API client: updates photos
frontend/src/app/PhotoGallery.tsx - Photo upload → API client: uploads photos
frontend/src/app/PhotoUpload.tsx - Application shell → Duplicate detection: renders
frontend/src/app/App.tsx - Application shell → Low quality photos: renders
frontend/src/app/App.tsx - Application shell → Photo similarity: renders
frontend/src/app/App.tsx - Photo similarity → Photo API helpers: uses
frontend/src/app/SimilarPhotos.tsx - Photo similarity → Similarity engine: analyzes
frontend/src/app/SimilarPhotos.tsx - Low quality photos → Photo API helpers: uses
frontend/src/app/LowQualityPhotos.tsx - Low quality photos → Photo quality analysis: analyzes
frontend/src/app/LowQualityPhotos.tsx - Photo gallery → Photo quality analysis: analyzes
frontend/src/app/PhotoGallery.tsx - Photo gallery → Color grading: applies grading
frontend/src/app/PhotoGallery.tsx - Application shell → Saved collage workflow: loads collages
frontend/src/app/App.tsx - Album manager → Collage editor: opens editor
frontend/src/app/AlbumManager.tsx - Collage editor → Collage templates: selects layouts
frontend/src/app/AlbumCollage.tsx - Collage editor → Collage state and types: uses types
frontend/src/app/AlbumCollage.tsx - Saved collage workflow → Collage API client: persists collages
frontend/src/app/useCollages.ts - Collage API client → Collage state and types: uses types
frontend/src/app/collageApi.ts - Application shell → Preview and export: renders
frontend/src/app/App.tsx - Preview and export → Collage state and types: resolves layouts
frontend/src/app/AlbumPreview.tsx - Preview and export → Collage export: renders and downloads
frontend/src/app/AlbumPreview.tsx - API client → HTTP API and handlers: requests API
- API startup → HTTP API and handlers: creates server
server/src/server.ts - API startup → Album JSON store: loads and saves
server/src/server.ts - API startup → Photo and upload store: loads and saves
server/src/server.ts - HTTP API and handlers → Album operations: calls operations
server/src/http.ts - HTTP API and handlers → Upload duplicate support: resolves uploads
server/src/http.ts - HTTP API and handlers → Photo details validation: validates patches
server/src/http.ts - HTTP API and handlers → Account operations: validates signup
server/src/http.ts - HTTP API and handlers → Collage operations: validates collages
server/src/http.ts - HTTP API and handlers → Photo and upload store: reads and writes
- HTTP API and handlers → Album JSON store: reads and writes
- HTTP API and handlers → Upload duplicate support: finds duplicates
server/src/http.ts