mirror of
https://git.maid.zone/stuff/soundcloak.git
synced 2025-12-10 13:49:39 +05:00
d3bf719dba44b113a8f8b5cf7cfeb38ae61c8a94
soundcloak
wip alternative frontend for soundcloud
official public instance
there is no image and audio proxy for now so beware
Setting it up
Prerequisites:
- node.js + npm (any recent enough version should do, it's just used for getting hls.js builds)
- golang (1.21 or higher was tested, others might work too)
- git
Setup:
- Clone this repository:
git clone https://github.com/maid-zone/soundcloak
- Go into the cloned repository:
cd soundcloak
- Download hls.js:
npm i
- Download templ:
go install github.com/a-h/templ/cmd/templ@latest
- Download other required go modules:
go get
-
Optional. Edit config: You can change some values in
lib/cfg/init.goif you want. Keep in mind that you need to rebuild the binary each time you want to update the config. -
Generate code from templates & build binary:
You might need to add go binaries to your PATH (add this line to your .bashrc / .zshrc / whatever)
export PATH=${PATH}:`go env GOPATH`/bin
templ generate && go build main.go
- Run the binary:
./main
This will run soundcloak on localhost, port 4664. (by default)
Languages
Go
74.2%
templ
20.7%
JavaScript
2.5%
CSS
1.9%
Dockerfile
0.7%