{
  "id": "task_libraries:machine-learning/javascript",
  "path": "/exapedia/javascript-machine-learning-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript machine learning libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript machine learning libraries train models or run pretrained models in browsers and Node.js. Browser runtimes execute a model on the user's device through WebAssembly or WebGPU rather than on a server. These libraries let web apps classify images, detect faces, and run language models without sending user data to a remote API."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript machine learning libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#onnxruntime-node",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F132"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mediapipe-tasks-vision",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F146"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#huggingface-transformers",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F164"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#skmeans",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F183"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tensorflow-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F197"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#ml-kmeans",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F213"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#ml-logistic-regression",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F227"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mlc-ai-web-llm",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#onnxruntime-node",
          "label": [
            {
              "t": "text",
              "text": "ONNX Runtime Node"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F133"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Browser runtime",
            "Supervised fitting"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#onnxruntime-node",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F132"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mediapipe-tasks-vision",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F146"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#huggingface-transformers",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F164"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#skmeans",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F183"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tensorflow-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F197"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#ml-kmeans",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F213"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#ml-logistic-regression",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F227"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mlc-ai-web-llm",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "onnxruntime-node",
          "name": [
            {
              "t": "fact",
              "fact": "F132"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/microsoft/onnxruntime"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/onnxruntime-node"
            },
            {
              "label": "Docs",
              "href": "https://github.com/Microsoft/onnxruntime#readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F139"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/Microsoft/onnxruntime#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F132"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import * as ort from 'onnxruntime-node';\nconst session = await ort.InferenceSession.create('./model.onnx');\nconsole.log(session);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://onnxruntime.ai/docs/api/js/interfaces/InferenceSessionFactory.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "InferenceSessionFactory.html"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=onnxruntime-node%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F132"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F137"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "mediapipe-tasks-vision",
          "name": [
            {
              "t": "fact",
              "fact": "F146"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/google-ai-edge/mediapipe"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@mediapipe/tasks-vision"
            },
            {
              "label": "Docs",
              "href": "http://mediapipe.dev"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F153"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "http://mediapipe.dev",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F146"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/google-ai-edge/mediapipe-samples-web",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F162"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "protected async handleCustomMessage(data: any): Promise<void> {\n    if (data.type === 'DETECT_IMAGE' || data.type === 'DETECT_VIDEO') {\n      const { bitmap, timestampMs } = data;\n      const requiredMode = data.type === 'DETECT_IMAGE' ? 'IMAGE' : 'VIDEO';\n\n      if (!this.taskInstance) {\n        console.warn('FaceLandmarker not initialized yet.');\n        bitmap.close();\n        self.postMessage({ type: 'DETECT_ERROR', error: 'Not initialized' });\n        return;\n      }\n\n      if (this.currentOptions.runningMode !== requiredMode) {\n        this.currentOptions.runningMode = requiredMode;\n        await this.updateOptions();\n      }\n\n      const startTimeMs = performance.now();\n      let result: FaceLandmarkerResult;\n\n      try {\n        if (requiredMode === 'VIDEO') {\n          result = this.taskInstance.detectForVideo(bitmap, timestampMs);\n        } else {\n          result = this.taskInstance.detect(bitmap);\n        }\n      } catch (e: any) {\n        console.error('Worker detection error:', e);\n        bitmap.close();\n        self.postMessage({ type: 'DETECT_ERROR', error: e.message || 'Detection failed' });\n        return;\n      }\n\n      const inferenceTime = performance.now() - startTimeMs;\n      bitmap.close();\n\n      self.postMessage({\n        type: 'DETECT_RESULT',\n        mode: requiredMode,\n        result: result,\n        inferenceTime: inferenceTime,\n      });\n    }\n  }",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/google-ai-edge/mediapipe-samples-web/blob/64ecdefb2a0f0d97e175e4d8fdeeff0f73b29ab5/src/workers/face-landmarker.worker.ts#L53-L96",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F161"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40mediapipe/tasks-vision%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F146"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { FilesetResolver, FaceLandmarker } from '@mediapipe/tasks-vision';\nconst files = await FilesetResolver.forVisionTasks('https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@1.2.3/wasm');\nconst task = await FaceLandmarker.createFromOptions(files, {\n  baseOptions: { modelAssetPath: './face_landmarker.task' }, runningMode: 'IMAGE',\n});\nconsole.log(task);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://developers.google.com/edge/mediapipe/solutions/vision/face_landmarker/web_js",
                  "label": [
                    {
                      "t": "text",
                      "text": "web_js"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F151"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "huggingface-transformers",
          "name": [
            {
              "t": "fact",
              "fact": "F164"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/huggingface/transformers.js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@huggingface/transformers"
            },
            {
              "label": "Docs",
              "href": "https://github.com/huggingface/transformers.js#readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F171"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/huggingface/transformers.js#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F164"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/huggingface/transformers.js-examples",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F181"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async (event) => {\n  // Retrieve the translation pipeline. When called for the first time,\n  // this will load the pipeline and save it for future use.\n  const translator = await MyTranslationPipeline.getInstance((x) => {\n    // We also add a progress callback to the pipeline so that we can\n    // track model loading.\n    self.postMessage(x);\n  });\n\n  // Capture partial output as it streams from the pipeline\n  const streamer = new TextStreamer(translator.tokenizer, {\n    skip_prompt: true,\n    skip_special_tokens: true,\n    callback_function: function (text) {\n      self.postMessage({\n        status: \"update\",\n        output: text,\n      });\n    },\n  });\n\n  // Actually perform the translation\n  const output = await translator(event.data.text, {\n    tgt_lang: event.data.tgt_lang,\n    src_lang: event.data.src_lang,\n\n    // Allows for partial output\n    streamer,\n  });\n\n  // Send the output back to the main thread\n  self.postMessage({\n    status: \"complete\",\n    output,\n  });\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/huggingface/transformers.js-examples/blob/204b0948e88cd2bdc046316e78b754359653caea/react-translator/src/worker.js#L23-L58",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F180"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40huggingface/transformers%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F164"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { pipeline } from '@huggingface/transformers';\nconst classify = await pipeline('sentiment-analysis');\nconsole.log(await classify('I love transformers!'));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/huggingface/transformers.js/blob/205e9c2511622724bf9751b35f2afb07f1dd3aa6/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F169"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "skmeans",
          "name": [
            {
              "t": "fact",
              "fact": "F183"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/solzimer/skmeans"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/skmeans"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F190"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://www.npmjs.com/package/skmeans",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F183"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import skmeans from 'skmeans';\nconst result = skmeans([[1], [2], [10], [11]], 2, 'kmpp');\nconsole.log(result.centroids);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/skmeans/latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=skmeans%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F183"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F188"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "tensorflow-js",
          "name": [
            {
              "t": "fact",
              "fact": "F197"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/tensorflow/tfjs"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@tensorflow/tfjs"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F39"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://www.npmjs.com/package/@tensorflow/tfjs",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F197"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/googlecreativelab/teachablemachine-community",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F211"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export async function loadTruncatedMobileNet(modelOptions?: ModelOptions) {\n    const [checkpointUrl, trainingLayer] = parseModelOptions(modelOptions);\n    const mobilenet = await tf.loadLayersModel(checkpointUrl);\n\n    if (modelOptions && modelOptions.version === 1){\n        const layer = mobilenet.getLayer(trainingLayer);\n        const truncatedModel = tf.model({ inputs: mobilenet.inputs, outputs: layer.output });\n        const model = tf.sequential();\n        model.add(truncatedModel);\n        model.add(tf.layers.flatten());\n        return model;\n    }\n    else {\n        const layer = mobilenet.getLayer(trainingLayer);\n        const truncatedModel = tf.model({ inputs: mobilenet.inputs, outputs: layer.output });\n        const model = tf.sequential();\n        model.add(truncatedModel);\n        model.add(tf.layers.globalAveragePooling2d({})); // go from shape [7, 7, 1280] to [1280]\n        return model;\n    }\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/googlecreativelab/teachablemachine-community/blob/55aa0bb84acaa9efcbb9a2068eaefbb72cddae2c/libraries/image/src/custom-mobilenet.ts#L289-L309",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F210"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Projects%20using%20%40tensorflow/tfjs%20for%20machine-learning%20model%20training%20or%20inference&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F197"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import * as tf from '@tensorflow/tfjs';\nconst model = tf.sequential();\nmodel.add(tf.layers.dense({ units: 1, inputShape: [1] }));\nmodel.compile({ loss: 'meanSquaredError', optimizer: 'sgd' });\nconst xs = tf.tensor2d([1, 2, 3, 4], [4, 1]);\nconst ys = tf.tensor2d([1, 3, 5, 7], [4, 1]);\nawait model.fit(xs, ys, { epochs: 1 });\nconst prediction = model.predict(tf.tensor2d([5], [1, 1]));\nprediction.print();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://www.tensorflow.org/js/guide/models_and_layers",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F202"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "ml-kmeans",
          "name": [
            {
              "t": "fact",
              "fact": "F213"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mljs/kmeans"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/ml-kmeans"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F220"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/mljs/kmeans",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F213"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { kmeans } from 'ml-kmeans';\nconst result = kmeans([[1], [2], [10], [11]], 2, { seed: 42 });\nconsole.log(result.clusters);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/ml-kmeans/latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=ml-kmeans%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F213"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F218"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "ml-logistic-regression",
          "name": [
            {
              "t": "fact",
              "fact": "F227"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mljs/logistic-regression"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/ml-logistic-regression"
            },
            {
              "label": "Docs",
              "href": "https://github.com/mljs/logistic-regression#readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F234"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/mljs/logistic-regression#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F227"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/apify/crawlee",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F242"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "#retrain(): void {\n        const X: FeatureVector[] = [\n            [0, 1],\n            [1, 0],\n        ];\n        const Y: number[] = [0, 1];\n\n        for (const [renderingType, urlsByLabel] of this.#state.currentValue.detectionResults.entries()) {\n            for (const [label, urls] of urlsByLabel) {\n                for (const url of urls) {\n                    X.push(this.#calculateFeatureVector(url, label));\n                    Y.push(renderingType === 'static' ? 1 : 0);\n                }\n            }\n        }\n\n        this.#state.currentValue.logreg.train(new Matrix(X), Matrix.columnVector(Y));\n    }",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/apify/crawlee/blob/db1cf3e3ed05182f6828c51fbf86afa97e5d975d/packages/playwright-crawler/src/internals/utils/rendering-type-prediction.ts#L232-L249",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F241"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=ml-logistic-regression%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F227"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const { Matrix } = require('ml-matrix');\nconst LogisticRegression = require('ml-logistic-regression');\nconst model = new LogisticRegression({ numSteps: 1000, learningRate: 5e-3 });\nmodel.train(new Matrix([[0], [1], [2], [3]]), Matrix.columnVector([0, 0, 1, 1]));\nconsole.log(model.predict(new Matrix([[1.5]])));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/ml-logistic-regression/latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F232"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "mlc-ai-web-llm",
          "name": [
            {
              "t": "fact",
              "fact": "F244"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mlc-ai/web-llm"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@mlc-ai/web-llm"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F251"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/mlc-ai/web-llm",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F244"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { CreateMLCEngine } from '@mlc-ai/web-llm';\nconst engine = await CreateMLCEngine('Llama-3.1-8B-Instruct-q4f32_1-MLC');\nconst reply = await engine.chat.completions.create({ messages: [{ role: 'user', content: 'Hello' }] });\nconsole.log(reply.choices[0].message.content);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/%40mlc-ai%2Fweb-llm/latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40mlc-ai/web-llm%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F244"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F249"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which JavaScript machine learning library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#tensorflow-js",
          "label": [
            {
              "t": "text",
              "text": "TensorFlow.js"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits apps that build and train models in JavaScript. "
        },
        {
          "t": "link",
          "href": "#huggingface-transformers",
          "label": [
            {
              "t": "text",
              "text": "Transformers.js"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits apps that run pretrained models in the browser. "
        },
        {
          "t": "link",
          "href": "#onnxruntime-node",
          "label": [
            {
              "t": "text",
              "text": "ONNX Runtime Node"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits Node.js servers that execute exported ONNX models."
        }
      ]
    },
    {
      "q": "What is MediaPipe?",
      "a": [
        {
          "t": "text",
          "text": "MediaPipe is Google's set of ready task models for image and video input. "
        },
        {
          "t": "link",
          "href": "#mediapipe-tasks-vision",
          "label": [
            {
              "t": "text",
              "text": "MediaPipe Tasks Vision"
            }
          ]
        },
        {
          "t": "text",
          "text": " runs those vision tasks, such as face landmark detection, in the browser."
        }
      ]
    },
    {
      "q": "What is WebLLM?",
      "a": [
        {
          "t": "link",
          "href": "#mlc-ai-web-llm",
          "label": [
            {
              "t": "text",
              "text": "WebLLM"
            }
          ]
        },
        {
          "t": "text",
          "text": " runs language model chats in the browser with hardware acceleration through WebGPU. It accepts requests in an OpenAI-style chat completion format."
        }
      ]
    },
    {
      "q": "What is Transformers.js?",
      "a": [
        {
          "t": "link",
          "href": "#huggingface-transformers",
          "label": [
            {
              "t": "text",
              "text": "Transformers.js"
            }
          ]
        },
        {
          "t": "text",
          "text": " runs pretrained models exported to ONNX directly in the browser. It defaults to CPU and WebAssembly, with optional WebGPU."
        }
      ]
    },
    {
      "q": "TensorFlow.js vs Transformers.js: which should I use?",
      "a": [
        {
          "t": "link",
          "href": "#tensorflow-js",
          "label": [
            {
              "t": "text",
              "text": "TensorFlow.js"
            }
          ]
        },
        {
          "t": "text",
          "text": " builds and trains models from tensor operations and layers. "
        },
        {
          "t": "link",
          "href": "#huggingface-transformers",
          "label": [
            {
              "t": "text",
              "text": "Transformers.js"
            }
          ]
        },
        {
          "t": "text",
          "text": " runs existing pretrained models without a training step."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, onnxruntime-web",
      "display": "ONNX Runtime Web",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, onnxruntime-web",
      "display": "29.1M",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, onnxruntime-web",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, onnxruntime-web",
      "display": "1.31.1",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, onnxruntime-web",
      "display": "v1.31.1",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, onnxruntime-web",
      "display": "22.3K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Model training, onnxruntime-web",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "GPU execution, onnxruntime-web",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Browser runtime, onnxruntime-web",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Model reloading, onnxruntime-web",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, onnxruntime-web",
      "display": "npm install onnxruntime-web",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, onnxruntime-web",
      "display": "Runs ONNX machine-learning models in browsers and Node.js.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, onnxruntime-web",
      "display": "Loads interoperable ONNX models",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, onnxruntime-web",
      "display": "Use the ONNX model format across supported source frameworks.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, onnxruntime-web",
      "display": "Selects browser execution providers",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, onnxruntime-web",
      "display": "Choose CPU or GPU execution through the runtime’s supported backends.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, onnxruntime-web",
      "display": "GPU operator coverage varies",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, onnxruntime-web",
      "display": "Check operator support for the chosen GPU execution provider.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations lead, onnxruntime-web",
      "display": "Deployment needs matching runtime assets",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations, onnxruntime-web",
      "display": "Serve the required WebAssembly files where the runtime can find them.",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart, onnxruntime-web",
      "display": "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n// see also advanced usage of importing ONNX Runtime Web:\n// https://github.com/microsoft/onnxruntime-inference-examples/tree/main/js/importing_onnxruntime-web\nconst ort = require('onnxruntime-web');\n\n// use an async context to call onnxruntime functions.\nasync function main() {\n    try {\n        // create a new session and load the specific model.\n        //\n        // the model in this example contains a single MatMul node\n        // it has 2 inputs: 'a'(float32, 3x4) and 'b'(float32, 4x3)\n        // it has 1 output: 'c'(float32, 3x3)\n        const session = await ort.InferenceSession.create('./model.onnx');\n\n        // prepare inputs. a tensor need its corresponding TypedArray as data\n        const dataA = Float32Array.from([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]);\n        const dataB = Float32Array.from([10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120]);\n        const tensorA = new ort.Tensor('float32', dataA, [3, 4]);\n        const tensorB = new ort.Tensor('float32', dataB, [4, 3]);\n\n        // prepare feeds. use model input names as keys.\n        const feeds = { a: tensorA, b: tensorB };\n\n        // feed inputs and run\n        const results = await session.run(feeds);\n\n        // read from results\n        const dataC = results.c.data;\n        document.write(`data of result tensor 'c': ${dataC}`);\n\n    } catch (e) {\n        document.write(`failed to inference ONNX model: ${e}.`);\n    }\n}\n\nmain();\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function, onnxruntime-web",
      "display": "async function runOnnxSession(\n  session: any,\n  inputs: [string, NdArray<Float32Array>][],\n  outputs: [string],\n  config: Config\n) {\n  const useWebGPU = config.device === 'gpu' && (await caps.webgpu());\n  const ort = await getOrt(useWebGPU);\n\n  const feeds: Record<string, any> = {};\n  for (const [key, tensor] of inputs) {\n    feeds[key] = new ort.Tensor(\n      'float32',\n      new Float32Array(tensor.data),\n      tensor.shape\n    );\n  }\n  const outputData = await session.run(feeds, {});\n  const outputKVPairs: NdArray<Float32Array>[] = [];\n  for (const key of outputs) {\n    const output: Tensor = outputData[key];\n    const shape: number[] = output.dims as number[];\n    const data: Float32Array = output.data as Float32Array;\n    const tensor = ndarray(data, shape);\n    outputKVPairs.push(tensor);\n  }\n\n  return outputKVPairs;\n}\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function reference, onnxruntime-web",
      "display": "onnx.ts · runOnnxSession()",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project repository, onnxruntime-web",
      "display": "imgly/background-removal-js",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project stars, imgly/background-removal-js",
      "display": "7.4K",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project push date, imgly/background-removal-js",
      "display": "Jul 2025",
      "asOf": "2025-07-18"
    },
    "F27": {
      "label": "Library name, @tensorflow/tfjs",
      "display": "TensorFlow.js",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Monthly downloads, @tensorflow/tfjs",
      "display": "2.3M",
      "asOf": "2026-11-15"
    },
    "F29": {
      "label": "License, @tensorflow/tfjs",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Package release, @tensorflow/tfjs",
      "display": "4.22.0",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Undated package release, @tensorflow/tfjs",
      "display": "v4.22.0",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Repository stars, @tensorflow/tfjs",
      "display": "19.2K",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Model training, @tensorflow/tfjs",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "GPU execution, @tensorflow/tfjs",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Browser runtime, @tensorflow/tfjs",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Model reloading, @tensorflow/tfjs",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Output formats, @tensorflow/tfjs",
      "display": "JSON",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "Install, @tensorflow/tfjs",
      "display": "npm install @tensorflow/tfjs",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "What it does, @tensorflow/tfjs",
      "display": "Builds, trains, and deploys machine-learning models in JavaScript.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths lead, @tensorflow/tfjs",
      "display": "Builds models at different levels",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths, @tensorflow/tfjs",
      "display": "Choose low-level tensor operations or the higher-level layers API.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths lead, @tensorflow/tfjs",
      "display": "Reloads saved model topology",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "strengths, @tensorflow/tfjs",
      "display": "Save topology and weight references in a JSON model file.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations lead, @tensorflow/tfjs",
      "display": "GPU tensors need explicit cleanup",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations, @tensorflow/tfjs",
      "display": "Dispose tensors or use tidy to release unneeded WebGL memory.",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Quickstart, @tensorflow/tfjs",
      "display": "import * as tf from '@tensorflow/tfjs';\n\n// Define a model for linear regression.\nconst model = tf.sequential();\nmodel.add(tf.layers.dense({units: 1, inputShape: [1]}));\n\n// Prepare the model for training: Specify the loss and the optimizer.\nmodel.compile({loss: 'meanSquaredError', optimizer: 'sgd'});\n\n// Generate some synthetic data for training.\nconst xs = tf.tensor2d([1, 2, 3, 4], [4, 1]);\nconst ys = tf.tensor2d([1, 3, 5, 7], [4, 1]);\n\n// Train the model using the data.\nmodel.fit(xs, ys).then(() => {\n  // Use the model to do inference on a data point the model hasn't seen before:\n  model.predict(tf.tensor2d([5], [1, 1])).print();\n});\n",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project function, @tensorflow/tfjs",
      "display": "export async function loadTruncatedMobileNet(modelOptions?: ModelOptions) {\n    const [checkpointUrl, trainingLayer] = parseModelOptions(modelOptions);\n    const mobilenet = await tf.loadLayersModel(checkpointUrl);\n\n    if (modelOptions && modelOptions.version === 1){\n        const layer = mobilenet.getLayer(trainingLayer);\n        const truncatedModel = tf.model({ inputs: mobilenet.inputs, outputs: layer.output });\n        const model = tf.sequential();\n        model.add(truncatedModel);\n        model.add(tf.layers.flatten());\n        return model;\n    }\n    else {\n        const layer = mobilenet.getLayer(trainingLayer);\n        const truncatedModel = tf.model({ inputs: mobilenet.inputs, outputs: layer.output });\n        const model = tf.sequential();\n        model.add(truncatedModel);\n        model.add(tf.layers.globalAveragePooling2d({})); // go from shape [7, 7, 1280] to [1280]\n        return model;\n    }\n}\n",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project function reference, @tensorflow/tfjs",
      "display": "custom-mobilenet.ts · loadTruncatedMobileNet()",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project repository, @tensorflow/tfjs",
      "display": "googlecreativelab/teachablemachine-community",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project stars, googlecreativelab/teachablemachine-community",
      "display": "1.8K",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project push date, googlecreativelab/teachablemachine-community",
      "display": "Jun 2026",
      "asOf": "2026-06-19"
    },
    "F52": {
      "label": "Library name, brain.js",
      "display": "Brain.js",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Monthly downloads, brain.js",
      "display": "17.3K",
      "asOf": "2026-11-15"
    },
    "F54": {
      "label": "License, brain.js",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Package release, brain.js",
      "display": "2.0.0-beta.24",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Undated package release, brain.js",
      "display": "v2.0.0-beta.24",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Repository stars, brain.js",
      "display": "14.9K",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Model training, brain.js",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "GPU execution, brain.js",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Browser runtime, brain.js",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Model reloading, brain.js",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Output formats, brain.js",
      "display": "JSON",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "Install, brain.js",
      "display": "npm install brain.js",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "What it does, brain.js",
      "display": "Provides GPU-accelerated neural networks for browsers and Node.js.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths lead, brain.js",
      "display": "Exports trained network state",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths, brain.js",
      "display": "Use toJSON and fromJSON to serialize and reload a trained network.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths lead, brain.js",
      "display": "Exports standalone prediction functions",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "strengths, brain.js",
      "display": "Use toFunction to export a predictor that works like run.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations lead, brain.js",
      "display": "Feed-forward data needs scaling",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations, brain.js",
      "display": "Scale feed-forward input and output values into the required unit range.",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "limitations lead, brain.js",
      "display": "Recurrent networks need synchronous training",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "limitations, brain.js",
      "display": "Use synchronous training for recurrent RNN, GRU, and LSTM networks.",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Quickstart, brain.js",
      "display": "import { NeuralNetwork, likely } from 'brain.js';\n\nconst a = character(\n  '.#####.' +\n    '#.....#' +\n    '#.....#' +\n    '#######' +\n    '#.....#' +\n    '#.....#' +\n    '#.....#'\n);\nconst b = character(\n  '######.' +\n    '#.....#' +\n    '#.....#' +\n    '######.' +\n    '#.....#' +\n    '#.....#' +\n    '######.'\n);\nconst c = character(\n  '#######' +\n    '#......' +\n    '#......' +\n    '#......' +\n    '#......' +\n    '#......' +\n    '#######'\n);\n\n/**\n * Learn the letters A through C.\n */\nconst net = new NeuralNetwork();\nnet.train([\n  { input: a, output: { a: 1 } },\n  { input: b, output: { b: 1 } },\n  { input: c, output: { c: 1 } },\n]);\n\n/**\n * Predict the letter A, even with a pixel off.\n */\nconst result = likely(\n  character(\n    '.#####.' +\n      '#.....#' +\n      '#.....#' +\n      '###.###' +\n      '#.....#' +\n      '#.....#' +\n      '#.....#'\n  ),\n  net\n);\n\nconsole.log(result); // 'a'\n\nfunction character(string: string): number[] {\n  return string.trim().split('').map(integer);\n}\n\nfunction integer(character: string): number {\n  if (character === '#') return 1;\n  return 0;\n}\n",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Library name, ml5",
      "display": "ml5.js",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Monthly downloads, ml5",
      "display": "10.7K",
      "asOf": "2026-11-15"
    },
    "F76": {
      "label": "License, ml5",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Package release, ml5",
      "display": "1.4.0",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Undated package release, ml5",
      "display": "v1.4.0",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Repository stars, ml5",
      "display": "187",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Model training, ml5",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "GPU execution, ml5",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Browser runtime, ml5",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Model reloading, ml5",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Output formats, ml5",
      "display": "JSON",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Install, ml5",
      "display": "npm install ml5",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "What it does, ml5",
      "display": "Wraps machine-learning algorithms and models for use in the browser.",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "strengths lead, ml5",
      "display": "Tracks hands with pretrained models",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "strengths, ml5",
      "display": "Use handPose and detectStart to receive continuing hand estimates.",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "strengths lead, ml5",
      "display": "Trains custom neural networks",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths, ml5",
      "display": "Use the neuralNetwork wrapper’s train method for custom data.",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "limitations lead, ml5",
      "display": "Hand tracking starts after loading",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "limitations, ml5",
      "display": "Await handPose before starting detection in an async p5 setup.",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "Quickstart, ml5",
      "display": "let video;\nlet handPose;\nlet hands = [];\n\nasync function setup() {\n  createCanvas(640, 480);\n\n  video = createCapture(VIDEO);\n  video.size(640, 480);\n  video.hide();\n\n  handPose = await ml5.handPose();\n  handPose.detectStart(video, gotHands);\n}\n\nfunction draw() {\n  background(220);\n  image(video, 0, 0);\n\n  for (let i = 0; i < hands.length; i++) {\n    let hand = hands[i];\n    for (let j = 0; j < hand.keypoints.length; j++) {\n      let keypoint = hand.keypoints[j];\n      fill(0, 255, 0);\n      noStroke();\n      circle(keypoint.x, keypoint.y, 10);\n    }\n  }\n}\n\nfunction gotHands(results) {\n  hands = results;\n}\n\n",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "Project function, ml5",
      "display": "function setup() {\n  createCanvas(640, 480);\n  video = createCapture(VIDEO);\n  video.hide();\n  poseNet = ml5.poseNet(video, modelLoaded);\n  poseNet.on('pose', gotPoses);\n\n  let options = {\n    inputs: 34,\n    outputs: 4,\n    task: 'classification',\n    debug: true\n  }\n  brain = ml5.neuralNetwork(options);\n  const modelInfo = {\n    model: 'model2/model.json',\n    metadata: 'model2/model_meta.json',\n    weights: 'model2/model.weights.bin',\n  };\n  brain.load(modelInfo, brainLoaded);\n}\n",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "Project function reference, ml5",
      "display": "sketch.js · setup()",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Project repository, ml5",
      "display": "CodingTrain/website-archive",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Project stars, CodingTrain/website-archive",
      "display": "5.7K",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Project push date, CodingTrain/website-archive",
      "display": "Jul 2022",
      "asOf": "2022-07-05"
    },
    "F99": {
      "label": "Developer need",
      "display": "Building models with layers or tensors",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Why choose @tensorflow/tfjs",
      "display": "its low-level and layers APIs",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Developer need in introduction",
      "display": "building models with layers or tensors",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Developer need",
      "display": "Exporting a trained network’s state",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Why choose brain.js",
      "display": "the JSON serialization interface",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need in introduction",
      "display": "exporting a trained network’s state",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "When to consider @tensorflow/tfjs",
      "display": "low-level tensor and layers APIs are needed",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need",
      "display": "Running models from ONNX frameworks",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Why choose onnxruntime-web",
      "display": "the interoperable ONNX model format",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need in introduction",
      "display": "running models from ONNX frameworks",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "When to consider @tensorflow/tfjs",
      "display": "constructing a model in JavaScript is the task",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Developer need",
      "display": "Adding pretrained hand tracking to a sketch",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Why choose ml5",
      "display": "the handPose wrapper and callback",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Developer need in introduction",
      "display": "adding pretrained hand tracking to a sketch",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "When to consider @tensorflow/tfjs",
      "display": "direct tensor or layer control is needed",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "Page introduction",
      "display": "JavaScript machine learning libraries let machine-learning developers train and apply predictive models.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: Which JavaScript ML libraries train models?",
      "display": "TensorFlow.js builds and trains models with low-level or layers APIs.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Which JavaScript ML libraries train models?",
      "display": "Brain.js provides a train method on its neural network.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Which JavaScript ML libraries train models?",
      "display": "ml5 neuralNetwork exposes its own train wrapper.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Which JavaScript ML libraries train models?",
      "display": "ONNX Runtime Web training uses a dedicated training WebAssembly artifact.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Does a model JSON file contain every trained weight?",
      "display": "TensorFlow.js saves topology and weight references in JSON, with weight values in a separate binary file.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Does a model JSON file contain every trained weight?",
      "display": "ml5 saves model JSON and binary weights, with metadata handled separately.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Why does TensorFlow.js need explicit tensor cleanup?",
      "display": "Tensor data stored in WebGL textures is not automatically garbage collected by the browser.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Why does TensorFlow.js need explicit tensor cleanup?",
      "display": "Use dispose to destroy a tensor’s memory.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Can TensorFlow.js reuse a saved model in another environment?",
      "display": "A model saved in Node.js can be loaded in the browser; the save environment does not restrict the load environment.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: What data range does Brain.js expect for feed-forward training?",
      "display": "Its feed-forward training format uses unit-range numeric input and output values.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Does Brain.js async training support recurrent networks?",
      "display": "trainAsync excludes the recurrent network classes listed in its own API guidance.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Can Brain.js produce a standalone predictor?",
      "display": "toFunction returns a standalone function that acts like run.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: Does an ONNX GPU backend support every model operator?",
      "display": "The WebGL backend supports a subset of ONNX operators; check the selected provider’s support list.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Why can ONNX Runtime Web fail during deployment?",
      "display": "It cannot initialize when necessary WebAssembly assets are missing or served at an unexpected path.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: How does ONNX Runtime Web reload an existing model?",
      "display": "InferenceSession.create loads an ONNX model file asynchronously and resolves to an inference session.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: What does ml5.js backend selection apply to?",
      "display": "Its setBackend helper names the model families it affects, including neuralNetwork and handPose under the tfjs runtime.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "FAQ: When should an ml5.js hand detector start?",
      "display": "The complete current sketch awaits handPose creation before calling detectStart.",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "Library name, onnxruntime-node",
      "display": "onnxruntime-node",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Monthly downloads, onnxruntime-node",
      "display": "36.3M",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "License, onnxruntime-node",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Package release, onnxruntime-node",
      "display": "1.31.1",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Package release date, onnxruntime-node",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Install, onnxruntime-node",
      "display": "npm install onnxruntime-node",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Quickstart, onnxruntime-node",
      "display": "import * as ort from 'onnxruntime-node';\nconst session = await ort.InferenceSession.create('./model.onnx');\nconsole.log(session);\n",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Official description, onnxruntime-node",
      "display": "Runs ONNX models in Node.js through a native binding.",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Quickstart source file, onnxruntime-node",
      "display": "InferenceSessionFactory.create (hosted API recipe)",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Repository stars, onnxruntime-node",
      "display": "22.3K",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Browser runtime, onnxruntime-node",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Supervised fitting, onnxruntime-node",
      "display": "Undocumented",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Runtime scope, onnxruntime-node",
      "display": "Native Node.js ONNX execution binding",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Shared API dependency, onnxruntime-node",
      "display": "Uses onnxruntime-common",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Library name, @mediapipe/tasks-vision",
      "display": "@mediapipe/tasks-vision",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Monthly downloads, @mediapipe/tasks-vision",
      "display": "31.4M",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "License, @mediapipe/tasks-vision",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Package release, @mediapipe/tasks-vision",
      "display": "1.2.3",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Package release date, @mediapipe/tasks-vision",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Install, @mediapipe/tasks-vision",
      "display": "npm install @mediapipe/tasks-vision",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Quickstart, @mediapipe/tasks-vision",
      "display": "import { FilesetResolver, FaceLandmarker } from '@mediapipe/tasks-vision';\nconst files = await FilesetResolver.forVisionTasks('https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@1.2.3/wasm');\nconst task = await FaceLandmarker.createFromOptions(files, {\n  baseOptions: { modelAssetPath: './face_landmarker.task' }, runningMode: 'IMAGE',\n});\nconsole.log(task);\n",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Official description, @mediapipe/tasks-vision",
      "display": "Runs MediaPipe vision tasks in the browser.",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Quickstart source file, @mediapipe/tasks-vision",
      "display": "Face Landmarker Web guide (hosted API recipe)",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Repository stars, @mediapipe/tasks-vision",
      "display": "37.7K",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Browser runtime, @mediapipe/tasks-vision",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Supervised fitting, @mediapipe/tasks-vision",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Model/input scope, @mediapipe/tasks-vision",
      "display": "Ready task models and image/video inputs",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Mode/timestamp contract, @mediapipe/tasks-vision",
      "display": "IMAGE detect versus VIDEO detectForVideo",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Project function, @mediapipe/tasks-vision",
      "display": "protected async handleCustomMessage(data: any): Promise<void> {\n    if (data.type === 'DETECT_IMAGE' || data.type === 'DETECT_VIDEO') {\n      const { bitmap, timestampMs } = data;\n      const requiredMode = data.type === 'DETECT_IMAGE' ? 'IMAGE' : 'VIDEO';\n\n      if (!this.taskInstance) {\n        console.warn('FaceLandmarker not initialized yet.');\n        bitmap.close();\n        self.postMessage({ type: 'DETECT_ERROR', error: 'Not initialized' });\n        return;\n      }\n\n      if (this.currentOptions.runningMode !== requiredMode) {\n        this.currentOptions.runningMode = requiredMode;\n        await this.updateOptions();\n      }\n\n      const startTimeMs = performance.now();\n      let result: FaceLandmarkerResult;\n\n      try {\n        if (requiredMode === 'VIDEO') {\n          result = this.taskInstance.detectForVideo(bitmap, timestampMs);\n        } else {\n          result = this.taskInstance.detect(bitmap);\n        }\n      } catch (e: any) {\n        console.error('Worker detection error:', e);\n        bitmap.close();\n        self.postMessage({ type: 'DETECT_ERROR', error: e.message || 'Detection failed' });\n        return;\n      }\n\n      const inferenceTime = performance.now() - startTimeMs;\n      bitmap.close();\n\n      self.postMessage({\n        type: 'DETECT_RESULT',\n        mode: requiredMode,\n        result: result,\n        inferenceTime: inferenceTime,\n      });\n    }\n  }",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Project source file, @mediapipe/tasks-vision",
      "display": "src/workers/face-landmarker.worker.ts",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Project full_name, @mediapipe/tasks-vision",
      "display": "google-ai-edge/mediapipe-samples-web",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Project stargazers_count, @mediapipe/tasks-vision",
      "display": "113",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Library name, @huggingface/transformers",
      "display": "@huggingface/transformers",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Monthly downloads, @huggingface/transformers",
      "display": "19.1M",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "License, @huggingface/transformers",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Package release, @huggingface/transformers",
      "display": "4.3.2",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Package release date, @huggingface/transformers",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Install, @huggingface/transformers",
      "display": "npm install @huggingface/transformers",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Quickstart, @huggingface/transformers",
      "display": "import { pipeline } from '@huggingface/transformers';\nconst classify = await pipeline('sentiment-analysis');\nconsole.log(await classify('I love transformers!'));\n",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Official description, @huggingface/transformers",
      "display": "Runs Transformers models directly in the browser, with no server.",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Quickstart source file, @huggingface/transformers",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Repository stars, @huggingface/transformers",
      "display": "16.4K",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Browser runtime, @huggingface/transformers",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Supervised fitting, @huggingface/transformers",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Model/runtime format, @huggingface/transformers",
      "display": "Pretrained models exported to ONNX",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Backend choice, @huggingface/transformers",
      "display": "Browser CPU/WASM default; optional WebGPU",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Pipeline role, @huggingface/transformers",
      "display": "Preprocessing,model execution,and postprocessing grouped",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Project function, @huggingface/transformers",
      "display": "async (event) => {\n  // Retrieve the translation pipeline. When called for the first time,\n  // this will load the pipeline and save it for future use.\n  const translator = await MyTranslationPipeline.getInstance((x) => {\n    // We also add a progress callback to the pipeline so that we can\n    // track model loading.\n    self.postMessage(x);\n  });\n\n  // Capture partial output as it streams from the pipeline\n  const streamer = new TextStreamer(translator.tokenizer, {\n    skip_prompt: true,\n    skip_special_tokens: true,\n    callback_function: function (text) {\n      self.postMessage({\n        status: \"update\",\n        output: text,\n      });\n    },\n  });\n\n  // Actually perform the translation\n  const output = await translator(event.data.text, {\n    tgt_lang: event.data.tgt_lang,\n    src_lang: event.data.src_lang,\n\n    // Allows for partial output\n    streamer,\n  });\n\n  // Send the output back to the main thread\n  self.postMessage({\n    status: \"complete\",\n    output,\n  });\n}\n",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Project source file, @huggingface/transformers",
      "display": "react-translator/src/worker.js",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Project full_name, @huggingface/transformers",
      "display": "huggingface/transformers.js-examples",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Project stargazers_count, @huggingface/transformers",
      "display": "2.1K",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Library name, skmeans",
      "display": "skmeans",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Monthly downloads, skmeans",
      "display": "8.8M",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "License, skmeans",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Package release, skmeans",
      "display": "0.11.3",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Package release date, skmeans",
      "display": "Jan 2020",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Install, skmeans",
      "display": "npm install skmeans",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Quickstart, skmeans",
      "display": "import skmeans from 'skmeans';\nconst result = skmeans([[1], [2], [10], [11]], 2, 'kmpp');\nconsole.log(result.centroids);\n",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Official description, skmeans",
      "display": "Clusters one-dimensional and multidimensional data with k-means and k-means++ in Node.js and the browser.",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Quickstart source file, skmeans",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Repository stars, skmeans",
      "display": "76",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Browser runtime, skmeans",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Supervised fitting, skmeans",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Estimator role, skmeans",
      "display": "Unsupervised k-means/k-means++ on numeric data",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Initialization, skmeans",
      "display": "Custom starting centroids and k-means++ options",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Library name, @tensorflow/tfjs",
      "display": "@tensorflow/tfjs",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Monthly downloads, @tensorflow/tfjs",
      "display": "2.4M",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "License, @tensorflow/tfjs",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Package release, @tensorflow/tfjs",
      "display": "4.22.0",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Package release date, @tensorflow/tfjs",
      "display": "Oct 2024",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Install, @tensorflow/tfjs",
      "display": "npm install @tensorflow/tfjs",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Quickstart, @tensorflow/tfjs",
      "display": "import * as tf from '@tensorflow/tfjs';\nconst model = tf.sequential();\nmodel.add(tf.layers.dense({ units: 1, inputShape: [1] }));\nmodel.compile({ loss: 'meanSquaredError', optimizer: 'sgd' });\nconst xs = tf.tensor2d([1, 2, 3, 4], [4, 1]);\nconst ys = tf.tensor2d([1, 3, 5, 7], [4, 1]);\nawait model.fit(xs, ys, { epochs: 1 });\nconst prediction = model.predict(tf.tensor2d([5], [1, 1]));\nprediction.print();\n",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Repository stars, @tensorflow/tfjs",
      "display": "19.2K",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Browser runtime, @tensorflow/tfjs",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Supervised fitting, @tensorflow/tfjs",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "API layers, @tensorflow/tfjs",
      "display": "Tensor operations,gradients,and trainable Layers models",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Saved models, @tensorflow/tfjs",
      "display": "Model topology plus weight assets",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Project function, @tensorflow/tfjs",
      "display": "export async function loadTruncatedMobileNet(modelOptions?: ModelOptions) {\n    const [checkpointUrl, trainingLayer] = parseModelOptions(modelOptions);\n    const mobilenet = await tf.loadLayersModel(checkpointUrl);\n\n    if (modelOptions && modelOptions.version === 1){\n        const layer = mobilenet.getLayer(trainingLayer);\n        const truncatedModel = tf.model({ inputs: mobilenet.inputs, outputs: layer.output });\n        const model = tf.sequential();\n        model.add(truncatedModel);\n        model.add(tf.layers.flatten());\n        return model;\n    }\n    else {\n        const layer = mobilenet.getLayer(trainingLayer);\n        const truncatedModel = tf.model({ inputs: mobilenet.inputs, outputs: layer.output });\n        const model = tf.sequential();\n        model.add(truncatedModel);\n        model.add(tf.layers.globalAveragePooling2d({})); // go from shape [7, 7, 1280] to [1280]\n        return model;\n    }\n}",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Project source file, @tensorflow/tfjs",
      "display": "libraries/image/src/custom-mobilenet.ts",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Project full_name, @tensorflow/tfjs",
      "display": "googlecreativelab/teachablemachine-community",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Project stargazers_count, @tensorflow/tfjs",
      "display": "1.8K",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Library name, ml-kmeans",
      "display": "ml-kmeans",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Monthly downloads, ml-kmeans",
      "display": "805.4K",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "License, ml-kmeans",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Package release, ml-kmeans",
      "display": "7.0.1",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Package release date, ml-kmeans",
      "display": "Jun 2026",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Install, ml-kmeans",
      "display": "npm install ml-kmeans",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Quickstart, ml-kmeans",
      "display": "import { kmeans } from 'ml-kmeans';\nconst result = kmeans([[1], [2], [10], [11]], 2, { seed: 42 });\nconsole.log(result.clusters);\n",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Official description, ml-kmeans",
      "display": "Groups numeric data with k-means clustering.",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Quickstart source file, ml-kmeans",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Repository stars, ml-kmeans",
      "display": "105",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Browser runtime, ml-kmeans",
      "display": "Undocumented",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Supervised fitting, ml-kmeans",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Estimator role, ml-kmeans",
      "display": "Unsupervised numeric k-means clustering",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Result contract, ml-kmeans",
      "display": "Cluster assignments and centroid vectors",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Library name, ml-logistic-regression",
      "display": "ml-logistic-regression",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Monthly downloads, ml-logistic-regression",
      "display": "769.8K",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "License, ml-logistic-regression",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Package release, ml-logistic-regression",
      "display": "2.0.0",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Package release date, ml-logistic-regression",
      "display": "May 2020",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Install, ml-logistic-regression",
      "display": "npm install ml-logistic-regression ml-matrix",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Quickstart, ml-logistic-regression",
      "display": "const { Matrix } = require('ml-matrix');\nconst LogisticRegression = require('ml-logistic-regression');\nconst model = new LogisticRegression({ numSteps: 1000, learningRate: 5e-3 });\nmodel.train(new Matrix([[0], [1], [2], [3]]), Matrix.columnVector([0, 0, 1, 1]));\nconsole.log(model.predict(new Matrix([[1.5]])));\n",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Official description, ml-logistic-regression",
      "display": "Fits logistic regression models.",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Quickstart source file, ml-logistic-regression",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Repository stars, ml-logistic-regression",
      "display": "18",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Browser runtime, ml-logistic-regression",
      "display": "Undocumented",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Supervised fitting, ml-logistic-regression",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Estimator role, ml-logistic-regression",
      "display": "Supervised logistic classifier over numeric Matrix inputs",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Project function, ml-logistic-regression",
      "display": "#retrain(): void {\n        const X: FeatureVector[] = [\n            [0, 1],\n            [1, 0],\n        ];\n        const Y: number[] = [0, 1];\n\n        for (const [renderingType, urlsByLabel] of this.#state.currentValue.detectionResults.entries()) {\n            for (const [label, urls] of urlsByLabel) {\n                for (const url of urls) {\n                    X.push(this.#calculateFeatureVector(url, label));\n                    Y.push(renderingType === 'static' ? 1 : 0);\n                }\n            }\n        }\n\n        this.#state.currentValue.logreg.train(new Matrix(X), Matrix.columnVector(Y));\n    }",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Project source file, ml-logistic-regression",
      "display": "packages/playwright-crawler/src/internals/utils/rendering-type-prediction.ts",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Project full_name, ml-logistic-regression",
      "display": "apify/crawlee",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Project stargazers_count, ml-logistic-regression",
      "display": "26.5K",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Library name, @mlc-ai/web-llm",
      "display": "@mlc-ai/web-llm",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Monthly downloads, @mlc-ai/web-llm",
      "display": "754.5K",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "License, @mlc-ai/web-llm",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Package release, @mlc-ai/web-llm",
      "display": "0.2.89",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Package release date, @mlc-ai/web-llm",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Install, @mlc-ai/web-llm",
      "display": "npm install @mlc-ai/web-llm",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Quickstart, @mlc-ai/web-llm",
      "display": "import { CreateMLCEngine } from '@mlc-ai/web-llm';\nconst engine = await CreateMLCEngine('Llama-3.1-8B-Instruct-q4f32_1-MLC');\nconst reply = await engine.chat.completions.create({ messages: [{ role: 'user', content: 'Hello' }] });\nconsole.log(reply.choices[0].message.content);\n",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Official description, @mlc-ai/web-llm",
      "display": "Runs hardware-accelerated language model chats in the browser.",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Quickstart source file, @mlc-ai/web-llm",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Repository stars, @mlc-ai/web-llm",
      "display": "19.4K",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Browser runtime, @mlc-ai/web-llm",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Supervised fitting, @mlc-ai/web-llm",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Runtime/model format, @mlc-ai/web-llm",
      "display": "WebGPU engine with compiled MLC model assets",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Preset model identity, @mlc-ai/web-llm",
      "display": "Llama-3.1-8B-Instruct-q4f32_1-MLC remains in own current usage",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Chat request/response, @mlc-ai/web-llm",
      "display": "OpenAI-style completion schema with optional usage",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best JavaScript machine learning libraries TensorFlow.js Brain.js ONNX Runtime Web ml5 code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
