Moddable SDK 5.8.0
Moddable SDK 5.8.0 contains improvements made between May 12, 2025 and June 11, 2025.
Realtime AI
This release sees our Realtime AI support continuing to expand with Deepgram joining our ChatAudioIO
architecture. Deepgram's Voice Agent API provides realtime conversational AI support with a focus on enterprise applications.
Deepgram is noteworthy for being the only Realtime AI API using WebSockets to support binary transfer of audio data. This uses 25% less network bandwidth than the Base64 encoding used by everyone else; and requires less memory and CPU power to serialize and parse. Put another way, Deepgram is the lightest realtime AI service, which makes it a great choice for microcontroller projects.
Deepgram joins OpenAI, Google Gemini, ElevenLabs, and Hume AI in our ChatAudioIO
. Imagine a single API that lets you easily build interactive voice chatbots with any of five leading AI services and do that efficiently on a low-cost microcontroller. And we're not done yet. Moddable has exciting updates planned. Stay tuned.
ESP-IDF I²C downgrade
Last month, the Moddable SDK's I²C support for ESP32 migrated to Espressif's new i2c_master
API. Unfortunately, we have too many reports of issues from this change, including random read and write failures, and crashes when I²C and the JTAG USB connection are used simultaneously. Consequently, we've reverted the changes in this release. We will monitor the Espressif releases for improvements and try to report the issues encountered to Espressif.
Release Details
- Modules
- ChatAudioIO - add support for Deepgram AI service
- WebStorage – return
null
for missing elements to match HTML5
- ECMA-419
- Analog input on ESP32 again works for multiple inputs (reported by @mshioji)
httpclient
passes response's status text toonHeaders
fetch
andEventSource
use status text provided byhttpclient
EventSource
handlesid
property and missing options to constructor- Revert I²C API migration on ESP32 from previous release
- Devices
- XS
RegExp.escape()
now supported. This is part of ES2025.- Immutable
ArrayBuffer
conformance improvements with latest test262 - Import more math functions from fdlibm (for hosts that cannot use the platform mathlib)
String.prototype.fromCharCode
conformance fix on integer input- Fix obscure marshalling native stack overflow (found by Fuzzilli)
- Fix
await
lookahead token for arrow function with expression body (found by oss-fuzz) - Check meter on several more
Array
functions to trigger timeouts (found by oss-fuzz)
- Examples
- mini-drag example reports incompatibility with ECMA-419 touch driver
- Tools
- New M5Atom S3 simulator for mcsim (contributed by @stc1988)
mcconfig
path corrected on builds of ESP32 on Linux whenUSE_USB
is1
(device using TinyUSB for xsbug connection)
- TypeScript
Contact Us
If you have questions or suggestions about anything here, please reach out:
- Start a new Discussion on our GitHub repository
- Drop by our Gitter to chat
- Contact us on X / Twitter at @moddabletech