How thegeekyb0y/dsbored121 works
Project type and purpose
• This is a full-stack web application built with Next.js 13 (app directory), React, TypeScript, Prisma, and Pusher.
• Purpose: “Kraked: Study Together” enables users to create/join study rooms, track study sessions in real time, view stats, and collaborate.
File structure
• app/api – Serverless (Next.js) route handlers for authentication (NextAuth), room management, session lifecycle (start, pause, resume, stop, stats), and real-time test endpoints.
• app/components – React UI components (timers, charts, selectors, layouts).
• app/hooks – Custom React hooks (usePusher, useStopwatch, useTimer) for client-side state and real-time events.
• app/lib – Shared libraries: Prisma client initialization, Pusher setup, authentication utilities.
• prisma – Database schema (Prisma) and migration scripts for sessions, rooms, active/pause state.
• public – Static assets (study material docs).
• next.config.ts, tsconfig.json, postcss.config.mjs – Build and configuration files.
• components/ui – Standalone UI primitives (card, chart).
• lib/utils.ts and types/next-auth.d.ts – Utility functions and type definitions.
README for additional insights
• Confirms the “Study Together” use case with a live deployment link.