# everythingisunavailable/sentune architecture

> Architecture diagram of the GitHub repository everythingisunavailable/sentune, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-03-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/everythingisunavailable/sentune
- Repository: https://github.com/everythingisunavailable/sentune

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Global entities
    User("User")

    %% Frontend subgraph
    subgraph Frontend
        UI["User Interface"]:::frontend
        Search["Search Functionality"]:::frontend
        Animations["Background Animations"]:::frontend
        Anim1["animations.js"]:::frontend
        Anim2["background.js"]:::frontend
        Styling["Styling"]:::frontend
        Resources["Resources"]:::frontend
    end

    %% Backend subgraph
    subgraph Backend
        SongAPI["Backend API for Song Retrieval"]:::backend
        Auth["API Authentication"]:::backend
        Session["Session Configuration"]:::backend
    end

    %% External services
    Spotify["Spotify Web API"]:::external

    %% Connections
    User -->|"Uses"| UI
    UI -->|"Sends Search Request"| Search
    UI -->|"Manages"| Animations
    UI -->|"Applies"| Styling
    UI -->|"Accesses"| Resources

    Animations -->|"Uses"| Anim1
    Animations -->|"Uses"| Anim2

    Search -->|"Sends Request"| SongAPI
    SongAPI -->|"Authenticates"| Auth
    SongAPI -->|"Fetches Data"| Spotify
    Spotify -->|"Returns Data"| SongAPI
    SongAPI -->|"Returns Data"| Search
    Search -->|"Displays Results"| UI

    %% Click Events
    click UI "https://github.com/everythingisunavailable/sentune/blob/main/index.html"
    click Anim1 "https://github.com/everythingisunavailable/sentune/blob/main/public/animations.js"
    click Anim2 "https://github.com/everythingisunavailable/sentune/blob/main/public/background.js"
    click Search "https://github.com/everythingisunavailable/sentune/blob/main/public/search_handler.js"
    click Styling "https://github.com/everythingisunavailable/sentune/blob/main/public/style.css"
    click Resources "https://github.com/everythingisunavailable/sentune/tree/main/public/res/"
    click SongAPI "https://github.com/everythingisunavailable/sentune/blob/main/server/get_song.php"
    click Auth "https://github.com/everythingisunavailable/sentune/blob/main/server/get_token.php"
    click Session "https://github.com/everythingisunavailable/sentune/blob/main/server/session_config.inc.php"

    %% Styles
    classDef frontend fill:#add8e6, stroke:#000, color:#000
    classDef backend fill:#90ee90, stroke:#000, color:#000
    classDef external fill:#ffa500, stroke:#000, color:#000

    class UI,Search,Animations,Anim1,Anim2,Styling,Resources frontend
    class SongAPI,Auth,Session backend
    class Spotify external
```
