# Coda: music listening history [![Build Status](]( [![Hex pm](](

Analytics and visualisation of music listening history 听歌历史.

`coda` currently experimental and works with columnar data extracted by
[lastfm_archive]( See:
[Creating a file archive](

See [on this day ♫](#livebook) analytics Livebook.

## Usage
For now, you can deploy and use the tool in [Livebook]( while
an analytics API and functionality are being refactored and developed.

### Livebook
[On this day ♫]( presents
analytics of music discovered (new) and most played Lastfm scrobbles 
on this day (today) over the years. 
The page also features an interactive [Kino explorer](
to help delving into the data.

[![Run in Livebook](](

![overview on this day](assets/img/livebook_on_this_day_overview.png)

![on this day most played analytics](assets/img/livebook_on_this_day_most_played_analytics.png)

![new on this day analytics](assets/img/livebook_on_this_day_new.png)

## Requirement

This tool requires Elixir and Erlang (see [installation]( details
for various operating systems) or [Livebook](

## Installation

`coda` is [available in Hex](,
the package can be installed by adding `coda`
to your list of dependencies in `mix.exs`:

def deps do
    {:coda, "~> 0.3"}

Documentation can be generated with [ExDoc](
and published on [HexDocs]( Once published, the docs can
be found at [](

## Configuration
Add the following `lastfm_archive` config in `config/config.exs`:

  config :lastfm_archive,
    user: "lastfm_user", # Lastfm user
    data_dir: "./lastfm_data/", # directory containing Lastfm file data,