Skip to content

Listening metrics/charts #5

@boldandbrad

Description

@boldandbrad

Describe the problem
Users want to see their listening stats and trends over time in a convenient CLI format.

Describe the solution you'd like
Add a spin stats command with subcommands:

  • spin stats top - Top artists/albums/tracks
  • spin stats weekly - Listening summary by week
  • spin stats monthly - Listening summary by month
  • spin stats range - Custom date range

Example:

spin stats top --period month --limit 10
"Top tracks this month:"
  1. Paranoid Android - Radiohead (42 plays)
  2. Comfortably Numb - Pink Floyd (38 plays)

Describe alternatives you've considered
Users can view stats on last.fm's website, but this requires leaving the terminal.

Additional context/considerations

  • Fetch data from last.fm's user.getWeekly*Chart methods
  • Could cache results to reduce API calls
  • May want to store local stats for offline access
  • Consider using bubbletea components for visualizations and charts

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions