Skip to content

Window.js is an open-source Javascript runtime for desktop graphics programming.

License

Notifications You must be signed in to change notification settings

windowjs/windowjs

Repository files navigation

Window.js

Window.js is an open-source Javascript runtime for desktop graphics programming.

It is documented atwindowjs.org.

Windows Linux macOS

Introduction

Window.js provides APIs forwindowcreation and manipulation viaGLFWand the HTML5 Canvas APIvia the Skiagraphics library, backed by thev8 Javascript engine.

Window.js comes with familiar APIs for web developers for inputevent handling andanimated rendering, and has additional, convenient APIs for file access.

Additional APIs for sound, networking and WebGL are planned for a future release.

See theFAQfor more details.

Note:Window.js is a very recent project and hasn't been widely tested yet. Please report anyissuesand get incontactfor help.

Quick start

Window.js is distributed as a single binary that can be downloadedfor Windows and macOS.

It can also bebuiltfrom the sources for Windows, macOS and Linux.

Window.js runs a Javascript source file directly:

$ windowjs examples/breakout.js

The source files can be edited and reloaded withF5in the main window.

A Javascript console is available by pressingF1,that can be used to diagnose errors and explore the APIs. For example, submitting this:

window.title ="Hello!"

changes the title of the main window. Errors are highlighted in the main window:

window.title = noSuchVariable;

Uncaught exceptions and console log errors are also shown in the main window. That overlay can be toggled withF4.Seehelp()in the console for more development tools.

See theexampleapplications and the API documentationfor more.

Contact

Contact the Window.js developers and other users via the Window.js mailing listat Google Groups, or via its email addresswindowjs@googlegroups.

Github users can also use the Github Discussionspage for the project.

Report issues the Github issues tracker.

Contributing

See the documentation forcontributions and a list ofplanned featuresfor ideas.

License

Window.js is licensed under theMIT License.