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:
Graphics & Visualization
- Rotating planet — Animated 3D view of the Earth
- Lozenge tilings — Random walk on lozenge tilings
- WebGL demo — WebGL graphics demo
- Hyperbolic tree — Hyperbolic geometry visualization
- Graph viewer — Interactive graph visualization
- OCaml Graphics library — OCaml Graphics library in the browser
Games
- Boulder Dash — Classic game remake
- Minesweeper — Classic puzzle game
Editors
- Real-time wiki editor — Real-time collaborative wiki
- WYSIWYG wiki editor — WYSIWYG wiki editor
Toplevel
- OCaml toplevel — Interactive OCaml REPL in the browser
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.