Skip to content
zap8600Public

About

JavaScript on the Flipper Zero

Resources

Stars

23 stars

Watchers

2 watching

Forks

Latest commit

 

History

71 Commits

Folders and files

Repository files navigation

js-f0

JavaScript... on the Flipper Zero?

Notice

I'll be returning from my break. Development will be slow, as I have other priorities, but with the amount of interest being shown, I'd feel bad for not putting in work.

How?

This is all possible using the microvium JavaScript engine. Check it out!

Installation

Download the artifact from the most recent successful action and put it in /ext/apps on your Flipper Zero.

Usage

  1. Install microvium on your computer with npm install -g microvium.
  2. Create a new script with the following contents:
// script.mvm.js
console.log = vmImport(7);
function main() {
  console.log('Hello, World!');
}
vmExport(1, main);
  1. Compile it with microvium script.mvm.js. This will make a file in the same directory called script.mvm-bc.
  2. Copy script.mvm-bc to /ext/apps_data/js on your Flipper Zero.
  3. Run JavaScript on your Flipper Zero.
  4. Press the center button to open the console and find "Hello, world!" in the log!

Fully implemented standard functions

  • console.log()
  • console.warn()
  • console.clear()

Incomplete implemented standard functions

  • fs.openSync() - Untested

Currently WIP standard functions

  • confirm()

About

JavaScript on the Flipper Zero

Resources

Stars

23 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages