Page
Library
Module
Module type
Parameter
Class
Class type
Source
gen_js_api aims at simplifying the creation of OCaml bindings for Javascript libraries. It must currently be used with the js_of_ocaml compiler, although other ways to run OCaml code "against" Javascript might be supported later with the same binding definitions (for instance, Bucklescript, or direct embedding of a JS engine in a native OCaml application).
gen_js_api is based on the following ideas:
gen_js_api can be used in two complementary ways:
The repository contains some examples of OCaml bindings to Javascript libraries created with gen_js_api:
gen_js_api has been created by LexiFi for porting a web application from Javascript to OCaml. The tool has been used in production since 2015.
This gen_js_api package is licensed by LexiFi under the terms of the MIT license.
See see Changelog
Contact: alain.frisch@lexifi.com
Contributors: