/fjs

A Plugin brings JavaScript Engine to Flutter.

Primary LanguageCBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Flutter JS plugin

A Flutter plugin brings JavaScript Engine to your App.

This plugin uses dart:ffi to communicate between Flutter and C to reduce performance loss.

We use QuickJS for Android/Windows/Linux and JavaScriptCore for iOS/MacOS.

On Apple devices, it is prohibited to ship mobile applications that run JavaScript using a different JIT engine than the one originally provided with the system. Thus we have no choise other than using JavascriptCore.

License

FlutterJS is under the BSD 3-clause license as recommended by dart.dev

QuickJS is under the MIT license

Thanks To

This plugin borrowed a lot of code from the following awesome projects: