Offline Javascript AI-Agents

to make Ai-Agents with sensing and actuating abilities you need to understand LLM's. This page so far in January 2025 is about simpilfying and moving offline LLM's. Later wwe will start using webSerial to connect arduinos to these desktop LLM's. Eventually we will use edgeAI devices to do the same, add IoT such as LoRa and you have an amazing combination of artificial brains and low energy microcontrollers working together, but best of all, simple enough that any High School student can learn.

The Github for this is at https://github.com/hpssjellis/my-examples-of-ai-agents

Nano33-Ble-Sense Intelligent Ai-Agent using deepseekR1 with webSerial

  • tinyMLjs/nano33-ble-sense-ai-agent00.html nano33Ble-Sense most stable Ai-Agent- intelligent Arduino Nano33-ble-sense
  • tinyMLjs/nano33-ble-sense-ai-agent01.html OK
  • tinyMLjs/nano33-ble-sense-ai-agent02.html OK
  • tinyMLjs/nano33-ble-sense-ai-agent03.html better
  • tinyMLjs/nano33-ble-sense-ai-agent04.html Starting to work. 1st stable
  • tinyMLjs/nano33-ble-sense-ai-agent05.html bad
  • tinyMLjs/nano33-ble-sense-ai-agent06.html bad
  • tinyMLjs/nano33-ble-sense-ai-agent07.html
  • tinyMLjs/nano33-ble-sense-ai-agent08.html new 2nd stable
  • tinyMLjs/nano33-ble-sense-ai-agent09.html new favorite fixed auto scrolling of the LLM New 3rd Stable
  • tinyMLjs/nano33-ble-sense-ai-agent10.html



  • Web-GPU-deepseek-R1 crazy fast - working Jan 29, 2025

  • https://hpssjellis.github.io/my-examples-of-transformersJS/public/deepseek-r1-webgpu/deepseek-r1-webgpu-00.htmlDeepSeek-R1-web GPU



  • Web-GPU- Janus-Pro deepseek-R1 text to image - working Jan 31, 2025

  • https://hpssjellis.github.io/my-examples-of-transformersJS/public/janus-pro/janus-pro-to-image-00.html



  • Web LLM Deepseek R1

  • web-llm/deepseek-r1-00.htmlDeepSeek-R1-Distill-Qwen-7B-q4f16_1-MLC Most stable
  • web-llm/deepseek-r1-01.html
  • web-llm/deepseek-r1-02.html
  • web-llm/deepseek-r1-03.html
  • web-llm/deepseek-r1-04.html
  • web-llm/deepseek-r1-05.html
  • Web LLM barebones deepseek

  • web-llm/bare-bones01.htmlDeepSeek-R1-Distill-Qwen-7B-q4f16_1-MLC Most stable
  • web-llm/bare-bones02.html
  • web-llm/bare-bones03.html
  • web-llm/bare-bones04.html
  • web-llm/bare-bones05.html
  • web-llm/bare-bones06.html This is nice. Can run locally with WiFi to download the model then runs complete client-side
  • web-llm/bare-bones07.html
  • web-llm/bare-bones08.html
  • web-llm/bare-bones09.html
  • web-llm/bare-bones10.html All cool but slow to show anything
  • Web LLM - clientside

  • web-llm/web-llm00.html Always the most stable demo for this set

  • web-llm/web-llm18.htmlThis is fine
  • web-llm/web-llm19.htmlSimpilyfying code
  • web-llm/web-llm20.htmlTrying to make a stop button
  • web-llm/web-llm21.html
  • web-llm/web-llm22.htmlbad
  • web-llm/web-llm23.htmlbad
  • web-llm/web-llm24.htmltrying to save and reload the model from local storage. still have issues with it never stopping
  • web-llm/web-llm25.htmlnow trying to save the cached shard files
  • web-llm/web-llm26.htmlbad
  • web-llm/web-llm27.htmlbad
  • web-llm/web-llm28.htmlbad
  • web-llm/web-llm29.htmlcrap
  • web-llm/web-llm30.htmlcrap
  • web-llm/web-llm31.htmlBetter
  • web-llm/web-llm32.htmlThis is the new default. I like it. Still needs a stop button.
  • web-llm/web-llm33.html
  • web-llm/web-llm34.html minor improvements
  • web-llm/web-llm35.htmlsimpler code
  • web-llm/web-llm36.htmlbad
  • web-llm/web-llm37.htmllearning about modules
  • web-llm/web-llm39.html fixing the -1k download issue
  • web-llm/web-llm40.htmlSimplifying code and a few improvements
  • web-llm/web-llm41.html
  • web-llm/web-llm42.html
  • web-llm/web-llm43.html
  • web-llm/web-llm44.html
  • Web-LLM Resources
    resources at: https://blog.mlc.ai/2024/06/13/webllm-a-high-performance-in-browser-llm-inference-engine

    WebGPU Transformer.js

  • transformerjs/transformersjs01.htmlGenerated by ChatGPT as a starting point-bad
  • transformerjs/transformersjs02.htmlbad
  • transformerjs/transformersjs03.htmlWorks but bad
  • transformerjs/transformersjs04.html
  • transformerjs/transformersjs05.html
  • transformerjs/transformersjs06.html

    Web LLM News - clientside

  • web-llm/web-llm-news00.html Always the most stable demo for this set of news with LLM as an AI-agent

  • web-llm/web-llm-news01.html
  • web-llm/web-llm-news02.html
  • web-llm/web-llm-news03.html
  • web-llm/web-llm-news04.html
  • web-llm/web-llm-news05.html
  • web-llm/web-llm-news06.html

    Just News Feeds

  • web-llm/news01.html
  • web-llm/news02.html
  • web-llm/news03.html
  • web-llm/news04.html
  • web-llm/news05.html
  • web-llm/news06.html
  • web-llm/news07.html
  • web-llm/news08.html

    CodeSandBox - Backend online free

  • ...Not doing this yet until client-side fails on some tasks
  • ...
  • ...
  • ...
  • ...
  • ...
  • GoDotEngine.org - Backend online free, this one for games but might be able to edit it

  • ...Not doing this yet until client-side fails on some tasks
  • ...
  • ...
  • ...
  • ...
  • ...