WebIDL2 Parser

JSON →
library 24.5.0 ·javascript
verified May 27, 2026

webidl2.js is the official W3C-maintained parser for Web IDL (Interface Definition Language), which is used to specify web APIs in an interoperable manner. The library provides core functionalities to `parse` Web IDL strings into a structured Abstract Syntax Tree (AST), `write` an AST back into a Web IDL string, and `validate` the semantic correctness of an AST. This enables programmatic analysis, modification, and generation of Web IDL definitions. It supports both Node.js (requiring Node.js 18 or higher) and browser environments, with distinct usage patterns for each. The current stable version is 24.5.0, reflecting a mature and specification-compliant implementation. Its key differentiators include direct W3C backing, comprehensive support for the Web IDL specification, and tools for both parsing and re-serializing IDL, making it an authoritative choice for developers working with Web IDL definitions.

total hits 15
actors 5 distinct systems
last hit 6d ago MetaBot
GPTBot
5
MetaBot
4
Script
1
Search engines
1
Humans
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany