Allow creating a server widget to embed on a website (Discord feature)

(#1055) Feature Under consideration api community

Problem

I wanted to create a GitHub badge similar to the one I have for Discord:
https://discordapp.com/api/guilds/133049272517001216/widget.png?style=shield
image However, Fluxer does not have a server widgets functionality.

Proposed solution

I'd like Fluxer to have a server widgets functionality, ideally with the same functions as on Discord, i.e. with different style options - shield + a few banner ones: https://docs.discord.com/developers/resources/guild#get-guild-widget + the dynamic iframe one Here's the setting for it on Discord: image
  • 556582108-61494f00-9768-4b65-928f-f4e1ac100895.png

    556582108-61494f00-9768-4b65-928f-f4e1ac100895.png

    1310×1061 | 161 kB

1 comment

Sign in with Fluxer to comment and vote.
Comment by @noxied
RexSystem 1 vote originally by @noxied on GitHub
+1, this would be really useful. Building on the original idea, a few things that would make it much more powerful:
  • Live online/member counts on the widget (like Discord's), not just a static badge, so it actually shows the community is active.
  • A Join button that opens an instant invite straight from the widget.
  • Please make it work on self-hosted instances too: embed served from the instance's own origin (e.g. https://<instance>/widget/<guild_id>), opt-in per guild in Server Settings, off by default for privacy.
  • A JSON endpoint alongside the iframe (e.g. /api/v1/guilds/<guild_id>/widget.json returning name, icon, presence/member counts and an instant invite) so people can build custom widgets, with CORS so external frontends can fetch it.
Use case: I run a community on a self-hosted instance plus a separate public website, and I want a live "our community" / partner card there. Right now I fake it with a static banner and an invite link, but a live widget (counts + join) would convert far better and feel first-class. The shield + banner style options suggested here would be great too. (Hampus mentioned in Fluxer Labs that it's not on the current roadmap but could be considered if there's a discussion, so leaving this here to add support.)