Create Geometry Dash levels in JavaScript with G.js, using syntax similar to SPWN.

github.com/g-js-api/G.js
G.js homepage screenshot

About G.js

G.js is a GitHub repository for creating Geometry Dash levels with JavaScript and a syntax similar to SPWN. It describes itself as a way to write level content in code, then export it for use with Geometry Dash. The project can be installed as an npm package, @g-js-api/g.js.

With G.js, you can configure exports to formats such as levelstring, savefile, live_editor, or gmd. The API supports trigger functions, objects, groups, and colors, and provides helpers for next-free IDs, ranges, counters, and conditions. A quick example shows moving text, trigger loops, context handling, and background flashes.

The repository includes docs, tutorials, source files, and type definitions. Supported platforms include Windows, macOS, Linux, and Android. G.js currently uses a global-first API, with a safe import option for those who want to avoid overriding global variables. It suits people who already know JavaScript and want to build or script Geometry Dash levels rather than use only the in-game editor.

Key features

  • Create Geometry Dash levels in JavaScript with SPWN-like syntax.
  • Install through npm as @g-js-api/g.js.
  • Runs on Windows, macOS, Linux, and Android.
  • Exports levelstring, savefile, live editor, and GMD files.
  • Uses trigger functions, objects, groups, counters, and conditions.
  • Provides a global-first API and a safe import option.
Best for: JavaScript developers who want to build Geometry Dash levels using code and a SPWN-like syntax.
Good for
  • Uses familiar JavaScript and SPWN-like syntax.
  • Supports several Geometry Dash export modes.
  • Includes repository folders for docs and tutorials.
  • Works across Windows, macOS, Linux, and Android.
Watch out for
  • Requires JavaScript knowledge and setup before use.
  • The global-first API may override global variables unless the safe import is used.
  • Live editor export requires the WSLiveEditor mod.

G.js at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Not stated
Language
English
Last checked
Oct 5, 2026 · Online when checked
Listed
Oct 5, 2026

G.js alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in Game Guides, Wikis & Tools

Well-known listings from the same topic.

All 394

G.js FAQ

What is G.js?
G.js is a GitHub repository and npm package for creating Geometry Dash levels in JavaScript with a SPWN-like syntax. It provides API helpers and export options for generating level content.
How do I install G.js?
Install it with npm install @g-js-api/g.js. After importing G.js, run await $.exportConfig(...) before adding Geometry Dash-related content.
What export types does G.js support?
Valid export types include levelstring, savefile, live_editor, and gmd. Options let you control things such as level info, level name, path, optimization, and trigger positioning.
Is G.js free?
The homepage information does not state pricing. The project is available as a GitHub repository and an npm package, but no price terms are listed.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing