rondagdag/client-side-ai-demo

9

stars

40

commits

HTML

primary language

Jul 22, 2025

updated

README

Client-Side AI Demos

A collection of demos showcasing various client-side AI capabilities and APIs.

Running Locally

  1. Enable Chrome Flags (Required for WebGPU demos):

    • Open Chrome and navigate to chrome://flags/
    • Enable the following flags:
      • #enable-webgpu-developer-features
      • #enable-unsafe-webgpu
    • Restart Chrome for the changes to take effect
  2. Make sure you have Node.js installed

  3. Download the Gemma 2B model:

    • Visit Kaggle Models - Gemma 2B
    • Download the gemma2-2b-it-gpu-int8.bin file
    • Place it in the models folder of this project
  4. Open a terminal in this directory

  5. Run the following command to start a local server:

    npx http-server
    
  6. Open your browser and navigate to http://localhost:8080

  7. You should see the landing page with links to all available demos

Available Demos

Demo NameDescription
TensorFlow.js ToxicityDemonstrates real-time text toxicity detection using TensorFlow.js models in the browser
Quick Start ONNX Runtime WebA minimalist demo showing how to run ONNX models directly in the browser using both ESM and traditional script tag approaches
MediaPipe LLM DemoDemonstrates interactive machine learning using MediaPipe combined with Gemma 2B model for efficient client-side inference
WebLLM Simple ChatA lightweight chat interface demonstrating how to integrate and use large language models directly in the browser
Video Object DetectionLive object detection and tracking in video streams using browser-based ML models
Phi 3.5 WebGPU DemoLeverages WebGPU technology to run the Phi-3.5 language model directly in the browser for enhanced AI computations
Prompt API PlaygroundAn interactive environment to experiment with various prompt APIs and test different AI query patterns in real-time
Right Click for SuperpowersEnhances the browser's context menu with AI-powered capabilities for smarter interactions
Summarization API PlaygroundInteractive testing environment for text summarization algorithms with real-time API integration
Translation & Language Detection API PlaygroundA comprehensive testing ground for translation and language detection capabilities using client-side APIs
Explain in GenerationsA browser extension that breaks down complex topics into different levels of understanding, helping users grasp concepts progressively
Next.js Client DemoA client-side demo powered by Next.js showcasing dynamic user interactions and server-side rendering features
Techstack Time MachineA tool that visualizes and analyzes the evolution of technology stacks over time
Video Background RemovalReal-time video background removal using ML models running entirely in the browser

Each demo is self-contained in its own directory and can be accessed through the main landing page.

Contributors

rondagdag

40 commits

rondagdag/client-side-ai-demo

9

stars

40

commits

HTML

primary language

Jul 22, 2025

updated

README

Client-Side AI Demos

A collection of demos showcasing various client-side AI capabilities and APIs.

Running Locally

  1. Enable Chrome Flags (Required for WebGPU demos):

    • Open Chrome and navigate to chrome://flags/
    • Enable the following flags:
      • #enable-webgpu-developer-features
      • #enable-unsafe-webgpu
    • Restart Chrome for the changes to take effect
  2. Make sure you have Node.js installed

  3. Download the Gemma 2B model:

    • Visit Kaggle Models - Gemma 2B
    • Download the gemma2-2b-it-gpu-int8.bin file
    • Place it in the models folder of this project
  4. Open a terminal in this directory

  5. Run the following command to start a local server:

    npx http-server
    
  6. Open your browser and navigate to http://localhost:8080

  7. You should see the landing page with links to all available demos

Available Demos

Demo NameDescription
TensorFlow.js ToxicityDemonstrates real-time text toxicity detection using TensorFlow.js models in the browser
Quick Start ONNX Runtime WebA minimalist demo showing how to run ONNX models directly in the browser using both ESM and traditional script tag approaches
MediaPipe LLM DemoDemonstrates interactive machine learning using MediaPipe combined with Gemma 2B model for efficient client-side inference
WebLLM Simple ChatA lightweight chat interface demonstrating how to integrate and use large language models directly in the browser
Video Object DetectionLive object detection and tracking in video streams using browser-based ML models
Phi 3.5 WebGPU DemoLeverages WebGPU technology to run the Phi-3.5 language model directly in the browser for enhanced AI computations
Prompt API PlaygroundAn interactive environment to experiment with various prompt APIs and test different AI query patterns in real-time
Right Click for SuperpowersEnhances the browser's context menu with AI-powered capabilities for smarter interactions
Summarization API PlaygroundInteractive testing environment for text summarization algorithms with real-time API integration
Translation & Language Detection API PlaygroundA comprehensive testing ground for translation and language detection capabilities using client-side APIs
Explain in GenerationsA browser extension that breaks down complex topics into different levels of understanding, helping users grasp concepts progressively
Next.js Client DemoA client-side demo powered by Next.js showcasing dynamic user interactions and server-side rendering features
Techstack Time MachineA tool that visualizes and analyzes the evolution of technology stacks over time
Video Background RemovalReal-time video background removal using ML models running entirely in the browser

Each demo is self-contained in its own directory and can be accessed through the main landing page.

Contributors

rondagdag

40 commits

Languages

HTML

75.9%

JavaScript

13.6%

TypeScript

7.8%

CSS

2.7%