MODSERVER

Hello, this is DanielFox16bit. Welcome to MODSERVER, the only web program written in 2026 (so far) that doesn't use AI nor required AI during its making. I believe.

What this is

This just has lots of music modules sourced from ModArchive, specifically its torrents. And there's an endpoint that points you to a random module. Note that all modules come in .zip files, each file has exactly one module file. Use PKUNZIP or unzip or whatever unzipper works best for you.

How do I use it?

If you just intend to download files with your browser, head straight to trackers/ and navigate there yourself.

You can also play a random music file directly from your browser by clicking here

Now, if you want to be able to find random music files and keep those you want, there's a better method. Only for Linux, because I forgot how to write batch scripts for Windows.

Instructions

First, install curl, wget, unzip, xmp and bash, these are all dependencies for the following script you will download from here. Install them as per the recommended instructions in your distro.

Then, make a new, reserved directory for this program and the module files you will be downloading. Specifically, make a new directory like trackers/ or Music/trackers/ in your home directory.

Inside that directory, whatever it is, make another directory where the actual script will be, such as gettrackers/ or getmusic/ or whatever you find convenient, the program doesn't care about how you call them or where in the system you put them. All it wants is that your music is on a directory, and the program itself in a directory inside of that directory with your music.

Now, if you hadn't already, open a new terminal on that inner directory or "move yourself" using cd to that directory using your terminal because we are about to download the script. Now, download the script using the following command:

wget https://applets.danielthefox.com/modserver/gettracker.sh

Consider reviewing the script file yourself, it is important that you do not blindly run scripts from strangers on your system, and I am a stranger to you. Most scripts are highly convenient, but do not let this blind you from the security implications of running foreign executables on your personal computer.

Now, give the script execution privileges (up to this point it was an inert text file) using the following command:

chmod +x gettracker.sh

It is very important that you have, by this point, obtained the dependencies, which are curl, wget, unzip, xmp and bash. If you use another shell like sh or zsh, you still need bash because that's what the script was written for. Not doing so will make the program make very cryptic error messages, no error handling was coded for the case of them not existing.

Finally, run the script using ./gettracker.sh from a terminal window, the same one you ran the last two commands on, on the same directory where your executable is. The first thing the program will do is to obtain the file path and size of a random mod file. Press one key, D for Download, N for Next, or E for Exit (leaving the program) to continue. If you choose Next, the program will fetch the path for another mod file and prompt you again.

If you chose Download, the module file will be downloaded into your computer. If you are on a limited data plan that charges you per kilobyte or megabyte, this step will likely cost you money. Most people nowadays have regular broadband without caps or with huge ones so this step is for all intents and purposes, free. At this point the mod file will be played by xmp, this is your chance to review the song to see if you like it. You have full control over what xmp does, so if you know the controls, or you want to learn them, analyze the file in whatever way you want.

When the end of the file is reached (or if you cause xmp to end/close), you will be prompted again to choose if you want to keep the file or not. Press one key, Y for Yes (keeping the file), N for No (do not keep the file you just listened), A for Play Again (if you want to hear it once more), E for Exit (leaving the program altogether, and deleting the file in the process. If you do keep the file, it will be moved to the directory above your current one, and the best part is that it will not be compressed as a .zip by that point. Otherwise, the file is deleted from your computer, you just said you didn't want it.

This will accumulate lots of module files on a single directory, and this is intended. Once you're done curating your collection, you will be able to head to the directory where your files are, and then run the following command:

xmp ./*.*

to hear all files. XMP supports many switches, including shuffling the playlist, take your time to understand xmp if you don't already to get the most of it.

Regardless of whether you kept the current file or not, the program will start all over by prompting you to download a file or not, read the filename and size and decide if you want to hear it or not. To leave the program, you can always press E when prompted to do so.

Tweaking the program

You can open the script using a plaintext editor (like nano, or vim, or emacs, or whatever you want) to alter the script if you want to. You can, for example, change the mod file size limit so the program never even prompts you to download files larger than your desired size. Note that only the compressed size of the .zip file as stored on the server is considered during this check, as this function is largely intended to reduce downloading times on very slow connections or the cost of data transfer if you're billed by volume.

Or you can manually change the URLs from http to https if you're willing to trust my Let's Encrypt setup to not break for whatever reason in the future. If you use http, data usage will be slightly reduced and you will avoid a dependency on whether I set the HTTPS certificate correctly or not.

Are we done yet?

Yes, there's not much else to say.

Made by DanielFox16bit, during April 2026.