webnn
CommunityAccelerate in-browser ML.
Software Engineering#fallback#webnn#in-browser-ml#ml-context#ml-graph#tensor-dispatch#browser-inference
Authorwebmaxru
Version1.0.0
Installs0
System Documentation
What problem does it solve?
WebNN enables in-browser machine learning with local acceleration, reducing reliance on server-side inference and enabling private, offline-capable ML in web apps.
Core Features & Use Cases
- Detects WebNN support and creates a secure MLContext with configurable power and acceleration preferences.
- Provides a guided integration path including tensor creation, write/read, graph building, dispatch, and context loss handling.
- Use Case: Add in-browser ML to a web app to run models locally, fallback to non-WebNN runtimes when unavailable, and debug integration issues.
Quick Start
Detect WebNN support and initialize a context with a simple graph to validate the setup.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferencesassets
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: webnn Download link: https://github.com/webmaxru/agent-skills/archive/main.zip#webnn Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.