Word cloud plugin for discourse?

I thought this was a fun idea :game_die: … so I created it*

It’s at a very early ‘just working’ stage and needs a lot of refinement and additional options and potentially some click functionality:

https://github.com/merefield/discourse-word-cloud

It adds a link on your Hamburger Menu. :tada:

:warning: be aware that currently it builds the word stats from all Posts, regardless of type and location. This could effectively act as a very-round-the-houses mild privacy leak (might need some additional safeguards to exclude words from posts in private areas). You have to be logged in to see it and access the data though … and the words are rendered as SVG’s … and it only shows the top x hundred words, so unlikely to be much of a concern to most sites. I’ll work on that to make it more secure, but this way the query runs very fast.

Enjoy. :man_dancing:

*It leverages some pretty nifty existing libraries which I’ve credited in the repo. Shout out to @DiscourseMetrics whose query I leveraged.

15 Likes