Loading...
Loading...
Implements and debugs browser Web Neural Network API integrations in JavaScript or TypeScript web apps. Use when adding navigator.ml checks, MLContext creation, MLGraphBuilder flows, device selection, tensor dispatch and readback, or explicit fallback paths to ONNX Runtime Web or other local runtimes. Don't use for model training, server-side ML inference, or cloud AI APIs.
npx skill4agent add webmaxru/agent-skills webnnnode scripts/find-webnn-targets.mjs .package.jsonreferences/webnn-reference.mdreferences/examples.mdreferences/compatibility.mdreferences/troubleshooting.mdWindowDedicatedWorkerpowerPreference: "high-performance"powerPreference: "low-power"accelerated: falseacceleratedpowerPreferenceMLGraphBuilderassets/webnn-runtime.template.tswindow.isSecureContextnavigator.mlMLContextacceleratedpowerPreferenceMLGraphBuildercontext.writeTensor()context.dispatch()await context.readTensor()context.lostnode scripts/find-webnn-targets.mjs .navigator.mlacceleratedpowerPreferencecontext.opSupportLimits()references/compatibility.mdnavigator.mlreferences/compatibility.mdcreateContext()build()dispatch()references/examples.mdreferences/troubleshooting.mdcontext.lost