The source of the API docs are written in the same repository as Node.js itself. It is authored by the people writing Node because, you know, it makes sense for the contributors that are creating those APIs to always maintain those APIs. It gets shipped with every new release of Node.js, which means that changes in the API docs can only be done, like, perceived or seen every time that we have a new release of Node. And half the JavaScript ecosystem actually reads those pages. Again, even if you never actually touched it, but the likelihood is that you opened Node.js API to some point is very high. If not, types Node, which is pretty much what you need to use when you're using TypeScript and coding with TypeScript with anything even closely related to Node.js, while it relies and gets generated based on those API docs.
Our competitor runtimes or like our fellow JavaScript runtimes and ecosystem, Bun and Dino, their runtime parity and how they need to, for example, create a compatibility layer that they have from Node.js also come from our API docs. AI assistance, such as Copilot, ChatterBot, Cloud, all of them get trained on those API docs. And of course, the millions of humans that are reading and working with Node.js, you know, they also rely on those docs. If we have any sort of bug within the docs or anything poorly written, there's an ecosystem why Bazray used. And in general, you will need to wait for the next release for the patch to be done, which is not ideal. So we're going to talk about the O2E here.
What power for the last decade of API docs within the Node project? So pretty much it was a tool that was tied within the Nonstick JS six-week release cycle. You know, CSS six would take a long time to get shipped. There was no packaging, no server and nothing really that the ecosystem could reuse. It was completely tied to Node.js and would only work with Node.js and hard-coded to work with the specific time that the codebase of Node.js existed. It was pretty much held together with a lot of regacts and string concatenation. So the way all the API docs were built was with a lot of hacks and spaghetti code that we'll try to analyze the source markdown docs and try to build an HTML and a JSON output of what will be the API docs in a JSON format. But it didn't really have any tests. It didn't really have any owner. And maintainability was awful. So it's kind of stuck by design.
Comments