AI & Large Language Models
17 articles · From fundamentals to advanced browser AI
Learn how to run LLMs, generate images with Stable Diffusion, and build ML pipelines — all locally in the browser using WebGPU, TensorFlow.js, and WebLLM. Start from the basics and work up to production-ready AI applications.
Start Here
Machine Learning in JavaScript
Foundational overview of ML concepts and how they translate to JavaScript in the browser.
Machine Learning with TensorFlow.js
Build and train your first neural network using TensorFlow.js — no Python needed.
Using Brain.js for Machine Learning
A simpler alternative to TensorFlow — train neural nets with minimal code using Brain.js.
Text Classification in JavaScript
Classify text content using NLP techniques directly in the browser.
Building Web-Based ML Models with TensorFlow.js
Deeper dive into building, training, and deploying ML models entirely in the browser.
Pretrained TensorFlow.js Models in Browser
Use pre-trained models for image recognition, pose detection, and toxicity classification.
Reinforcement Learning in JavaScript
Train agents that learn from rewards — Q-learning and policy gradient methods in JS.
LLMs & Generative AI
LLMs in the Browser with WebLLM
Run Llama, Phi, and Gemma locally using WebGPU — the core of browser-based AI chat.
Accessing ChatGPT-4 via OpenAI APIs
Call cloud LLMs from JavaScript when you need more power than local models provide.
OpenAI GPT Models in JavaScript
Use OpenAI's generative models directly in Scribbler notebooks for rapid prototyping.
Google Gemini API in Scribbler
Connect to Gemini AI Studio for multimodal generative AI experiments.
AI Image Generation with Stable Diffusion
Generate images from text prompts using Web Stable Diffusion — entirely on-device.
Stable Diffusion in the Browser
The future of local AI image generation — how it works and what's possible today.
Stable Diffusion with WebNN + ONNX Runtime
Next-gen browser inference using WebNN for hardware-accelerated image generation.
Browser-Native AI Notebooks
Why the future of AI coding environments runs in your browser — no cloud needed.