Back to browse
GitHub Repository

A minimal, production-tested pattern for running ONNX models entirely on-device in a Web Worker (Next.js compatible)

1 starsJavaScript

Tiny ONNX Runtime Web Worker Starter

by lumli·Jul 10, 2026·1 point·0 comments

AI Analysis

MidCozy

Boilerplate template for ONNX workers when the pattern is well-documented elsewhere.

Strengths
  • Classic worker with static URLs avoids Next.js dev/prod hashing issues
  • Promise-based client wrapper with optional React hook included
  • Protocol tests verify postMessage communication reliability
Weaknesses
  • 1 star and 0 forks indicates minimal community validation
  • Pattern is straightforward enough to implement from documentation
Target Audience

Frontend developers, Next.js users building ML features

Similar To

onnxruntime-web examples · transformers.js · MediaPipe tasks

Similar Projects

AI/ML●●●Banger

MicroGPT-C – C99 GPT for Edge Training and Tiny Model Pipelines

Karpathy's microgpt in C99, proves tiny coordinated models beat single large models on logic.

WizardryBig Brain
Ajay__soni
104mo ago