1. Write the plugin
Start from the template in the DashHub repository and follow the plugin guide. The API reference lists everything a plugin can use. While you work on it, keep the folder in DashHub's extensions folder and restart DashHub after each change to the Python code.
2. Put it in a public repository
Use GitHub or GitLab. The root of the repository is the plugin folder itself:
my_extension/ the repository
plugin.py required
dashhub.json required
locales/en.json required
locales/fr.json
widget.js
widget.css
README.mdThe folder name on people's PCs is the name you pick here, so the plugin's id, the name in dashhub.json and the name on this site are the same word: lowercase letters, digits and _, starting with a letter.
3. Add dashhub.json
{
"id": "my_extension",
"dashhub": "0.2.3"
}dashhub is the DashHub version you built and tested the extension with. When a later DashHub version changes the extension API, the site uses this field to warn people who are about to install a version that won't run on their DashHub, and points them at the version that will. Update it whenever you test with a new DashHub.
4. Push a tag for each version
Versions come from Git tags. A tag becomes a version on this site when:
- its name looks like a version number:
v1.0.0,1.2.3orv2.0.0-beta.1, - the tagged commit has a
dashhub.jsonat the root, with the rightidand a DashHub version indashhub.
git tag v1.0.0
git push origin v1.0.0Release notes are optional. Create a release for the tag on GitHub or GitLab, and its text appears under that version, in Markdown. Tags that don't qualify are listed on your extension page with the reason, so you can fix them. Deleting a tag removes the version.
The site checks every repository about every 30 minutes. Right after you push, press Check for new versions on your extension page.
5. Submit it once
Sign in with GitHub or Discord, then fill in the submission form: the name, a title, one sentence that says what it does, a longer description in Markdown, a logo, pictures and a YouTube video. Upload the logo and pictures from your computer or paste links to them. A square logo of at least 256 pixels looks best. If it needs another extension (a library, for example) or an app such as OBS, add them under Dependencies with a link, so people know what to install first. The form checks that the latest tag is valid before it lets you send.
A moderator then looks at the first submission. If something needs fixing, they ask for changes and you'll find their message on the extension's edit page. Reply there, fix what they asked, then save to send it back for review. Once it's published, new tags appear on their own without another review. You can edit the text, pictures and video at any time, unless a moderator has locked the listing.
What the review looks at
- The extension does what the description says.
- It doesn't send data anywhere the description doesn't mention.
- It doesn't download and run code from elsewhere at run time.
- The text and pictures follow the terms of use.
A review is a reasonable look at the code, not a security audit. Extensions run on people's PCs with the same rights as DashHub, so write them the way you'd want someone else's code to run on yours.
How people install it
The Install button on your page opens DashHub through a dashhub://install/my_extension link. DashHub shows what it's about to install, warns when the latest version doesn't fit the DashHub they run, and downloads the tag as a zip from GitHub or GitLab. People can also type the name in the editor under Extensions, Get from the marketplace, or download the zip from your page.
The DashHub app and other tools can read the catalog as JSON at /api/v1/extensions and /api/v1/extensions/my_extension.