TRIED to make a word cloud based on this Pure JS word cloud Pen By Stove
BUT it was written with D3 v3 and D3 has changed a lot between v3 and v5!
Check out Fil's D3 cloud example on observable
Here is a Word Cloud Generator from [Jason Davies]