How rotistorage-boop/archivein works
ArchiveIn is an academic-material archive and photo gallery with public browsing and an admin workspace. Visitors open the home page to browse gallery groups and, for permitted roles, a semester-to-course archive with detailed content. Admins manage academic and practical materials, gallery content, users, and sessions. Google OAuth establishes user sessions; archive/gallery services persist structured records and use external storage for media. The sampled files show key service and login relationships, but most admin route implementations were not sampled, so their connections are omitted where unverified.
Main entry points: +page.server.ts Home page loader · schema.ts Application database · +server.ts Google login · storage.service.ts Media storage
Components 22
Public browsing
- Home page loader
src/routes/(app)/+page.server.ts - Gallery views
src/lib/components/archive/Gallery.svelte - Archive detail views
src/lib/components/archive/Detail.svelte
Admin workspace
- Admin routes
src/routes/(admin)/dashboard - Dashboard
src/routes/(admin)/dashboard/+page.svelte
Identity and access
- Google login
src/routes/login/google/callback/+server.ts - Session auth
src/lib/server/auth.ts - Email notifications
src/lib/server/services/email.service.ts
Content services
- Academic archive
src/lib/server/services/archive.service.ts - Gallery catalog
src/lib/server/services/gallery.service.ts - Image processing
src/lib/server/services/image.service.ts - Praktikum content
src/lib/server/services/praktikum.service.ts - Session management
src/lib/server/services/session.service.ts - User management
src/lib/server/services/user.service.ts
Persistence and media
- Application database
src/lib/server/db/schema.ts - Database client
src/lib/server/db/index.ts - Media storage
src/lib/server/services/storage.service.ts - Initial content data
src/lib/server/db/seed.ts
Other components
- Visitor
- Administrator
- Google services
- ImageKit
Connections 19
- Visitor → Home page loader: opens
src/routes/(app)/+page.server.ts - Home page loader → Gallery catalog: loads gallery
src/routes/(app)/+page.server.ts - Home page loader → Academic archive: loads permitted archive
src/routes/(app)/+page.server.ts - Home page loader → Gallery views: provides gallery data
- Home page loader → Archive detail views: provides archive data
- Administrator → Admin routes: manages content
- Admin routes → Dashboard: serves dashboard
- Google login → Google services: exchanges OAuth profile
src/routes/login/google/callback/+server.ts - Google login → Application database: reads and writes users
src/routes/login/google/callback/+server.ts - Google login → Session auth: creates session
src/routes/login/google/callback/+server.ts - Google login → Email notifications: sends login notices
src/routes/login/google/callback/+server.ts - Academic archive → Application database: reads and writes archive
src/lib/server/services/archive.service.ts - Academic archive → Media storage: deletes item media
src/lib/server/services/archive.service.ts - Gallery catalog → Application database: reads and writes gallery
src/lib/server/services/gallery.service.ts - Gallery catalog → Media storage: deletes gallery media
src/lib/server/services/gallery.service.ts - Media storage → Google services: uploads and deletes files
src/lib/server/services/storage.service.ts - Media storage → ImageKit: uploads and deletes images
src/lib/server/services/storage.service.ts - Initial content data → Application database: inserts starter records
src/lib/server/db/seed.ts - Session management → Application database: reads and deletes sessions
src/lib/server/services/session.service.ts