Web Serial API: No Drivers Needed
One of the biggest pain points in embedded development is the setup process. Download a toolchain, install USB drivers, configure COM port settings, troubleshoot permissions — all before you even get to the interesting part. The Web Serial API changes that equation entirely.
What Is the Web Serial API?
The Web Serial API is a browser-native JavaScript API that lets web applications communicate with serial devices. It's supported in Chromium-based browsers (Chrome, Edge, Opera) and gives web apps direct access to serial ports — the same ports you'd use with the Arduino IDE or PlatformIO.
From a developer's perspective, you request a port, open a connection with your desired baud rate, and then read or write data through streams. No plugins, no extensions, no native code.
Why It Matters for IoT
For end users, the Web Serial API eliminates the single biggest barrier to getting started with ESP32 projects: installation. Instead of walking someone through a driver install, a Python environment, and esptool configuration, you can point them to a web page and say "click Flash."
This is exactly why we built the ESP32 Web Flasher tool on iotivate.dev. Users connect their board, select a firmware file, and flash it — all from the browser. The entire experience takes under a minute.
Security Model
The API is designed with security in mind. A user must explicitly grant permission to each serial port through a browser dialog — no web page can silently access your devices. The permission is scoped to the origin and requires a user gesture (like a button click) to trigger.
This means your web app can't enumerate all connected devices or access a port without the user's knowledge. It's a sensible model that balances usability with safety.
Browser Support
As of early 2026, Web Serial is available in Chrome 89+, Edge 89+, and Opera 76+. Firefox and Safari have not implemented it. For our use case — flashing ESP32 boards — Chromium-based browsers cover the vast majority of our users.
Getting Started
If you're building a tool that talks to serial devices, the Web Serial API is worth evaluating. The MDN documentation is solid, and there are several open-source libraries that wrap the low-level stream handling into more ergonomic interfaces.
We'll be publishing a deep-dive tutorial on integrating Web Serial with ESP32 flashing workflows soon.