FLUTTER ECOSYSTEM

flutter_qjs

This plugin is a simple js engine for flutter using the `quickjs` project. Plugin currently supports all the platforms except web!

Latest version
0.3.7
30-day downloads
123
Likes
31
Pub points
60

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

flutter_qjs is a Flutter plugin that integrates the QuickJS JavaScript engine, enabling Dart applications to execute JavaScript code natively. It supports all major platforms except web, making it ideal for scenarios requiring lightweight, embedded scripting. The plugin provides a straightforward API to evaluate JS expressions, call functions, and exchange data between Dart and JavaScript. Built on the high-performance QuickJS project, it ensures fast execution with minimal overhead. This makes it suitable for dynamic logic, configuration scripts, or extending app functionality without recompilation.

Use cases
  • Running dynamic scripts in apps
  • Embedding JavaScript logic
  • Extending app behavior at runtime
  • Configuring app features via scripts
  • Interfacing with legacy JS code
Key features
  • Lightweight QuickJS engine
  • Cross-platform (except web)
  • Dart-JS interoperability
  • Simple API for script evaluation
  • Fast execution with low memory usage
Suitable for
  • Apps needing dynamic scripting
  • Developers using JS for logic
  • Plugins requiring embedded engines
  • Prototyping with scriptable components
  • Non-web mobile and desktop apps
Considerations
  • Not available on web platform
  • Limited to QuickJS-specific JS features
  • Requires careful error handling
  • May increase app size slightly
  • No support for modern ES modules
Supported platformsNot available

Install package

flutter pub add flutter_qjs

Categories

Source repository

Related projects