Planets.js is a simple library built on Three.js that creates procedural and texture-based Planets.
Download the minified build at libs/planets.min.js and include it as a script tag in a web page. You must include three.js as well, and planets.js must be included after.
<script src='three.js'></script>
<script src='planets.min.js'></script>
You can use the interactive planet builder tool to see the attributes' effects on a planet in real time.
Alternatively, you can see demos in the examples directory
You can find the docs here.