The Homestuck Music Wiki - static wiki software cataloguing collaborative creation

(quasar) nebula 0d0d38ce51 new Albums - by Date Added to Wiki listing 5 days ago
common ddca239668 info card thumbnail & image link/color niceness 1 week ago
static be920c1086 hide info cards behind localStorage flag for now 1 week ago
.gitignore 33d67ffc4f so far so good 5 months ago
LICENSE.txt 3418e18492 Initial commit 1 year ago 2b6e7d3d99 initial staging commit (data/media pruned) 2 months ago
gen-thumbs.js 10e9059c50 thumbnail support! 1 month ago
package-lock.json d0d324f34a rework 90% all upd8 code to support localization 1 month ago
package.json d0d324f34a rework 90% all upd8 code to support localization 1 month ago 8a7cb1edff okay so like, hear me out here 3 months ago
strings-default.json 0d0d38ce51 new Albums - by Date Added to Wiki listing 5 days ago
upd8-util.js 0d0d38ce51 new Albums - by Date Added to Wiki listing 5 days ago
upd8.js 0d0d38ce51 new Albums - by Date Added to Wiki listing 5 days ago


HSMusic, short for the Homestuck Music Wiki, is a revitalization and reimagining of earlier projects archiving and celebrating the expansive history of Homestuck official and fan music. Roughly periodic releases of the website are released at; all development occurs in this public Git repository, which can be accessed at

Project Structure

Disclaimer: most of the code here sucks. It's been shambled together over the course of over a year, and while we're fairly confident it's all at minimum functional, we can't guarantee the same about its understandability! Still, for the official release of, we've done our best to put together a codebase which is somewhat navigable. The description below summarizes it:

  • upd8.js: "Build" code for the site. Everything specific to generating the structure and HTML content of the website is conatined in this file. As expected, it's pretty massive.
  • static: Static code and supporting files. Everything here is wholly client-side and referenced by the generated HTML files.
  • common: Code which is depended upon by both client- and server-side code. For the most part, this is constants such as directory paths, though there are a few handy algorithms here too.
  • In the not quite so far past, we used to have data and media folders too. Today, for portability and convenience in project structure, those are saved in separate repositories, and you can pass hsmusic paths to them through the --data and --media options, or the HSMUSIC_DATA and HSMUSIC_MEDIA environment variables.
    • Data directory: The majority of data files belonging to the wiki are here. If you were to, say, create a fork of hsmusic for some other music archival project, you'd want to change the files here. Data files are all a custom text format designed to be easy to edit, process, and maintain; they should be self-descriptive.
    • Media directory: Images and other static files referenced by generated and static content across the site. Many of the files here are cover art, and their names match the automatically generated "kebab case" identifiers for tracks and albums (or a manually overridden one).
  • Same for the output root: previously it was in a site folder; today, use --out or HSMUSIC_OUT!

The code process for upd8.js was politely introduced by 2019!us back when we were beginning the site, and it's essentially the same structure followed today. In summary:

  1. Locate and read data files, processing them into relatively usable JS object-style formats. (The formats themselves are hard-coded and somewhat arbitrary, and are often extended when more or different data is useful.)
  2. Validate the data and show any errors that might've been caught during processing. (These aren't exhaustive test cases; they're designed to catch a majority of common errors and typos.)
  3. Create symlinks for static files and generate the basic directory structure for the site.
  4. Generate and write HTML files containing all content. (Rather than use external templates and a complex build system, we just use template strings in combination with a whitespace utility and some handy tricks for manipulating strings and JS.)

The majority of the code volume is generated HTML content and supporting utility functions; while we've attempted to keep the update file more or less organized, the most reliable way to navigate is to just ctrl-F for the function definitions of whatever you intend to work on. Code order isn't super strict since everything is handled by separate function calls (which all branch off of the "main" function at the end of the file).

In the past, data, HTML, and media files were all interspersed with each other. Yea, even the generated HTML files were included as part of the repository; their diffs, part of every commit. Those were dark times indeed.


hsmusic is a relatively generic music wiki software, so you're more than encouraged to create a fork for your own archival or cataloguing purposes! You're encouraged to drop us a link if you do - we'd love to hear from you.

Still, at present moment, a fair bit of the wiki design is baked into the update code itself - any configuration (such as getting rid of the "flashes & games") section will have you digging into the code yourself. In the future, we'd love to make the wiki software more customizable from a forking perspective, but we haven't gotten to it yet. Let us know if this is something you're interested in - we'd love to chat about what additions or changes would be useful in making a more versatile generic music wiki software!

Pull Requests

As mentioned, part of the focus of the release was to create a more modular and develop-able repository. So, on the curious chance anyone would like to contribute code to the repo, such is certainly capable now!

Still, for larger additions, I'd encourage you to throw an email or contact (links here) before writing all the implementation code: besides code tips which might make your life a bit easier (questions are welcome), I'd also love to discuss feature designs and values while they're still being brainstormed! That way, I don't need to tell you there are fundamental ideas or code details I'd want rebuilt - the last thing I want is anyone putting hours into code which could have been avoided being poured down the drain!

As ever, feedback is always welcome, and may be shared via the usual links. Thank you for checking the repository out!