PulseRoots is an interactive visualization of the evolution of electronic music. It presents the complex web of genres and subgenres as a hierarchical tree, allowing users to explore the history, characteristics, and sounds of electronic music through an intuitive interface.
Live Demo: https://mendiak.github.io/pulse.roots/
| Light mode | Dark mode |
|---|---|
![]() |
![]() |
- Interactive Visualization: Choose between Tree, Radial, and Timeline layouts powered by D3.js.
- Deep Historical Context: Detailed descriptions and Wikipedia links for hundreds of genres.
- Curated Listening: Sample tracks via integrated Spotify embeds for every style.
- Music History Timeline: Explore 107 key milestones in electronic music history (1897–2024) — 47 events include external links to Wikipedia, official sites, and festival pages.
- Search & Discover: Find specific genres or use the "Shuffle" feature for random discovery.
- Responsive Design: Fully optimized for both desktop (interactive map) and mobile (accordion navigation).
- SEO Optimized: Automatic sitemap generation, per-genre pages, JSON-LD structured data.
- Multi-language: English and Spanish with Astro i18n.
- Framework: Astro (static site generation)
- Frontend: HTML5, CSS3, JavaScript (ES6+), D3.js (v6), Bootstrap Icons.
- Data & Tools: Spotify Embed API (public iframes), Web3Forms (contact form).
- Deployment: GitHub Pages via GitHub Actions.
-
Clone the repository:
git clone https://github.com/Mendiak/pulse.roots.git cd pulse.roots -
Install dependencies:
npm install
-
Run development server:
npm run dev
-
Build for production:
npm run build
-
Preview production build:
npm run preview
The built site is output to dist/ and is ready for deployment.
The project's heart is public/data/pulseroots.genres.json. It follows a recursive tree structure:
{
"style": "Genre Name",
"description": "Historical and sonic description...",
"example": "Artist - Track Name",
"spotify_track_id": "Spotify_ID",
"wikipedia_url": "https://en.wikipedia.org/...",
"key_artists": [
{ "name": "Artist Name", "url": "Spotify_Artist_URL" }
],
"substyles": [
/* Recursive substyle objects */
]
}Translations are stored in public/data/i18n/ (en.json, es.json) with ~188 keys each, loaded at runtime by the client-side i18n module.
The project also includes public/data/music_history.json, a linear array of historical milestones used by the interactive timeline:
{
"date": "1994",
"fact": "The first Sónar festival takes place in Barcelona...",
"url": "https://sonar.es"
}date(string): Year of the event.fact(string): Description of the milestone.url(string, optional): External link to Wikipedia, official site, or related content.
New genres are researched in staging/ before they touch the published tree. The source of truth is staging/genre-candidates.json; the rules for admitting and placing a genre live in staging/TAXONOMY.md.
- Open the panel: double-click
Abrir panel de generos.bat, or runnpm run studio. It serves a local editor athttp://127.0.0.1:4310and opens the browser. - What it does: paste Spotify track and artist links (IDs are extracted automatically), preview the track, record the placement verdict, parent, rationale and sources, and autosave everything to the staging JSON. Eliminar removes a ficha from the staging file only; the published tree is never touched.
- What it does not do: it never edits
public/data/unless you press Publicar, and it is not part of the build or the deployed site. The launcher, server and UI live inscripts/andstaging/, outsidepublic/.
Publication is explicit: a candidate must be marked ready and have both descriptions written. The merge inserts the node into the English and Spanish trees, refuses duplicate siblings, and appends a line to staging/published.log.
pulse.roots/
├── src/
│ ├── js/ # Client-side ES6 modules (main.js, tree.js, panel.js, search.js, etc.)
│ ├── utils/ # Build-time Node.js scripts (genres-data.js, genreTree.js)
│ ├── components/ # Astro UI components (Header.astro, Footer.astro)
│ ├── islands/ # Astro interactive islands (CookieConsent.astro)
│ ├── layouts/ # BaseLayout.astro
│ ├── pages/ # Routes (index, contact, privacy, thanks, sitemap, genres/[...slug])
│ │ └── es/ # Spanish page overrides
│ └── styles/ # Modular CSS (variables, base, header, panel, footer, responsive, etc.)
├── public/
│ ├── data/
│ │ ├── i18n/ # Translation JSON files (en.json, es.json)
│ │ ├── pulseroots.genres.json # The database of genres
│ │ ├── pulseroots.genres.es.json
│ │ ├── music_history.json # Historical music facts
│ │ └── music_history.es.json
│ ├── assets/ # Images, icons, branding
│ ├── robots.txt
│ └── .nojekyll
├── docs/
│ └── screenshots/ # README screenshots (light and dark mode)
├── dist/ # Production build output (generated)
├── scripts/ # Legacy translation utilities
├── .env # Local environment variables (gitignored)
├── .env.example # Environment variable template
├── astro.config.mjs # Astro configuration
├── tsconfig.json
└── package.json
Contributions are welcome! Whether it's correcting a genre description, adding new substyles, or improving the visualization logic:
- Fork the repo.
- Create your feature branch.
- Submit a Pull Request.
The source code is available under the MIT License.
The editorial content — the genre dataset, the historical chronology, the written guides and their translations — is licensed separately under CC BY-NC 4.0: you may reuse it with attribution and a link back, but not commercially.
Third-party assets (fonts, icons, logo) keep their own licences. See NOTICE for the full breakdown.
PulseRoots - Explore the roots, discover the sound.

