Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
HTML5 Canvas projects - including simple thermometer, speedometer, map, progress meter, map, car race sim, chess, bouncing ball and compass.

A quick and easy way to generate markup for mailto links without having to worry about the annoying formatting.
HTML5 Canvas Projects is a free GitHub repository by user rheh that collects 26 small JavaScript demos, each rendering something different on an HTML5 canvas — from an analogue clock and a flip clock to a chessboard, a shooting game, and a water tank. The project runs entirely in the browser with plain JavaScript, HTML, and CSS, and it is designed as a learning resource for anyone curious about canvas graphics.
HTML5 Canvas Projects is a collection of self-contained example pages that use the HTML5 canvas API to produce interactive drawings and mini-applications. Each example is a standalone HTML file with embedded JavaScript and CSS, so you can open it directly in a browser or serve it locally. The repository was created by GitHub user rheh and is hosted on GitHub Pages under the rheh.github.io domain, giving each demo a public URL.
npx http-server ./ from the project root to view the examples on your machine.To run the projects locally, clone or download the repository, open a terminal in the project folder, and execute npx http-server ./. Then visit any of the demo URLs listed in the README, such as https://rheh.github.io/HTML5-canvas-projects/analogue_clock/. Each page loads its own JavaScript and draws immediately on the canvas element in the browser.
Run npx http-server ./ from the repository root, then open the individual demo URLs that are listed in the README. No other setup is required because each demo is a self-contained HTML page.
All projects use plain JavaScript with the HTML5 canvas API, along with standard HTML and CSS. No external libraries or build steps are involved.
The README lists 26 separate demos, covering clocks, games, maps, particle effects, gauges, and algorithm visualizations.
Yes, the repository is publicly accessible on GitHub and can be browsed and downloaded at no cost. The README does not mention any paid plans or licenses.
The repository does not include license information in the README, so there is no explicit statement of reuse rights. However, all source code is open for viewing, and the project's learning-by-doing tag suggests it is meant for educational use.
The repository and all its demos are free to access and download.
