Homebrew RELEASE Brew.js - Make homebrew apps with JavaScript!

  • Thread starter Thread starter XorTroll
  • Start date Start date
  • Views Views 46,411
  • Replies Replies 109
  • Likes Likes 43

XorTroll

Switching between my 2DS and my Switch
Developer
Joined
Dec 28, 2017
Messages
660
Reaction score
2,479
Trophies
1
Location
Nowhere
Website
github.com
XP
4,501
Country
Spain
Brew.js - C++ high-level JavaScript API for Nintendo homebrew
(Still under development) 2.0 version - everything (is going to be) remade!


Doxygen.Logo.png


Brew.js is a C++ API for evaluating plain JavaScript (not Node.js or PegaSwitch) within C++, for various Nintendo platforms.

- Currently supported platforms: Nintendo DS, Nintendo 3DS, Nintendo Switch
  • Current content
- Brew.js API: C++ libraries to execute JavaScript within any C++ application or program (stable, some not working stuff, modules are WIP)
- Brew.js interpreter: a GUI front-end for executing JavaScript. (still undeveloped)
- Brew.js link: a PC client and Homebrew server to interpretate JavaScript code, like in Node.js CLI. (only Switch, and still very WIP)

Each platform has different exclusive modules(for instance ctr/sf2d for 3DS, ntr for DS, nx/pegaswitch for Switch...)

The current state of the project is unreleased. Latest release is 1.0, although it was released like 3 months ago.
2.0 is only early commits, and so much stuff needs to be done. Check the projects section on GitHub for more information.

As soon as the development gets closer to a release, more information will be added here.
As you can see, there are also graphical improvements, as the logo has changed (thanks to @EmperorX for the awesome new logo design)
Thanks for the current support, guys! The best is still coming soonTM!

GitHub project: https://github.com/XorTroll/Brew.js
Webpage (API documentation): https://xortroll.github.io/Brew.js

Enjoy scripting!

Copyright © 2018, by XorTroll
 
Last edited by XorTroll, , Reason: Add 2.0 early info
Sick, I'm all over this. I have a ton of snippets from old homebrew I made I'd love to bring to Switch. I will be testing this when I get back from the office for sure.
 
Looks like a great way to get your feet wet making Homebrew games! Does it work with any Switch emulators for testing?
 
Looks like a great way to get your feet wet making Homebrew games! Does it work with any Switch emulators for testing?
I guess it does, you just have to add your projects to the folder the emulator has as the SD card.
I've tested it with Yuzu and it seems to work.
 
Brew.js - Make homebrew apps with JavaScript!

39009792


Hello everybody!
(for those who came here from the 3dJS project, this is that project's evolution)

- About this project

Brew.js consists on a number of interpreters (and I also plan to develop app makers) to develop and run JS apps, supporting plain JS and also supporting native platform functions, to develop real homebrew apps.

- API and JS source

I'm trying to add everything I can from libnx libraries. For the moment, these is the support the API has:
Switch: console printing, input detecting, image loading (only bitmaps, still experimental), accessing Switch's data (only a few things for the moment)...

- Support info

For the moment, only Switch is supported.
Support is planned for GBA, NDS, 3DS, GameCube, Wii and Switch.

- Using the interpreter

A project is a folder containing JS files.
The sources are loaded in alphabetical order, no matter the name they have.
[Switch] Save projects here: "sdmc:/switch/Brew.js/<yourproject>".

(no more platforms for the moment)

- Documentation and examples

You have the documentation and the examples in the release ZIP.

- Download and repository

Current release version: 0.1
This project is open-source, hosted at a GitHub organisation: https://github.com/BrewJS
[Switch] Releases: https://github.com/BrewJS/Switch/releases

Enjoy!
Copyright © 2018, by XorTroll
Does this mean what I think it means, seeing as js stuff already exists due to pegaswitch. It'd be easier than converting some stuff.
 
Awesome! Been messing around with PyNX lately as I have an idea for a homebrew app, might give it a go using this as well!

Quick question though: I’ve noticed that you’re supporting some really old consoles, even back to the GBA. Any reason why WiiU support is not planned? Feels a bit odd. Also any plans to add support for non-Nintendo consoles?
 
Brew.js - Make homebrew apps with JavaScript!

39009792


Hello everybody!
(for those who came here from the 3dJS project, this is that project's evolution)

- About this project

Brew.js consists on a number of interpreters (and I also plan to develop app makers) to develop and run JS apps, supporting plain JS and also supporting native platform functions, to develop real homebrew apps.

- API and JS source

I'm trying to add everything I can from libnx libraries. For the moment, these is the support the API has:
Switch: console printing, input detecting, image loading (only bitmaps, still experimental), accessing Switch's data (only a few things for the moment)...

- Support info

For the moment, only Switch is supported.
Support is planned for GBA, NDS, 3DS, GameCube, Wii and Switch.

- Using the interpreter

A project is a folder containing JS files.
The sources are loaded in alphabetical order, no matter the name they have.
[Switch] Save projects here: "sdmc:/switch/Brew.js/<yourproject>".

(no more platforms for the moment)

- Documentation and examples

You have the documentation and the examples in the release ZIP.

- Download and repository

Current release version: 0.1
This project is open-source, hosted at a GitHub organisation: https://github.com/BrewJS
[Switch] Releases: https://github.com/BrewJS/Switch/releases

Enjoy!
Copyright © 2018, by XorTroll
LibNX has JIT support if that helps.
Also can we get the advantage of vulkan api?
 

Site & Scene News

Popular threads in this forum