OCaml HTTP

Open-source OCaml projects categorized as HTTP | Edit details

Top 4 OCaml HTTP Projects

  • GitHub repo dream

    Tidy, feature-complete Web framework

    Project mention: Dream – Tidy Web Framework for OCaml and ReasonML | news.ycombinator.com | 2021-04-09

    Yes. OCaml + all of the 3 OCaml-to-JS compilers support OCaml syntax.

    Dream itself demonstrates:

    - Server and client both written in Reason, using ocamlc+Melange https://github.com/aantron/dream/tree/master/example/r-fulls...

    That example could also have been written in OCaml syntax, because ocamlc (native) and Melange (JS) both support OCaml. However, Reason is nicer if you want to use React with JSX.

    - Server and client both written in OCaml, using ocamlc+Js_of_ocaml https://github.com/aantron/dream/tree/master/example/w-fulls...

    The remaining example uses Ocaml on the server and ReScript on the client, using the ReScript compiler. However, you could use OCaml on the client with the ReScript compiler. Just as with Melange, you would lose access to nice JSX syntax https://github.com/aantron/dream/tree/master/example/r-fulls...

    It's definitely a lot and not user-friendly to have to decide between all these options, but the community is experimenting greatly right now... so it's good and bad, and that's how it is :/

    As for Node.js, using ReScript syntax requires you to use Node.js on the native side, but that is the only coupling. If you write your native side in OCaml or Reason, you can compile it to native code with ocamlc (technically, ocamlopt is the internal command; nobody uses either one directly, but the build system calls them).

  • GitHub repo ocaml-cohttp

    An OCaml library for HTTP clients and servers using Lwt or Async

    Project mention: Cohttp 4.0.0 | reddit.com/r/ocaml | 2021-03-24
  • Scout APM

    Scout APM: A developer's best friend. Try free for 14-days. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.

  • GitHub repo httpaf

    A high performance, memory efficient, and scalable web server written in OCaml

    Project mention: The RustyHermit Unikernel: unikernel written in Rust | news.ycombinator.com | 2021-01-25

    Thanks for chiming in!

    Sadly cohttp is (or was) performing so bad that it is kind of at odds with using it on a unikernel.

    This one is quite a bit faster:

    https://github.com/inhabitedtype/httpaf

  • GitHub repo ocaml-webmachine

    A REST toolkit for OCaml

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2021-04-09.

OCaml HTTP related posts

Index

What are some of the best open-source HTTP projects in OCaml? This list will help you:

Project Stars
1 dream 720
2 ocaml-cohttp 560
3 httpaf 489
4 ocaml-webmachine 215
Find remote jobs at our new job board 99remotejobs.com. There are 32 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com