Some of imports statements import other javascript files:
imports.ui.*
->/usr/share/cinnamon/js/ui/*
imports.misc.*
->/usr/share/cinnamon/js/misc/*
imports.[cairo, dbus, format, gettext, jsUnit, lang, promise, signals]
->/usr/share/gjs-1.0/
For the imports.gi
imports, Gnome Introspection is used to allow gjs to use C library.
So to get informations about those libraries I suggest you to look at the Gnome reference manuals:
But to conclude, there is a huge lack of documentation and examples. That makes difficult to develop with gjs.
UPDATE
Here other useful links:
- Seed documentation (seed is another javascript implementation for GNOME)
- Gjs exemples