https://github.com/do-me/js-camera-capture
Vanilla JS camera capture example, working on desktop and mobile based on navigator.mediaDevices.getUserMedia().
Desgined as a basic user interface example for taking a picture and sending it to some server, here the ntfy channel: https://ntfy.sh/js-camera-capture.