nx.js is a framework that enables the development of Nintendo Switch homebrew applications using JavaScript. Powered by the QuickJS engine, nx.js provides a streamlined environment for writing homebrew applications for the Nintendo Switch console.
With nx.js, developers can leverage their JavaScript skills and tools to create engaging and interactive experiences for the Nintendo Switch platform. The framework abstracts the underlying low-level details and provides a high-level JavaScript API that simplifies the development process.
nx.js is designed with Web standards in mind, so familiar APIs like
setTimeout(), fetch(), new URL(), Canvas and much more are
supported. If you are familar with web development then you should feel
right at home.
Canvas API.Audio API.nxjs.nro file from the Releases page.nxjs.js with the following contents:console.log('Hello Switch, from JavaScript!');
/switch directory on your SD card.See the API docs for further details, and check out the apps directory for examples.
Run the following command to bootstrap the creation of an nx.js application:
npm create nxjs-app@latest
You will be able to choose from one of the example applications as a starting point. Follow the prompts, and afterwards a new directory will be created with the project name that you entered.
The following package.json scripts are configured:
build - Bundle the application code into a single JavaScript file using esbuildnro - Package the bundled app (+ any other files in the romfs dir) into a self-contained .nro fileContributions to nx.js are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request in the GitHub repository.
nx.js is released under the MIT License. Please see
the LICENSE file for more details.
Generated using TypeDoc