deeplearnjs_facade 0.0.1

  • Installing
  • Versions
  • 45


Dart wrapper for deelearnjs

Most code generated by js_facade_gen.

The deepleanjs library will remain unchanged from the generate code except for necessary modifications to make it strong-mode clean. See the manual changes for an overview of changes made.

A more darty interface will eventually be written that does away with the need for things like allowInterop for function arguments, replaces promises with futures and adheres to the dart style guide.


See examples for dart ports of the typescipt examples.


  1. Port more examples
  2. Write dart interface that encapsulates js interop requirements



  • Initial version, created by Stagehand

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  deeplearnjs_facade: "^0.0.1"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

      import 'package:deeplearnjs_facade/deeplearnjs_facade.dart';
Version Uploaded Documentation Archive
0.0.1 Aug 20, 2017 Go to the documentation of deeplearnjs_facade 0.0.1 Download deeplearnjs_facade 0.0.1 archive


We analyzed this package on Jul 13, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3


Describes how popular the package is relative to other packages. [more]
0 / 100
Code health derived from static analysis. [more]
90 / 100
Reflects how tidy and up-to-date the package is. [more]
90 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: web

Primary library: package:deeplearnjs_facade/deeplearnjs_facade.dart with components: html, js.


  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 13 errors 336 hints.

    Strong-mode analysis of lib/src/generated/math/webgl/argmaxequals_gpu.dart failed with the following error:

    line: 19 col: 7
    Missing concrete implementations of getter 'GPGPUProgram.supportsBroadcasting' and setter 'GPGPUProgram.supportsBroadcasting'.

    Strong-mode analysis of lib/src/generated/math/webgl/argminmax_gpu.dart failed with the following error:

    line: 23 col: 7
    Missing concrete implementations of getter 'GPGPUProgram.supportsBroadcasting' and setter 'GPGPUProgram.supportsBroadcasting'.

    Similar analysis of the following files failed:

    • lib/src/generated/math/webgl/conv_backprop_gpu.dart (error)
    • lib/src/generated/math/webgl/conv_gpu.dart (error)
    • lib/src/generated/math/webgl/logsumexp_gpu.dart (error)
    • lib/src/generated/math/webgl/max_pool_backprop_gpu.dart (error)
    • lib/src/generated/math/webgl/minmax_gpu.dart (error)
    • lib/src/generated/math/webgl/mulmat_gpu.dart (error)
    • lib/src/generated/math/webgl/pool_gpu.dart (error)
    • lib/src/generated/math/webgl/reducesum_gpu.dart (error)
    • lib/src/generated/math/webgl/unaryop_gpu.dart (error)
    • lib/src/generated/math/activation_functions.dart (hint)
    • lib/src/generated/math/cost_functions.dart (hint)
    • lib/src/generated/math/math.dart (hint)
    • lib/src/generated/math/math_cpu.dart (hint)
    • lib/src/generated/math/math_gpu.dart (hint)
    • lib/src/generated/math/ndarray.dart (hint)
    • lib/src/generated/math/webgl/gpgpu_context.dart (hint)
    • lib/src/generated/math/webgl/gpgpu_math.dart (hint)
    • lib/src/generated/math/webgl/gpgpu_util.dart (hint)
    • lib/src/generated/math/webgl/webgl_util.dart (hint)
    • lib/src/generated/priority_queue.dart (hint)
    • lib/src/generated/session.dart (hint)
    • lib/src/generated/util.dart (hint)
  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use deeplearnjs_facade.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.20.1 <2.0.0
func ^1.0.0 1.0.0
js ^0.6.0 0.6.1
Dev dependencies
browser >=0.10.0 <0.11.0
dart_to_js_script_rewriter ^1.0.1
test ^0.12.0