Game frameworks
Try each framework with a small demo, then use the one you like.
1. Phaser 3
Full 2D framework: scenes, sprites, input, physics, sound. Best for arcade and platformers.
How to use: Add one script, then create a Phaser.Game with a scene (create, update).
2. PixiJS
Fast 2D renderer. You handle game loop and input; PixiJS draws sprites and graphics.
How to use: Create new PIXI.Application(), append app.view to the DOM, add display objects to app.stage. Use app.ticker for the loop.
3. Kaboom.js
Small, fun API. Good for quick prototypes and simple games.
How to use: Load as ES module, call kaboom(), then add([...]) for game objects and onKeyDown / onUpdate for input.
React + Phaser — Phaser embedded in a React app with shared state (score in React, canvas in Phaser).