How hsoj-dev/saypi-blog works
Saypi-Blog is a blogging and social-networking platform for Pisay scholars. Its user-facing journey begins with school-email signup or login, then leads into campus-oriented spaces for sharing posts, discovering activity and people, and managing profiles and settings. The tree also shows dedicated modules for friends, privacy, notifications and upvotes. Sampled auth code verifies signup inputs, rate-limits attempts, delegates authentication to Supabase and creates a database user; the detailed wiring of the unsampled social and content modules cannot be confirmed from the available excerpts.
Main entry points: +layout.svelte App shell · auth.remote.ts Authentication actions · +page.svelte Signup and login · +page.server.ts Email confirmation
Components 25
User experience
- Public pages
src/routes/(public)/+layout.svelte - App shell
src/routes/(app)/+layout.svelte
Identity and access
- Signup and login
src/routes/(auth)/auth/signup/+page.svelte - Authentication actions
src/lib/remote/auth.remote.ts - Email confirmation
src/routes/(auth)/auth/confirm/+page.server.ts - Account settings
src/routes/(app)/settings/+page.svelte - User operations
src/lib/remote/users.remote.ts - User creation
src/lib/helpers/userCreation.ts
Social features
- Campus board
src/routes/(app)/board/+page.svelte - Commons
src/routes/(app)/commons/+page.svelte - Tutor discovery
src/routes/(app)/tutors/+page.svelte - Profile pages
src/routes/(app)/[handle]/+page.svelte - Profile editing
src/routes/(app)/[handle]/edit/+page.svelte - Blog editor
src/lib/components/BlogEditor.svelte - Blog renderer
src/lib/components/BlogRenderer.svelte - Profile operations
src/lib/remote/profiles.remote.ts - Friend operations
src/lib/remote/friends.remote.ts - Upvote operations
src/lib/remote/upvotes.remote.ts - Notifications
src/lib/remote/notifications.remote.ts - Privacy controls
src/lib/remote/infoPrivacy.remote.ts
Data and services
- Rate limiting
src/lib/server/services/rateLimit.ts - Application database
src/lib/server/db/db.ts - Database schema
src/lib/server/db/schema.ts
Other components
- Pisay scholar
- Supabase auth
Connections 16
- Pisay scholar → Public pages: visits
- Pisay scholar → Signup and login: registers or logs in
- Signup and login → Authentication actions: submits credentials
- Authentication actions → Rate limiting: checks attempts
- Authentication actions → Supabase auth: authenticates
- Authentication actions → User creation: creates account
- Authentication actions → Email confirmation: redirects to verification
- Email confirmation → Supabase auth: verifies token
- Pisay scholar → App shell: enters authenticated app
- App shell → Campus board: navigates to
- App shell → Commons: navigates to
- App shell → Tutor discovery: navigates to
- App shell → Profile pages: opens profile
- App shell → Account settings: opens settings
- Profile pages → Profile editing: edits profile
- Authentication actions → Application database: creates user record