Skip to content
pubscout

apollovm

2.36.2, released 2 days ago by an unverified publisher

Portable multi-language VM to parse, run, translate, and compile Dart, Java, Kotlin, Go, C#, JS, and Python.

WASM-ready
$ flutter pub add apollovm
Source repository

What it does

ApolloVM provides a portable virtual machine for native, web, and Flutter that parses, interprets, cross-compiles, and translates code across multiple programming languages. It features on-the-fly Wasm compilation and can be used as an MCP server for LLMs.

AI-written summary of version 2.36.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want an LLM MCP tool or sandboxed reasoning scratchpad to validate generated code.
  • You need to embed multi-language scripting in a Flutter app that updates live at runtime.
  • You want to compile loaded source code directly into portable WebAssembly modules on the fly.

Skip it when

  • You are building standard production application features that should rely on native Dart performance without a VM abstraction layer.
  • You need full 100% feature parity for every single control flow and operator construct across all cross-compiled languages.

Strengths

  • Supports multiple popular source languages and translates between them.
  • Runs natively, on the web, and inside Flutter applications.
  • Compiles source code dynamically to WebAssembly without external toolchains.

Weaknesses

  • Complex language features or specific constructs may be unsupported or limited depending on the target language and Wasm backend.
  • Interpreting and translating multiple languages at runtime carries significant overhead compared to native code.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
16

Add apollovm to your pubspec.yaml dependencies.

// ApolloVM usage depends on API instantiation, see documentation for parser and interpreter calls.

Alternatives

Packages that do the same job and could replace apollovm.

  • markdown

    A portable Markdown library written in Dart that can parse Markdown into HTML.

  • jni

    Provides Dart/Flutter bindings to call native Java code via JNI.

  • frontend_server_client

    Client to interact with Dart SDK's frontend_server compiler.

  • result_dart

    Kotlin and Swift inspired Result class for error handling in Dart and Flutter.

Works with

Packages commonly used together with apollovm: ones it builds on, ones built on it, and its own family.