Skip to content

t9nzin/loop

Repository files navigation

loop ∞

preview

Source code for loop: a fun anime tracking and recommendation platform built with Ruby on Rails. Discover, track, and get personalized recommendations for your favorite anime. You can try the live demo here (may take about ~50 seconds to start due to cold starts on Render’s free tier).

Features

  • Personalized Recommendations - AI-powered recommendation engine that learns from your favorites and watchlist
  • My Watchlist - Keep track of anime you want to watch
  • Favorites - Save your favorite anime for quick access
  • Genre-Based Discovery - Browse anime by genre with an intuitive dropdown interface
  • Smart Caching - Recommendations are cached for 24 hours for optimal performance
  • Real-time Updates - Uses Turbo Streams for instant UI updates without page refreshes

Recommendation Engine

loop uses a recommendation algorithm that considers:

  • Genre Matching (35%) - Recommends anime from genres you enjoy
  • Collaborative Filtering (25%) - "Users who liked what you liked also enjoyed..."
  • Rating Score (20%) - Matches anime ratings to your preferences
  • Popularity (20%) - Considers overall anime quality and trends

How Recommendations Update

  1. Event-Driven: When you add/remove favorites or watchlist items, recommendations automatically regenerate
  2. Debounced: To prevent spam, regeneration only triggers if your last update was >1 hour ago
  3. Background Processing: Recommendation generation runs asynchronously via Solid Queue
  4. 24-Hour Cache: Once generated, recommendations are cached for 24 hours
  5. Cold Start: New users see popular anime until they have 2+ favorites/watchlist items

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT License :D

About

anime tracking, discovery, and recommendation platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors