How sofidascanio/repaso works
Repaso is a flashcard study platform. Users authenticate, organize material through workspaces, projects, and collections, then study cards and record reviews; the API calculates spaced-repetition schedules and supports progress, search, profile, and import/export features. The web client and NestJS API communicate over HTTP/REST, with Prisma and PostgreSQL behind the API. Edges between sampled controllers and services are visible in excerpts; broader feature flows and persistence links rely on README documentation, so they are shown only at that documented level.
Main entry points: lib API clients · prisma.service.ts PostgreSQL · review.service.ts Review scheduling · app Next.js app
Components 19
Web experience
- Next.js app
web/src/app - Login and register
web/src/app/(auth) - Library navigation
web/src/app/(protected)/library - Study mode
web/src/app/(protected)/study/[collectionId]/page.tsx - API clients
web/src/lib - Offline PWA
web/public/swe-worker-5c72df51bb1f6ee0.js
API services
- Authentication
api/src/auth/auth.service.ts - Global search
api/src/search/search.service.ts - Import and export
api/src/import-export/import-export.service.ts - Profile management
api/src/profile/profile.service.ts
Study and progress
- Review scheduling
api/src/review/review.service.ts - SM-2 algorithm
api/src/review/sm2.service.ts - Progress statistics
api/src/stats/stats.service.ts
Learning content
- Workspaces
api/src/workspace - Projects
api/src/project/project.service.ts - Collections
api/src/collection/collection.service.ts - Flashcards
api/src/flashcard/flashcard.service.ts
Persistence
- PostgreSQL
api/src/prisma/prisma.service.ts
Other components
- Learner
Connections 28
- Learner → Next.js app: uses
- Next.js app → Login and register: offers sign-in
- Next.js app → Library navigation: navigates content
web/src/app/(protected)/library/page.tsx - Library navigation → Study mode: opens study
- Login and register → API clients: requests auth
- Study mode → API clients: submits reviews
web/src/lib/reviews.ts - API clients → Authentication: HTTP/REST
- API clients → Workspaces: HTTP/REST
- API clients → Projects: HTTP/REST
- API clients → Collections: HTTP/REST
- API clients → Flashcards: HTTP/REST
- API clients → Review scheduling: HTTP/REST
web/src/lib/reviews.ts - API clients → Progress statistics: HTTP/REST
- API clients → Global search: HTTP/REST
- API clients → Import and export: HTTP/REST
- API clients → Profile management: HTTP/REST
- Review scheduling → SM-2 algorithm: calculates schedule
api/src/review/review.service.ts - Review scheduling → Flashcards: checks ownership
api/src/review/review.service.ts - Review scheduling → Collections: validates collection
api/src/review/review.service.ts - Collections → PostgreSQL: persists content
- Flashcards → PostgreSQL: persists cards
- Review scheduling → PostgreSQL: stores review logs
api/src/review/review.service.ts - Authentication → PostgreSQL: stores credentials
api/src/auth/auth.service.ts - Progress statistics → PostgreSQL: reads progress
- Global search → PostgreSQL: searches content
- Import and export → PostgreSQL: transfers cards
- Profile management → PostgreSQL: updates account
- Next.js app → Offline PWA: supports offline