Examples
This page showcases js_of_ocaml projects, from simple demos to real-world applications.
Demos ¶
These demos are included in the js_of_ocaml repository:
- OCaml toplevel — Interactive OCaml REPL in the browser
- Planet — Animated 3D view of the Earth
- Graph viewer — Interactive graph visualization
- Boulder Dash — Classic game remake
- Wiki editor — Real-time collaborative wiki
- WebGL — WebGL graphics demo
- Minesweeper — Classic puzzle game
- Hyperbolic tree — Hyperbolic geometry visualization
- Cubes — Random walk on lozenge tilings
In the wild ¶
Real-world projects built with js_of_ocaml:
Emulators and games
Development tools
- Try OCaml — Online OCaml REPL
- Sketch.sh — Interactive OCaml notebook
- BetterOCaml — Online OCaml editor with toplevel
- Hazel — Live functional programming environment
Languages and compilers
- Flow — Static type checker for JavaScript
- Grain — Functional programming language compiling to WebAssembly
Tutorials and learning resources ¶
- Ocsigen tutorial — Build a web app with Eliom and js_of_ocaml
- OCaml.org — Getting started with OCaml
Submit your project ¶
Using js_of_ocaml in a project? Open a GitHub issue to have it listed here.