Discourse MusicBrainz Onebox

You might have noticed that if you link to a release, artist or other entity on MusicBrainz.org in a forum post, that this links gets displayed as a small info box with more details instead of just the link. Discourse, the forum software used here in MB community, calls these “oneboxes”. Discourse creates these oneboxes whenever you place a supported URL on its own in a single line.

Discourse itself already provides oneboxes for many external sites. For MusicBrainz I had created the Discourse MusicBrainz Onebox plugin, which uses the MusicBrainz web service to query and display additional details about pasted links.

This has been around since shortly after the MB community forums started, but I had recently updated it to support more entities and provide images for more of the data. So I thought it might be a good idea to give you a short tour over the plugin.

The plugin itself is of course open source and the code is available on Github. Please report any issues you find or suggestions on improvement on the issue tracker. But please keep in mind that the plugin can only show what is available with the MusicBrainz web service.

And if you maintain another music related Discourse forum you can of course also install this plugin there.

Let me show you some of the oneboxes the plugin generates:

Artists

https://musicbrainz.org/artist/65f4f0c5-ef9e-490c-aee3-909e7ae6b2ab

https://musicbrainz.org/artist/f27ec8db-af05-4f36-916e-3d57f91ecf5e

Release Groups

https://musicbrainz.org/release-group/67d77bb6-f766-427b-b4f5-86d4bf97b031

Releases

https://musicbrainz.org/release/cfffccee-5d4c-4822-97b7-a99f33a4aa86

https://musicbrainz.org/release/fd93fc3f-128c-40d6-979b-60bcca8db05c

Recordings

https://musicbrainz.org/recording/51d82245-53de-4f1a-864b-ca1960692ac3

Disc IDs

https://musicbrainz.org/cdtoc/9G.vPL1kn2PQzejpApeIKzesjcQ-

7 Likes

Labels

https://musicbrainz.org/label/727ad90b-7ef4-48d2-8f16-c34016544822

Instruments

https://musicbrainz.org/instrument/12092505-6ee1-46af-a15a-b5b468b6b155

https://musicbrainz.org/instrument/43f378cf-b099-46da-8ec3-a39b6f5e5258

Series

https://musicbrainz.org/series/d977f7fd-96c9-4e3e-83b5-eb484a9e6582

Works

https://musicbrainz.org/work/2836de8c-4af8-3568-b4bc-4d6b3f3ac764

https://musicbrainz.org/work/282b07a7-3311-4c26-9f41-0bb7dce3417c

Areas

https://musicbrainz.org/area/904768d0-61ca-3c40-93ac-93adc36fef4b

https://musicbrainz.org/area/0a65a727-7465-4e6c-8b15-ed4d09e021ee

Collections

https://musicbrainz.org/collection/32843d79-2a6d-484d-9172-85ac28116561/details

5 Likes

Are collection links supposed to show a onebox? works now​:+1:
https://musicbrainz.org/collection/3b9af51a-3740-4e71-8cfa-a9f578bc54ac

1 Like

Not yet here, but I had just added collection oneboxes after reading @UltimateRiff’s Brony post :wink: The plugin will eventually get updated here the next time @freso or @zas do update the forum.

Info on collection’s provided via the API is pretty limited though. So not much magic to show.

4 Likes

I just applied the onebox upgrade (to 824534deaf).

5 Likes