Exported assets are free to use commercially and modify.

BokehShader.js

BokehShader

Depth-of-field bokeh

BokehShader
Preview requires WebGL2. You can still download the demo.
Drag to orbit · Middle-drag to pan · Scroll to zoomOne finger to orbit · Two fingers to pan or zoom

Keeps your chosen area clear while nearer and farther scenery blurs, like a phone portrait.

Official source