· ·
log in

log me in

log in forgot password

don't have an account?

sign up


theme picker site-wide filters

galaxy dev docs

Welcome to the developer documentation! Here you’ll find resources helping you integrate your game into the Galaxy API.


The Galaxy API uses window.postMessage to allow cross-domain communication relatively seamlessly.

receiving data

To listen to data from Galaxy, attach an event listener for the message event to window.

window.addEventListener("message", e => {
	if (e.origin === "") {
		// It's a message from Galaxy!
	} else {
		// It may be an impostor! Probably best to ignore it.
}); will always be an object with the type property as a string. Other properties will only appear based on the value of type.

transmitting data

Use For specific data you should send up, see the other pages.{
	// action: "...",
	// ...
}, "");