Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/windowjs/windowjs
Window.js is an open-source Javascript runtime for desktop graphics programming.
https://github.com/windowjs/windowjs
2d graphics-programming javascript
Last synced: 5 days ago
JSON representation
Window.js is an open-source Javascript runtime for desktop graphics programming.
- Host: GitHub
- URL: https://github.com/windowjs/windowjs
- Owner: windowjs
- License: mit
- Created: 2021-11-30T18:29:08.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-08T20:32:29.000Z (almost 2 years ago)
- Last Synced: 2024-11-30T07:02:25.999Z (12 days ago)
- Topics: 2d, graphics-programming, javascript
- Language: JavaScript
- Homepage: https://windowjs.org
- Size: 3.52 MB
- Stars: 2,249
- Watchers: 18
- Forks: 62
- Open Issues: 38
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-game-engine-dev - Window.js - JavaScript runtime for desktop graphics programming. [[Docs](https://windowjs.org/)] (Libraries / JavaScript)
README
# Window.js
Window.js is an open-source Javascript runtime for desktop graphics programming.
It is documented at [windowjs.org](https://windowjs.org).
[![Windows](https://github.com/windowjs/windowjs/actions/workflows/windows-build.yml/badge.svg)](https://github.com/windowjs/windowjs/actions/workflows/windows-build.yml)
[![Linux](https://github.com/windowjs/windowjs/actions/workflows/linux-build.yml/badge.svg)](https://github.com/windowjs/windowjs/actions/workflows/linux-build.yml)
[![macOS](https://github.com/windowjs/windowjs/actions/workflows/macos-build.yml/badge.svg)](https://github.com/windowjs/windowjs/actions/workflows/macos-build.yml)## Introduction
Window.js provides APIs for [window](https://windowjs.org/doc/window) creation
and manipulation via [GLFW](https://glfw.org) and the HTML5
[Canvas API](https://windowjs.org/doc/canvas) via the
[Skia](https://skia.org) graphics library, backed by the [v8](https://v8.dev)
Javascript engine.Window.js comes with familiar APIs for web developers for
[input](https://windowjs.org/doc/window#window.addEventListener) event handling
and [animated rendering](https://windowjs.org/doc/global#requestAnimationFrame),
and has additional, convenient APIs for
[file access](https://windowjs.org/doc/file).Additional APIs for sound, networking and WebGL are planned for a future
release.See the [FAQ](https://windowjs.org/about/faq) for more details.
**Note**: Window.js is a very recent project and hasn't been widely tested yet.
Please report any [issues](https://github.com/windowjs/windowjs/issues) and get
in [contact](https://windowjs.org/about/contact) for help.## Quick start
Window.js is distributed as a single binary that can be
[downloaded](https://windowjs.org/download) for Windows and macOS.It can also be [built](https://windowjs.org/dev/build) from the sources for
Windows, macOS and Linux.Window.js runs a Javascript source file directly:
```shell
$ windowjs examples/breakout.js
```The source files can be edited and reloaded with `F5` in the main window.
A Javascript console is available by pressing `F1`, that can be used to
diagnose errors and explore the APIs. For example, submitting this:```shell
window.title = "Hello!"
```changes the title of the main window. Errors are highlighted in the main window:
```shell
window.title = noSuchVariable;
```Uncaught exceptions and console log errors are also shown in the main window.
That overlay can be toggled with `F4`. See `help()` in the console for more
development tools.See the [example](https://windowjs.org/about/examples) applications and the
[API documentation](https://windowjs.org/doc) for more.## Contact
Contact the Window.js developers and other users via the
[Window.js mailing list](https://groups.google.com/u/3/g/windowjs/) at
Google Groups, or via its email address `[email protected]`.Github users can also use the
[Github Discussions](https://github.com/windowjs/windowjs/discussions) page
for the project.Report issues the Github
[issues tracker](https://github.com/windowjs/windowjs/issues).## Contributing
See the documentation for [contributions](https://windowjs.org/dev/contributing)
and a list of [planned features](https://windowjs.org/dev/plans) for ideas.## License
Window.js is licensed under the [MIT License](LICENSE).