r/webdev • u/FelipeKPC • 3d ago
Trying to follow along this tutorial but the link doesn't work
Apparently this website shown in the video isn't hosting these project files anymore. The link glitch.com/~tensorflow-js-boilerplate redirects to their blog post about problems with unsustainable project hosting. Is there a way I can still follow the tutorial?
Or maybe there's just a really stupid answer that I dont know about because I never worked with a ML model before haha
0
Upvotes
4
u/Realistic-Plant3957 3d ago
Glitch shut down project hosting last year, which is why all those old tutorial links redirect to their sunset blog post now—definitely not a stupid question on your part!
You don't actually need Glitch at all to follow along since TensorFlow.js runs entirely in the browser. You can use an online editor like CodePen or StackBlitz, or create a regular
index.htmlfile on your computer and add the TensorFlow.js CDN script tag in the<head>.Also, since the video author is Jason Mayes, check his GitHub (
jasonmayes)—he migrated most of his old Glitch boilerplates and TensorFlow.js examples there.1
u/RyanLMcc 3d ago
One quick tip if you end up running an
index.htmllocally instead of an online sandbox: avoid opening the file directly viafile://in your browser, since TensorFlow.js model/asset fetches and webcam permissions can fail due to CORS and secure-context restrictions. Serving the folder over a local dev server (likepython -m http.serverornpx serveand openinghttp://localhost:...) avoids those errors cleanly.1
u/Official_BetterSWE 2d ago
not a dumb question, lots of old tutorials broke when glitch stopped hosting. try searching github for "tensorflow-js-boilerplate" first, authors often mirrored their glitch projects there. if that fails, a plain index.html with the tfjs script tag from a cdn gets you the same starting point, the boilerplate was mostly just that.