nitter
Logo
W3C Developers (@w3cdevs@w3c.social) @w3cdevs
11 Feb 2021
Specs defining browser #APIs use a formal definition language (#WebIDL) which helps with writing and implementing these APIs. @tidoust, @dontcallmeDOM and @foolip are making it easier to re-use these definitions through a newly released NPM package: npmjs.com/package/@webref/id… 🎉🎇

npm: @webref/idl

Web IDL definitions of the web platform. Latest version: 3.41.3, last published: 5 days ago. Start using @webref/idl in your project by running `npm i @webref/idl`. There are no other projects in the...

npmjs.com
1
7
2
8
W3C Developers (@w3cdevs@w3c.social) @w3cdevs
11 Feb 2021
That NPM package collects #WebIDL definitions from across all specifications identified as "#browser specifications" in a #github maintained registry: github.com/w3c/browser-specs

GitHub - w3c/browser-specs: A machine-readable list of specifications used to build Web browsers

A machine-readable list of specifications used to build Web browsers - GitHub - w3c/browser-specs: A machine-readable list of specifications used to build Web browsers

github.com
1
3
W3C Developers (@w3cdevs@w3c.social) @w3cdevs
11 Feb 2021
Then, these specifications are crawled by reffy, a tool that ingest plenty of useful data: #WebIDL definitions, but also #CSS grammar definitions, list of terms defined in the specs, cross-links, etc. github.com/w3c/reffy

GitHub - w3c/reffy: Reffy is a Web spec crawler and analyzer tool. It is notably used to update...

Reffy is a Web spec crawler and analyzer tool. It is notably used to update Webref - GitHub - w3c/reffy: Reffy is a Web spec crawler and analyzer tool. It is notably used to update Webref

github.com

Feb 11, 2021 · 12:53 PM UTC

1
1
W3C Developers (@w3cdevs@w3c.social) @w3cdevs
11 Feb 2021
All of that data has been collected and made available in another #github repo github.com/w3c/webref/

GitHub - w3c/webref: Machine-readable references of terms defined in web browser specifications

Machine-readable references of terms defined in web browser specifications - GitHub - w3c/webref: Machine-readable references of terms defined in web browser specifications

github.com
1
2
W3C Developers (@w3cdevs@w3c.social) @w3cdevs
11 Feb 2021
NPM packages the IDL pieces, with more packages (e.g. for #CSS definitions) in the pipe
1
2
W3C Developers (@w3cdevs@w3c.social) @w3cdevs
11 Feb 2021
To learn more about these projects and how that data gets reused (e.g. to document browser compat data in @MozDevNet), watch the presentation given during #w3cTPAC last October: youtube.com/r9AXrFoFEg4 (slides at w3.org/2020/Talks/TPAC/uncon…)
1