Skip to Content
Documentation

Build your own

Start an extension in one command, try it on your own server, and share it.

This page is the short version. The whole guide is Build extensions: the manifest field by field, every hook, provider and component, the host API, the command line, testing, publishing, and the API reference.

Start one

Terminal
npm create songstress-extension@latest

It makes a working extension to build on. The songstress package it uses gives you:

  • the APIs for your extension's server code and its parts in the apps;
  • a checker for your extension's manifest, and a pretend Songstress to test against;
  • helpers for themes.

Your extension's server code runs in a sandbox on the server, with up to 64 MiB of memory and 30 seconds for each call.

Try it on your server

Terminal
SONGSTRESS_PASSWORD='your password' npx songstress dev --server http://music.local:8090 --email you@example.com

songstress dev installs your extension on your own server, for you alone, and puts each change there as you make it.

Check, build and pack

  • songstress check checks it the way Songstress will before it runs. songstress check --profile listing says what a listing in the directory still needs.
  • songstress build builds it.
  • songstress pack makes the .songstress file people can install.

Share it

People can install it straight from your GitHub repository, or from its .songstress file. To list it in the directory everyone sees, read the guidelines and submit it.

On this page