Перейти к содержимому

ByteVibe — Вайб IT-мира!

ByteVibe — свежие IT-новости, обзоры гаджетов, аналитика технологий и тренды цифрового мира. Будь в курсе главных событий IT-индустрии!

Меню
  • Главная
  • Новости
  • Статьи
Меню
WASM-агенты: ИИ теперь

WASM-агенты: ИИ теперь работает прямо в браузере! 🤯

Опубликовано на 04.07.2025

Новый прорыв: ИИ-агенты на базе WebAssembly теперь могут выполняться в вашем браузере без серверов. Представьте — умные помощники, аналитика и автоматизация задач работают локально! 💻✨ Идеально для разработчиков и стартапов. Готовы ли вы к эпохе «браузерного ИИ»?


Wasm-agents: AI agents running in your browser
One of the main barriers to a wider adoption of open-source agents is the dependency on extra tools and frameworks that need to be installed before the agents can be run. In this post, we show how to write agents as HTML files, which can just be opened and run in a browser.
Davide Eynard
Jul 3, 2025
—
7 min read
Louis Figuier/
Beaumont Machine for Digging Tunnels in Soft Rock
One of the main barriers to a wider adoption and experimentation with open-source agents is the dependency on extra tools and frameworks that need to be installed before the agents can be run. In this post, we introduce the
Wasm agents blueprint
, aimed at showing how to write agents as HTML files, which can just be opened and run in a browser, without the need for any extra dependencies. This is still an experimental project, but we chose to share it early so that people can both test its capabilities and build new applications based on it.
Why?
While developing our
agent-factory
tool, we have been wondering about ways to package an agent so it could be easily shared and executed on different systems. In the past, we addressed a similar problem with
marimo
, both when trying to
convey our thoughts with code examples
and when introducing
new tools for algorithmic timelines
. In both cases, the main advantage was that people could run code directly on their devices, more precisely inside their own browsers, thanks to the possibility of exporting marimo notebooks as standalone HTML files powered by
WebAssembly
and
Pyodide
.
WebAssembly
(Wasm) is a binary instruction format that allows code written in languages like C, C++, Rust, and Python to run at near-native speed in web browsers.
Pyodide
is a Python distribution for the browser that runs entirely in WebAssembly, enabling you to execute Python code and many of its libraries directly in web applications. As most of our agentic code is in Python, it was quite natural for us to think about adopting a similar solution: the result is a collection of simple, single-file agents that run in a browser tab, in an environment that is sandboxed by construction, and without the need to manually install extra libraries or development frameworks.
How it works
All our demos are standalone HTML files, which contain both the UI and the running code of an agent. If you look at their source code, you will see three calls to the
pyodide.runPythonAsync
command. They deal, respectively, with installing the required Python dependencies (with the
micropip
customisation Pyodide library); disabling traces (this is currently required only when running the openai-agents framework – you can find more information in the customization section below); and running the actual agent code.
The agent code is nothing more than a Python script that relies on the
openai-agents-python
library to run an AI agent backed by an LLM served via an OpenAI-compatible API. What this means is that while it runs with OpenAI out-of-the-box (using gpt-4o as a default model), you can also specify a different, self-hosted model, as long as it is compatible with the API. This includes, for instance, models served via
HuggingFace TGI
,
vLLM
, or even
Ollama
running locally on your computer.
Give it a try
If you want to try our agents, follow the
setup instructions
in our GitHub repo. The TL/DR is: if you have a ready-to-use OpenAI API key, you can just paste it into the provided config.js file. If instead you want to try a local model, you should make sure that it is running and that you know the URL to access it. For example, if you want to run qwen3:8b on Ollama, you should first download the application, then the model (with Ollama pull qwen3:8b). After that, open one of the HTML files in your browser and follow the instructions provided: your agent should be up and running in a few seconds.
What can I do?
Our demos show some of the things you can do with Wasm agents, but I think we just scratched the surface of what one could do! So take these as just some examples you can start with, and play with them to test their capabilities, and learn how to build new applications with them. In the
/demos
directory, you will find the following HTML files:
hello_agent.html
This is a simple conversational agent with customizable instructions, useful for understanding the basics of WASM-based agents. handoff_demo.html
a multi-agent system that routes requests to specialized agents based on the characteristics of the prompt. tool_calling.html
A more advanced agent with built-in tools for (more or less) practical tasks. The count_character_occurrences tool addresses the famous «How many Rs in strawberry?» problem. The visit_webpage tool downloads web content and converts it to markdown, and can be used by the agent to seek up-to-date information about the question directly on the web. ollama_local.html
An agent which relies on local models served via Ollama, good for offline tasks or when you don’t want your information to leak to external AI services. NOTE: If you want to run tools that get information from some other server into your HTML page (e.g. the visit_webpage tool or the Ollama server itself), you need to make sure that CORS is enabled for those servers. For more information, refer to the troubleshooting section in our GitHub repository. An in-browser agent running with a self-hosted local model, accessing just the two URLs required to answer the user’s question. Known limitations We decided to share these demos very early because we are very excited about them, but we are aware that the examples we are sharing are still limited in scope. In particular: We are limited to the openai-agents framework
OpenAI’s is just one of too many (which is the reason why we built any-agent ). The reason we chose it is because all of its dependencies were working with Pyodide. Still, we had to compromise on disabling agent traces (which are very useful to understand how an agent works) because they broke the interpreter. We tried other frameworks, but each came with its own caveats. For instance, smolagents traces implementation works well in the browser, but the support for non-HuggingFace models is provided via LiteLLM , which is not supported by Pyodide. CORS, CORS everywhere
Code mixing information retrieved from different URLs is insecure by default and typically blocked by modern browsers. For this reason, as soon as you start enabling tools that retrieve web pages, or even a local inference engine, you will need to disable CORS (and remember to enable it again once you are done!). Assume an inference engine
We believe this is still a strong assumption for now, because if you want to use an open-source model, you will still have to go through an additional installation process. However, we believe there are projects, such as the Firefox Webextension AI API , which might make this step easier. Models are heavy
Not everyone can run large models, and we want to be mindful of that. The local example we provide might not work on your hardware. In that case, we’d suggest you play with smaller models / shorter context lengths (see next section). Customize Break it Following the previous section, we changed the title of this section accordingly 😁 and we suggest you to: Learn how this works
All the code is there, and except for the OpenAI-based examples, everything runs on your computer. So run all the examples multiple times and play with their code until you are sure you know the basics. Play with prompts
Look at the example below to see how you can challenge an LLM and verify whether tool calling actually helps or not. Understand non-determinism
When asked multiple times, LLMs do not usually provide the same answer to the same question. Are all the answers correct? Likely not. Learn peculiarities of different models
If you can run self-hosted models with Ollama, play with different LLMs and learn which one works best for your case. For instance, does the thinking mode improve the model’s answers? (Hint: you can add /think or /no_think to explicitly enable/disable it on qwen3). Or, are all models good at tool calling? (Hint: apparently not , but which one is best?) Test the limits of the models… and your hardware
Saying “we use x and y, so we theoretically support any model” is (relatively) easy. Actually, running any model on your hardware is not as easy though. While I could run qwen3:8b with a (unnecessary) 40K tokens context-length on my M3 MacBook, I can barely run the 1.7b model with a much shorter context on a Raspberry Pi 5 with 8GB RAM, and it does not return a response in time unless I increase the agent’s timeout value. And don’t get me started with the 0.6b model, which produces a lot of thinking to eventually return wrong answers. Try other agentic frameworks
We believe there is definitely value in understanding which framework works best, and if it is worth helping with supporting Wasm versions of the libraries that currently do not run in browsers yet. Tools, tools, tools
There are definitely some limits to what can be run in a browser, and my assumption is that what made agents so trendy lately (namely, the possibility of empowering LLMs with tools) is going to be quite limited. I don’t see myself spinning up a new MCP server from a browser tab, but I am quite sure that there are already many things one could do if only they could tinker with some simple, self-contained code . Still, I’d like to see where things start breaking and what we can do within those limits. Someone has decided to stress-test qwen3:8b on the strawberry problem… We are lucky that there is a tool it can call to do the counting for it! Conclusions I personally do not know yet whether WebAssembly agents are a great idea or just a funny hack, but they resonate so much with so many concepts I (can I say we?) care about (owning our tools, being allowed to tinker with them, running things locally, protecting our data, even the good old powerbrowsing !) that I believe not sharing them as soon as possible would have been a real shame. We’d be glad to know if you are having fun with them, and to learn what you learned. So please feel free to reach out on our Discord , on GitHub , or directly to me. In the meantime, have fun with your Wasm agents!

Добавить комментарий Отменить ответ

Ваш адрес email не будет опубликован. Обязательные поля помечены *

Свежие записи

  • Explainable RL: Декодируем «Чёрный Ящик» ИИ с Интерпретируемым Обучением с Подкреплением
  • Autonomous Edge Clusters: Развёртывание Kubernetes на беспилотных станциях будущего
  • Neuromorphic Sensors: Полное руководство по Event-Based камерам и обработке событий
  • Server-Side WebAssembly (SSWASM): Революция в Бэкенд-Разработке
  • Data Observability для ETL: Полное руководство по автоматическому мониторингу пайплайнов

Свежие комментарии

Нет комментариев для просмотра.

Архивы

  • Февраль 2026
  • Январь 2026
  • Ноябрь 2025
  • Октябрь 2025
  • Сентябрь 2025
  • Август 2025
  • Июль 2025
  • Июнь 2025
  • Май 2025
  • Апрель 2025

Рубрики

  • AI for Biology
  • Android Development
  • Angular Framework
  • API Development
  • API Разработка
  • Artificial Intelligence / Оптимизация алгоритмов
  • Backend Development
  • Big Data и распределённые системы
  • Blockchain Development
  • Cloud Architecture
  • Cloud Computing
  • Cloud Computing / DevOps
  • Cloud Computing / Distributed Systems
  • Cloud Computing / Serverless Architecture
  • Cloud Infrastructure
  • Cloud Native / DevOps
  • Cloud Native Технологии
  • Cloud Security / Data Protection
  • Cloud Security / DevOps
  • Cloud Security and Compliance
  • Cloud-Native Development
  • Data Engineering
  • Data Engineering / MLOps
  • Data Science
  • Data Science / Биоинформатика
  • Database Management
  • DevOps
  • DevOps и CI/CD
  • DevOps и Cloud Computing
  • DevOps и Cloud Engineering
  • DevOps и Cloud Infrastructure
  • DevOps и Cloud Security
  • DevOps и Cloud-Native Технологии
  • DevOps и Platform Engineering
  • DevOps и Site Reliability Engineering
  • DevOps и автоматизация
  • DevOps и Инфраструктура как Код (IaC)
  • DevOps и Контейнеризация
  • DevOps и Микросервисы
  • DevOps и облачные вычисления
  • DevOps и облачные технологии
  • DevOps и Платформенный инжиниринг
  • DevOps и Системная Инженерия
  • DevOps и Системное администрирование
  • DevOps и Управление Инфраструктурой
  • DevOps и управление разработкой
  • DevOps/Cloud-Native технологии
  • DevOps/Безопасность
  • DevOps/Инструменты разработки
  • DevSecOps
  • DevSecOps/Cloud Security
  • Digital Health Technologies
  • Distributed Systems
  • E-commerce Architecture
  • Edge Computing
  • Frontend Architecture
  • Frontend Development
  • Frontend Разработка
  • Frontend-разработка
  • Game Development
  • Google Cloud / Infrastructure as Code
  • HealthTech
  • iOS Development
  • IT-безопасность
  • IT-разработка
  • Kubernetes и контейнеризация
  • Kubernetes Оптимизация
  • Kubernetes Сетевая Безопасность
  • Kubernetes/GitOps
  • Machine Learning
  • Machine Learning / Distributed Systems
  • Machine Learning Operations (MLOps)
  • Machine Learning Security
  • Machine Learning/Artificial Intelligence
  • MLOps/DevOps
  • Mobile App Marketing
  • Mobile Development
  • Quantum Computing
  • Software Architecture
  • Software Development
  • Software Development Methodologies
  • Web Development
  • Web Development / Computer Graphics
  • Web Development / Virtual & Augmented Reality
  • Web Development / Virtual Reality
  • Web Performance
  • Web3 и блокчейн разработка
  • WebAssembly
  • Архитектура данных
  • Архитектура Микросервисов
  • Архитектура ПО
  • Архитектура ПО и DevOps
  • Архитектура программного обеспечения
  • Архитектура распределенных систем
  • Базы данных
  • Базы данных
  • Базы данных / Big Data / Data Engineering
  • Базы данных и аналитика
  • Базы данных и кэширование
  • Базы данных и потоковая обработка
  • Базы данных и распределённые системы
  • Базы данных и хранилища
  • Базы данных и хранилища данных
  • Без рубрики
  • Блокчейн и Web3 разработка
  • Блокчейн и Web3-разработка
  • Блокчейн и децентрализованные технологии
  • Блокчейн и Криптовалюты
  • Блокчейн и Криптография
  • Блокчейн и Криптотехнологии
  • Блокчейн Разработка
  • Веб-дизайн и UX/UI
  • Веб-производительность
  • Веб-производительность и оптимизация
  • Веб-разработка / Безопасность
  • Веб-разработка / Безопасность и Конфиденциальность
  • Веб-разработка / Компьютерная графика
  • Веб-разработка / Компьютерная графика / Производительность
  • Веб-разработка / Оптимизация производительности
  • Веб-разработка / Системная архитектура
  • Веб-разработка и Data Science
  • Веб-разработка и UX
  • Веб-разработка и безопасность
  • Веб-разработка и Оптимизация
  • Видеотехнологии
  • Высоконагруженные распределённые системы
  • Высокопроизводительные вычисления
  • Децентрализованные технологии
  • Дизайн пользовательских интерфейсов
  • Дизайн пользовательского опыта
  • Инновационные вычислительные технологии
  • Инструменты мониторинга и Observability
  • Инструменты разработчика
  • Интернет вещей (IoT)
  • Интернет Вещей (IoT)
  • Информационная безопасность
  • Инфраструктура и DevOps
  • Искусственный интеллект
  • Искусственный интеллект / Data Science
  • Искусственный интеллект / Аппаратное обеспечение
  • Искусственный интеллект / Безопасность
  • Искусственный интеллект / Машинное обучение
  • Искусственный интеллект / Обработка естественного языка
  • Искусственный интеллект / Регуляторное соответствие
  • Искусственный интеллект / Управление технологиями
  • Искусственный интеллект в дизайне
  • Искусственный интеллект в здравоохранении
  • Искусственный интеллект в промышленности
  • Искусственный интеллект в разработке ПО
  • Искусственный интеллект и безопасность
  • Искусственный интеллект и машинное обучение
  • Искусственный интеллект и Машинное обучение
  • Искусственный интеллект/Компьютерное зрение
  • Искусственный интеллект/Управление IT-проектами
  • Карьера в IT
  • Карьера в IT / Технический менеджмент
  • Карьерный рост в IT
  • Квантовые вычисления и ИИ
  • Квантовые вычисления и сети
  • Кибербезопасность
  • Кибербезопасность / DevSecOps
  • Кибербезопасность и аутентификация
  • Кибербезопасность и блокчейн
  • Кибербезопасность и веб-разработка
  • Кибербезопасность и криптография
  • Кибербезопасность и разработка
  • Кибербезопасность и управление рисками
  • Кибербезопасность/Сетевые технологии
  • Компьютерное зрение
  • Компьютерное зрение / Розничная аналитика
  • Контейнеризация и оркестрация
  • Криптография и Безопасность
  • Криптография и безопасность данных
  • Машинное обучение
  • Машинное обучение / Data Science
  • Машинное обучение / NLP
  • Машинное обучение / NLP / Инструменты разработчика
  • Машинное обучение / Безопасность
  • Машинное обучение / Генеративные модели
  • Машинное обучение / Искусственный интеллект
  • Машинное обучение / Кибербезопасность
  • Машинное обучение / Обработка данных
  • Машинное обучение / Обработка естественного языка
  • Машинное обучение / Оптимизация / MLOps
  • Машинное обучение / Оптимизация моделей
  • Машинное обучение / Устойчивая разработка
  • Машинное обучение в production
  • Машинное обучение в бизнесе
  • Машинное обучение в продакшене
  • Машинное обучение в продакшене (MLOps)
  • Машинное обучение в продакшн / MLOps
  • Машинное обучение и Data Engineering
  • Машинное обучение и ИИ
  • Машинное обучение и Искусственный интеллект
  • Машинное обучение и искусственный интеллект
  • Машинное обучение/MLOps
  • Машинное обучение/Обработка естественного языка
  • Машинное обучение/Оптимизация
  • Машинное обучение/Поисковые технологии
  • Микросервисная архитектура
  • Микросервисы и облачные технологии
  • Микросервисы и распределенные системы
  • Мобильная разработка iOS
  • Мобильная разработка и маркетинг
  • Новости
  • Облачные вычисления и распределенные системы
  • Облачные технологии / DevOps / Устойчивое развитие
  • Обработка Данных / Аналитика
  • Программирование / Оптимизация производительности
  • Программирование / Системное ПО
  • Программирование / Системное ПО / Безопасность
  • Программирование / Функциональные языки / Backend-разработка
  • Программирование и Backend-разработка
  • Программирование и ИИ
  • Программирование и инструменты разработки
  • Программирование и Машинное обучение
  • Программирование/Искусственный интеллект
  • Программная инженерия
  • Программная инженерия / DevOps / Машинное обучение
  • Программная инженерия и архитектура
  • Программная разработка
  • Продуктовая разработка / SaaS / Growth-маркетинг
  • Промышленный IoT и Индустрия 4.0
  • Профессиональное развитие в IT
  • Психология труда в IT
  • Разработка / DevOps / Микросервисы
  • Разработка игр
  • Разработка игр / Блокчейн технологии
  • Разработка игр / Графика / Unreal Engine
  • Разработка игр и VR/AR
  • Разработка игр и иммерсивных технологий
  • Разработка ИИ-приложений
  • Разработка мобильных приложений
  • Разработка ПО
  • Разработка ПО / Оптимизация производительности
  • Разработка ПО / Устойчивое развитие
  • Разработка под AR/VR
  • Разработка под macOS
  • Разработка пользовательских интерфейсов
  • Разработка программного обеспечения
  • Разработка программного обеспечения / Микросервисная архитектура
  • Разработка программного обеспечения / Распределённые системы
  • Разработка распределенных систем
  • Распределённые системы
  • Распределенные системы
  • Распределенные системы / Базы данных
  • Распределенные системы и архитектура
  • Распределённые системы и архитектура
  • Распределенные системы и микросервисы
  • Распределённые системы и сети
  • Робототехника и автономные системы
  • Сетевая инфраструктура и телекоммуникации
  • Сетевое взаимодействие и безопасность
  • Системная архитектура
  • Системная интеграция
  • Системное программирование
  • Системное программирование / Оптимизация производительности
  • Системное программирование Linux
  • Системное проектирование
  • Статьи
  • Тест-автоматизация и QA
  • Техническая документация и Developer Relations
  • Технологии хранения данных
  • Управление IT-командами
  • Управление IT-проектами
  • Управление Данными
  • Управление данными
  • Управление ИТ-инфраструктурой
  • Управление проектами
  • Управление разработкой
  • Функциональное программирование
  • Центры обработки данных и инфраструктура
  • Языки программирования
©2026 ByteVibe — Вайб IT-мира! | Дизайн: Газетная тема WordPress