Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including galaxygen with all npm packages installed. Try it out:

galaxygen lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("galaxygen/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

galaxygen v2.0.0

A galaxy generator based on


galaxygen in urxvt

Note: I just updated the main code to a newer version, I also refactored most of the code to ES6 standards.

A quite complex galaxy generater based on the work seen here. I'm currently making a game that needed a generated galaxy, so I thought that someone else could maybe use this tool as well.

Have fun!

Install :

npm i galaxygen -g

Usage :

  galaxygen [OPTIONS] [ARGS]

  -s, --seed STRING      The seed you want to generate with. (defaults to '1234')
  -a, --amount NUMBER    The amount of stars you want to generate. (defaults to 1000)
  -o, --output STRING    The output file (if enabled). (defaults to printing JSON to stdout)
  -h, --help             Display help and usage details


If you want to add something to the project or add other factors to this generator, feel free to either create an issue or to clone the repository and submit a pull request!

All help is welcome!


The original work of this galaxy generator can be found at


Check out the LICENSE file for more information.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free