{"id":48035842,"url":"https://github.com/shsiddhant/memory.fm","last_synced_at":"2026-04-04T13:59:07.194Z","repository":{"id":323059247,"uuid":"1076044609","full_name":"shsiddhant/memory.fm","owner":"shsiddhant","description":"A Python library, CLI tool, and web-based dashboard for exploring music listening history from Last.fm and Spotify.","archived":false,"fork":false,"pushed_at":"2026-04-01T14:15:59.000Z","size":5921,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-01T16:15:15.572Z","etag":null,"topics":["analytics","data-analysis","data-visualization","memories","music"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shsiddhant.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-14T10:26:35.000Z","updated_at":"2026-03-20T06:58:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/shsiddhant/memory.fm","commit_stats":null,"previous_names":["shsiddhant/memory.fm"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/shsiddhant/memory.fm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shsiddhant%2Fmemory.fm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shsiddhant%2Fmemory.fm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shsiddhant%2Fmemory.fm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shsiddhant%2Fmemory.fm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shsiddhant","download_url":"https://codeload.github.com/shsiddhant/memory.fm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shsiddhant%2Fmemory.fm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31402276,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analytics","data-analysis","data-visualization","memories","music"],"created_at":"2026-04-04T13:59:06.651Z","updated_at":"2026-04-04T13:59:07.178Z","avatar_url":"https://github.com/shsiddhant.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# memory.fm\n\n![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Fshsiddhant%2Fmemory.fm%2Frefs%2Fheads%2Fmain%2Fpyproject.toml\u0026style=for-the-badge\u0026logo=python\u0026logoColor=FFE873\u0026color=4B8BBE)\n[![LICENSE: MIT](https://img.shields.io/badge/LICENSE-MIT-green?style=for-the-badge)](LICENSE)\n[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/shsiddhant/memory.fm/ci.yml?style=for-the-badge\u0026logo=github\u0026label=CI%20Pipeline)](https://github.com/shsiddhant/memory.fm/actions/workflows/ci.yml)\n\n\n**memory.fm** is a Python library, CLI tool, and web-based dashboard for exploring music listening history from Last.fm and Spotify.\n\nInstead of focusing only on aggregate stats, it surfaces long-term and local patterns such as attachment, repetition, and obsessive listening, to help you revisit periods of your life through music.\n\n\u003e*✨Inspired by the idea of using music as a way to revisit memories.✨*\n\n**[🔗 Check out the demo](https://memoryfm-demo.streamlit.app/)** to quickly test the stats and visuals dashboard.\n\n## Features\n\n### Import and Manage Your Listening History\n\n- Import your complete listening history from **Last.fm** and **Spotify**.\n- Fast incremental sync after the first import.\n- Supports JSON/CSV exports from [lastfmstats](https://www.lastfmstats.com).\n\n### Stats and Analytics\n\n**memory.fm** focuses on *how* you listened, not just *what* you listened to.\n\n#### Overview\n\nGet a clean summary of your music listening history.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/shsiddhant/memory.fm/refs/heads/main/screenshots/overview.png\" height=\"600\"\u003e\n\u003c/p\u003e\n\n#### Top Charts\n\n- View your top artists, albums, and tracks.\n- Filter them by weekly, monthly, and yearly periods, or a custom date range.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/shsiddhant/memory.fm/refs/heads/main/screenshots/top_charts.png\" height=\"600\"\u003e\n\u003c/p\u003e\n\n#### Attachment Index\n\n- See how concentrated your listening was during a given period using **Attachment Index**.\n- Find out whether you were deeply attached to a few tracks, albums, or artists, or broadly exploring.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/shsiddhant/memory.fm/refs/heads/main/screenshots/attachment_index.png\" height=\"600\"\u003e\n\u003c/p\u003e\n\n#### Streaks\n\n- Detect periods of intense, repeated listening to a single artist, album, or track. Streaks often correspond to emotionally significant moments or phases.\n\n- With **Streaks Timeline**, you can view an interactive, color-coded timeline of your listening streaks. \n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/shsiddhant/memory.fm/refs/heads/main/screenshots/streaks.png\" height=\"600\"\u003e\n\u003c/p\u003e\n\n\n### Interface\n\nYou have two UI options:\n- **Graphical Dashboard:** A user-friendly graphical dashboard that runs inside your web browser.\n- **CLI:** A command line tool with more granular control for power users.\n\n## Installation\n\nYou can install the package from PyPI.\n\n```shell\npip install memory.fm\n```\n\nRequires **Python\u003e=3.10**\n\n## Quick Start\n\n### Dashboard (Recommended for First-Time Users)\n\nLaunch the interactive web dashboard:\n```bash\nmemoryfm-gui\n```\n\nThis opens a browser interface at `http://localhost:8501` where you can:\n- Import your listening history from Last.fm or Spotify\n- Explore visualizations and analytics\n- View your attachment patterns and listening streaks\n\n### Command Line Interface\n\nFor power users, the CLI offers more granular control:\n```bash\n# Import data from Last.fm\nmemoryfm import last.fm \u003cyour_username\u003e\n\n# Import from Spotify export\nmemoryfm import spotify path/to/my_spotify_data.zip --username \u003cuse_any_username\u003e\n\n# Load your import\nmemoryfm load \u003cyour_username\u003e\n\n# View top artists for the last month\nmemoryfm top artists --last month\n\n```\n\nSee the [CLI documentation](https://memoryfm.readthedocs.io/en/stable/quickstart/cli_usage.html) for all available commands.\n\n### Python Library\n\nUse memory.fm programmatically in your own projects:\n```python\nimport memoryfm as mfm\n\n# Load your listening history\nsclog = mfm.from_lastfm_api(username=\"your_username\",\n                            tz=\"Asia/Kolkata\")\n\n# Filter by dates\nfiltered_sclog = sclog.filter_by_date(\"2025-09-12 10 PM\", end=\"2025-09-13 10:40 AM\")\n\n# Calculate attachment index of order alpha\nattachment = mfm.attachment(sclog, by=\"album\", year=2024, alpha=2)\n```\n\nSee the [API documentation](https://memoryfm.readthedocs.io/en/stable/references/index.html#api) for more examples.\n\n## Documentation\n\nFull documentation is available at: https://memoryfm.readthedocs.io\n\n\n## Roadmap\n\n- [x] Support for loading Spotify listening history exports\n- [x] CLI commands for loading, printing, exporting, filters, top charts, etc.\n- [x] API support for Last.fm\n- [x] Attachment Index\n- [x] Streaks and Streaks Timeline\n- [ ] Time of Day / Season based analysis\n- [ ] Memory Attachments and Timeline integration\n- [ ] Spotify wrapped but make it nerdier\n- [ ] Export options for data, visuals, and memory attachments\n- [ ] Apple Music support\n\nCheck the [issue tracker](https://github.com/shsiddhant/memory.fm/issues) for more details.\n\n## Contributing\n\nContributions are welcome - whether you’d like to fix a bug, suggest an improvement, or propose new ideas for **memory.fm**.\n\nIf you find a bug or have a feature request, please open an issue using the appropriate template in the [issue tracker](https://github.com/shsiddhant/memory.fm/issues).\n\nFor detailed guidelines on contributing and development setup, see [CONTRIBUTING.md](CONTRIBUTING.md).\n\n\n## License\nThis project is licensed under the [MIT License](LICENSE).\n\n\n## Acknowledgements\n\nThanks to Felix Hagemans ([felhag](https://github.com/felhag)) for creating [lastfmstats](https://www.lastfmstats.com), which inspired parts of this\nproject.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshsiddhant%2Fmemory.fm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshsiddhant%2Fmemory.fm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshsiddhant%2Fmemory.fm/lists"}