brr
brr copied to clipboard
Browser programming toolkit for OCaml
[spec](https://www.w3.org/TR/IndexedDB/) and [MDN docs](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API).
I've needed to use `El.v` to create SVG DOM elements, and for this to work one needs to create with them with `createElementNS`, specifying the SVG namespace URI. For this...
A few things that could be improved in the OCaml console - [ ] Error reporting highlighting (note that `#use` does a good job at this as per built-in toplevel...
Make the [`Json.t`](https://github.com/dbuenzli/brr/blob/7c4bcd2dfb5f5c200ab759c4f40abb4ccb6876ab/src/brr.mli#L502-L504) type abstract and provide a query and gen API along the lines/compatible with [serialk](https://erratique.ch/software/serialk/doc/).
[Spec](https://www.w3.org/TR/webauthn/) and [MDN docs](https://developer.mozilla.org/en-US/docs/Web/API/Web_Authentication_API).
[IDL](https://streams.spec.whatwg.org/#idl-index) and [MDN docs](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API)
At least ```ocaml let now () = let d = Jv.new' (Jv.get Jv.global "Date") [||] in Jv.to_float (Jv.call d "getTime" [||]) ```
[Wasm_of_ocaml](https://github.com/ocaml-wasm/wasm_of_ocaml) uses a different representation for OCaml floats (and 32-bit integers) and JavaScript numbers, so we need explicit conversions (which are still optimized away by Js_of_ocaml). Also, since JavaScript values...