Google Dart support for NodeJS.
JavaScript Dart
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

What's Frog?

Frog is a NodeJS module that enables Google Dart support. You may now write server-side Dart enabled NodeJS applications.

How to install

npm install Frog

Or clone the repo.

You also need to have Dart SDK installed:

Make sure the installation bin folder is in your environment $PATH.



// Include the Frog compiler.

// Now just run Dart like a boss.
console.log('I am about to run some Dart...');


console.log('I just ran Dart!');


class Point {
  Point(this.x, this.y);

  distanceTo(Point other) {
    var dx = x - other.x;
    var dy = y - other.y;
    return Math.sqrt(dx * dx + dy * dy);

  var x, y;

main() {
  Point p = new Point(2, 3);
  Point q = new Point(3, 4);

  print('distance from p to q = ${p.distanceTo(q)}');

#####Run it

$ node app.js
I am about to run some Dart...
distance from p to q = 1.4142135623730951
I just ran Dart!


This project is not yet production ready! It's also quite slow. I'm planning to take another approach to this.