Modern web development requires an ever-growing collection of tools, including formatters, linters, bundlers, and plugins. Each tool typically has its own configurations, dependencies, and performance cost. As applications grow more complex, the overhead of maintaining this toolchain becomes a real burden. Biome is an open-source toolchain for web projects that brings formatting and linting together in a single, fast, opinionated tool. It's built in Rust and is designed to be a drop-in replacement for Prettier and ESLint, with sensible defaults, minimal configuration, and consistent behavior across the CLI and editor environments.
Biome also introduces a module graph that enables cross-file analysis and type-aware lint rules that don't require the TypeScript compiler. Emmanuel Estaba, known as Emma, is a senior systems engineer at Cloudflare, a lead at Astro, and the creator and lead maintainer of Biome. In this episode, Emma joins Josh Goldberg to discuss the history of Biome, how linters and formatters work under the hood, what makes Biome's architecture fundamentally different from the tools it replaces, and what's coming next for the project and its community. This episode is hosted by Josh Goldberg, an independent full-time open-source developer. Josh works on projects in the TypeScript ecosystem, most notably TypeScript ESLint, a powerful static analysis tool set for JavaScript and TypeScript. He is also the author of the O'Reilly Learning TypeScript book, a Microsoft MVP for developer technologies, and a co-founder of SquiggleConf, a conference for excellent web developer tooling. Find Josh on Blue Sky, Fostadon, and .com as Joshua K. Goldberg.
With me today is Emmanuel Stoppa, open source maintainer at Cloudflare, creator of Bio, and lead at Astro. Emma, welcome to Software Engineering Daily. Thank you for having me, Josh. How's it going? Things are good. I'm excited to talk to you. You've done quite a few interesting things in tech. Recently, you've been on Astro, joined Cloudflare, you're a creator, lead maintainer of Bio. Before we get into all that, how did you get into coding? Well, maybe the majority of the developers out there were like, I want to develop video games. So that's essentially why I got into coding. Things didn't plan as I thought they were. I went to university where they were supposed to teach game design.
But in the year where I was supposed to join that class, there was no professor. So I had to choose another class. And eventually, I haven't done anything around video games. So I ended up doing PHP, Postgres, and all the stuff that WebDev was at that time. And that's how I started. So then it was PHP Developer, jQuery, and so on until React and all the cool kids that we have now.
Do you have any emotions that come to mind when you think about developing front-end full-stack apps in PHP and jQuery? Yes, because I see a lot of partners that I used to use back in the day coming up, like SSR. Before, it wasn't a thing like React developers, and it was all about spas everywhere. So everyone was developing single-page applications. And that SSR came back because that's how you used to do things in PHP. So it's like, I mean, there's nothing new here. We are just doing things as they were, just using JavaScript instead of, I don't know, PHP, C Sharp, or Java. At that time, that's what we had.
So it's kind of weird because we are not inventing anything. We are not inventing the wheel. There's nothing exciting. It's just the same patterns using different tools, different libraries. I like the tools that we have now simplify the process. Back in the day when I wanted to do spas or islands, for example, it was a mess. Now we know how to do these kind of things. The libraries allow us to do that. So I was like, oh, thank God. Now we can do things very quickly.
It's lovely that we've learned how to do the same proper techniques, both a lot cleaner syntax now. Which brings us to kind of a transition for you. You started off as a sort of standard developer, working on apps, PHP, jQuery, and so on. But at some point, you transitioned to dev tooling. And one of the earliest projects that you were associated with in that space that got a lot of interesting news was Roam. Can you tell us about how that came to me and what that is? Yeah. So Roam, Roam Tools, was a project that was supposed to be like only one tool for all your web projects. So having formatting, linting, bundling, testing, everything in one single application or binary or whatever.
And I really liked it, the mission behind it. In the past, I always struggled to maintain a lot of these deaf libraries, such as formatters, linders, bundlers, plugins. And Rome was like a breath of fresh air. And I was looking for an open source project to contribute to. So yeah, I mean, let's do it. That's how I joined the mission. Rome at that time was in TypeScript. And eventually, Rome got some funding. They opened the company and they joined as an employee of the two.
That's essentially how I got there. But my passion to open source came before Osorom. I was involved into Webpack before that. I was part of the CLI team. And why? Because I fought with Webpack a lot of times in my working experience with all the companies where I worked. And I became a kind of an expert. I was also on Stack Overflow, answering questions and things like that. So I wanted to increase my knowledge around Webpack. And that's how you do it. You just go into open source and you learn stuff from the actual creators. How did you make that jump from?
learning about Webpack to contributing back to it or to helping others. It seems like kind of a scary cliff for a lot of people, a gap in difficulty levels. Yeah, it is. It is scary. But at the end, you just have to do it. It's like a leap of faith. And you come to understand that you can't know everything. So you have to make the peace with it and just say, I don't know this, I don't know that, but I have experience with this thing. So maybe that's your solution. Maybe this is your other solution. So once you understand that you can know anything and you have to accept that others might have the answer, just...
It gets easy. So eventually you just do stuff that you want to do and you try to learn what you want. And for you, that's been simplifying those complex tech stacks you've mentioned into something a little easier to write. Yes, yes, exactly. Before tooling, I was in front-end and it's a completely different world. Tooling requires a lot of different knowledge from front-end, but there are some similarities. There are some lessons that you can take from front-end and where there's accessibility, error renderings, and fighting with browsers, fighting with...
things that don't work in a lot of contexts, take them into tooling. And for example, error handling, it's the same. Like you have your user that does a mistake, you have to handle it. You have your backend that does something funky, you have to handle it. Same for tooling. You always have your user that inputs something via CLI, for example, and you have to essentially provide some decent feedback. So it's a different context, but in the end, it's a product. You have your users and you have to provide something good that they like. So it's not that scary.
Yeah, I mean, in programming, you always have the same problems, more or less. Different context, but at the end, it's just about data. You get some data, you have to parse them, and then do something with it. And if it doesn't work, you just send them a good feedback. If it does, you send the feedback that the user wanted. Functional programmers may be pleased to hear that, that everything ends up turning into a function that returns one of two types. Exactly. Let's talk about that doing something with it, because you've worked on several projects now that do something with code that builds it. So at the very barest, before we go into the details, what is a builder, or what is a bundler?
Oh, well, bundler, what it is. Well, as you said, a bundle is a linker, so it's like taking different files and just create something that is linked altogether. In modern programming, now in the web ecosystem, we have a bundler that has to take a lot of JavaScript files scattered in your application and dependencies, and eventually creating something that it's pleasable to use in the browser for you as a developer, and especially for users, your end users. So you have to ship something that doesn't break. You have to ship something that...
It takes a lot to download, for example, so you can't ship all like a file of your old dependencies. Otherwise, it's like megs and megs of JavaScript that your user needs to download. And I mean, it has to deal also with a lot of different things like HTML, CSS, SAS, less TypeScript, CoffeeScript, Wasm now, and a lot of stuff. So a bundle nowadays is actually, from my point of view, one of the most difficult and rewarding software that you can create or contribute to because there's a lot to care. And I think it's like it's a...
You learn a lot if anyone wants to work on it, because there's a lot of, and also source maps as well. Yeah, there's a lot going on there. Let's say that I have just the most barest of applications that uses imports and exports. I've got an HTML page, a JavaScript file that imports from a couple of Node modules, maybe another JavaScript file that imports that one and calls it. And I want to turn that into some .com website, and I'm going to use a tool to do that. First of all, do I need to use a tool? In what situations can I, if any, get away without that? Well, you could use a tool, but also you can't. It depends on...
Your taste, like back in the day with PHP and these kind of things, like you didn't need to. You just had your PHP file. It means your JavaScript and everything. So you had everything up to the box. Nothing's got more complex. Our users need more. The browser has more capabilities. Like we are recording our session on a browser, something that we couldn't do 10 years or 15 years ago. So capabilities increased. We have more tools at our disposal. So even the applications got complex based on what we want to ship. So eventually, you want to use a tool.
Like it simplifies a lot of boilerplate, like setting up the page or themes or even JavaScript doing interactions and things like that. You could do it yourself, but there's a lot of going on nowadays. So you don't want to do it and you want to focus on your app. You don't want to focus on the boilerplate. So yes, nowadays you should use a tool that simplifies all the basics. And so you can focus on creating whatever you want on the browser or even Electron where you have your native app. So you see the capabilities increase that we have endless possibilities.
All right, you've convinced me. For my HTML and a couple of JavaScript files page, I know it will get more complicated, so I will use a builder or a bundler. How does that actually work? How do we go from that source code split across different JavaScript files to something that gets run by users with all those optimizations you talked about? That's a really interesting question. I don't have a clear answer, but as a developer of some tools that do the kind of things, such as Astro, how does it work? So you have a comp set of pages, which are essentially your entry points where your user lands. And from there, you essentially start building your tree of dependencies, which are styles, CSS files, components, JavaScript files, anything that your page requires. And that's how your bundler works. So you have your entry points where your user needs to...
interact, call them pages. So in most of the cases are synonymous, entry points or pages. And there, your bundler creates a tree of dependencies of assets, essentially, what it needs to ship in order to render and make the page functional. Of course, there are a lot of challenges, like understanding the CSS files. Nowadays, things got more complex because styles in some applications are shipped together with some components. So they are like atomic, like take, for instance, Views Belt and Astro.
They have the concept of components, single file components. And each file component can contain a piece of JavaScript, can contain a piece of HTML, and a piece of styling. So when you have multiple components that are inside the tree, you also need to understand the order of how the style needs to be bundled together in order to actually not mangle the end result. Like you could have your button that is imported in the middle of the tree or in the end of the tree, and then you have to decide, OK, now what's the order? And that's what the bundler does. So it's responsible to...
tackle this kind of problems for you, so you don't need to fight them. And of course, bugs can be there, but that's what the bundler does for you. And same for JavaScript. So you have a lot of scripts important in your tree. You have to make sure that they are imported and executed in order. So eventually your button reacts to a form submit or it reacts to an error in your form without breaking other scripts. So that's, I think, the bundler works. It's interesting the way that you describe the assets, because very little, if anything, in your explanation is specific to JavaScript files.
So let's say that we have a new kind of asset. Let's say I want to import some .webp image and then use it as a source string in my file. In this system, does that mean that I can have sort of arbitrary extensible plugins for different sorts of assets? Yeah, technically, yes, if the bundler allows you to do so. But essentially, yeah, a bundler needs to work in a very abstract way. But then he has to have a specialized section where he
It needs to understand what is actually processing. So CSS files, images, which have different extensions of different kind of encoding and things like that. We have Wasm, which also requires its own instantiation and other things. We have fonts, for example. That's another asset that needs to be treated in a certain way. So yeah, I mean, nowadays we are creating bundlers that has to be designed in a generic way and extensible. So users...
can extend the bundler for their needs. But not everyone needs to deal with web images or AVIF or videos, for example. There's also this kind of asset. So in the while now, we're creating, since Webpack area or Rollup, we are creating bundlers that are generic and users can extend it. So we are setting on a plugin system where users can essentially do whatever they want with the bundler. That users can do whatever they want yields a lot of power for users. But a lot of long-lasting web developers may remember that power comes with a cost.
Let's talk about two of those costs here, performance and configurability or ease of use. There are horror stories out there of multi-thousand line webpack configs that are slow. What would your response to that be? So my belief or opinions on plugins have shifted a lot recently, especially now that I'm dealing with Biome, which is built with a native language, and Astro, which is completely different, uses plugins. So as you said, there's a cost and I feel like people shouldn't pay that cost. Like you have a lot of extensibility, but yes, as Aker, that's nice. You do your project weekend, you can create your plugin and you have a sense of...
power, like you're doing something great because you're creating stuff. But then there's the other side of the coin, which is you are at work, you are responsible for maintaining the product of your employer, and that's the cost you pay. You have a lot of plugins, you have a lot of extension integrations that you have to deal with, and they have a cost on your application. Sure, then the bundler somehow has to be responsible of it and reduce the performance and make it faster. But at a certain point, I think it's not responsibility of the bundler of the tool, the plugin system, anymore. It's responsibility of the maintainers of the plugin. And eventually, who pays the cost? The users. So I'm coming to a realization that we need the plugin systems just for certain things. Other things shouldn't be extended too much, but shouldn't be baked into the tool. So you can do it correctly. You can monitor the performance. But we can't give to our users all these.
integrations and plugins. And eventually, the performance of the tool degrades. And you ended up with WebPad that takes 30 minutes to bundle the application. So I don't know. We're trying to, and we keep trying to solve this problem. We have RollUp, and now we have RollDown that wants to fix it by using a different language and maybe a different architecture. But I think it's not going to solve everything, because applications are going to be more powerful, demanding, and bigger, because that's how the technology works. So we're going to see maybe in a
three, four years, five years, we're going to see, again, the same problems, and we're going to try to solve them the same way. So, I kind of realized, now maybe we have to do something different. So, that's why configurations should be static. It shouldn't be dynamic. Like, they should be predictable. In fact, like, I know ESLint paid this cost, and that's when V9 shifted their configuration to be flat. So, like, it's easily debatable.
Eventually, they couldn't understand which plugin was making a mess because it was all a recursion. It was difficult to debug. And so they came to the realization, we have to do something. They broke the ecosystem, but I think it was something that had to be done because as an open source maintainer, I understand where they were coming from and why they did it. Of course, a lot of users were not happy, but I mean, they made a mistake. They had to fix it. Some users were not happy, but in the long run, I think it's going to pay off.
How do you know, or how are you able to tell where that balance needs to be drawn between powerful users and comprehensive built-ins? I don't have an answer for that, to be honest. It's very difficult to draw a line there. I think it's also a matter of try and error. Like, okay, you can be very extensible. So to be honest, I don't know. I really don't know. A plugin system allows you to do everything, but if you give it too much, you end up breaking stuff. You end up that you can do a lot of optimizations that...
you could do if your plugin system was more tight or has less feature. To give you an example, ESLint has a great plugin system and we have plugins everywhere, but it comes at the cost where they can't innovate now. The force of ESLint comes from its plugin system, but now they can't innovate, they can't try new things because otherwise all these plugins, they could break, they could degrade without knowing. So that's kind of the line. You should try to give enough power to please your developers and users.
but not as much so that you can't innovate. Like you are a programmer. So as a programmer, you also want to look for new things, try new things, because that's, I think, one of our passions. And if you can't try new things, what's the point? Like at the end, it's just doing maintenance and I don't know, it gets boring. So maybe that's why you ended up with creating new projects and trying new things. Yeah, that was a natural cycle where once a project gets successful, that bogs it down. I want to talk a little bit about one of the major new things that a lot of projects, including Roam and Biome and Astro are, which is native speed code. You led the conversion from Roam in TypeScript to Roam in Rust.
First of all, why Rust? For those who haven't heard this hullabaloo, why are so many projects switching to specifically Rust, or at least native in general? Why Rust? So I think there are two main reasons. Let's list them, then we count them. So first one, it's a really strict language. So when you have a dependency, there's less risk to break it. So it's so tight, this system, that even when you have a major, you have less breaking changes. Or if you have them, you catch them straight away at compile time. So it gives you the safety of...
having a lot of dependencies, but at least they break less often, as it could happen in TypeScript or JavaScript. So you have less maintenance burden on your tooling. The second was essentially speed. Like, ROM, when it was in TypeScript, was actually great, but it suffered from a lot of memory consumption. So at that time, ROM was able to bundle itself. So it was like, as a binary, it could bundle itself. And while it was doing that, it was consuming a lot of memory, like eight gigs of memory. It wasn't sustainable. Like, it felt like it reached.
the limit of Node.js. So that's when we decided, OK, maybe we have to go somewhere else. You can try to do a lot of optimizations, but if you can't leverage the actual memory, like, yes, JavaScript has some tooling for garbage collection, but it's very, very limited. Rust as a native language allows you to manage your memory way more than JavaScript. And third point is how easy it is to integrate with WASM. So like Rust has native bindings using the WASM bindgen crate.
So it's very easy to have your RAS code and port it into Wasm so that it can be shipped into browsers, other languages that are able to interpret Wasm and they can execute it. That's really great for like a playground and things like that. So I think that's one of the reasons because like, sure, the language is very... Type 2, but even TypeScript is typed in a different way. So it wasn't the problem. And Rust has gained a lot of traction recently for their memory safety. So you don't need to deal directly with memory like C or C++ or other similar languages because Rustic does it for you using their borrow checker. So it takes a while to get used to, but it's the language that does it for you. So you don't need to take care about that part so you can focus on your application. That sounds great. Let's jump forward in time a little bit.
Rome was around the 2021, 2022 era. How did we get from Rome to Biome? And what is the difference between those two projects? Yeah. So for a year and a half, we were good at Rome. We were doing great. But eventually the company behind it went under, so they couldn't get any more money. So eventually they had to close. Thing is, I liked the project. I joined the open source project before getting hired and I wanted to continue it. So even after I left the company and they joined another company, I continued to contribute to Rome. Other people joined, so I wasn't the only one anymore. So eventually we had a team of volunteers.
And we shipped, we continued shipping. Eventually, I really wanted to change the face of the project, but it always requires a lot of work, like logo, names, website domains. So you don't want to do that. It's really annoying. Eventually, we had to do it because the NPM tokens expired, so we couldn't actually ship and publish new versions on NPM anymore. So we were actually forced to do the move. And why Biome? So James, which was the CTO at Rome at that time, had this idea in case we wanted to.
change ROM to call it the second ROM. So second ROM Biome. That was the idea. So I asked him, can I use it? Are you OK with that? Yeah, sure. Go ahead. And yeah, and eventually, so a ROM fell in December. And in August of the next year, we announced Biome as the new ROM.
I would say the mission changed slightly because we are not focusing on the bundler, for example, because we have less resources. We don't have people dedicated to the project. So we are now focusing on formatter and linter because that's what we had. So instead of going horizontally, we went vertically. So we shipped more features into the linter and the formatter. So more languages, but still more rent-throughs, formatting capabilities. But we are not focusing at the moment on the bundler or the testing suite, stuff like that. So I think we're happy with that. We are doing still great things.
Yeah, let's talk about those great things. Most users I've talked to are not extremely familiar with formatting and linting as concerns. They know that they clean up the code base. Maybe they know that linting does more logic formatting or, well, formatting by space. What does Biome do for users around formatting and linters? So first of all, it creates like, it wants to shape a different developer experience compared to the tools that we have. So a better message is something that you can actually action. You have your error and Biome tells you, OK, that's how you should do it or you shouldn't do it.
Some users, yes, they dismiss the linters as a nice to have. So what we're trying to do is also to teach people how to do stuff. We ship this lint rule that targets the dot reduce function of JavaScript and says to not use the spread operator when you return the accumulator. And the lint rule tells you don't do it because it's a performance problem. And I've seen people that didn't know that. And once they know the rule, they learn something. So that's one of the missions. We have a linter that teaches you something.
Because as I told you before, not everyone knows everything. So if we get the chance to teach you something, I think we did good. So we're spreading the knowledge. So that's why our Lint rules have to have a really high standard. They have to tell you why it's an error. Because if you're not able to tell why an error exists, then it's not an error. It's a moot point. And then for Martin, he wants to just provide a faster experience compared to the tools that we had at that time. I know that users in the past were kind of unsatisfied with Prettier's performance, which was at that time the only...
widespread formatter in the JavaScript world and the web world. So with Biome, we provide a very similar formatting, but at least it's faster, especially in CIs and things like that. But we also want to provide an experience that is tied also to other tools, like Biome knows your Git in your files, for example. So you just hook into them, and it doesn't format the files that I ignored in Git. You can also integrate with your editor config, for example. So you have your editor config, so you don't need to maintain the Biome config. You just use what you already have. So it's not just about...
limiting information, but we also embrace the other tools so that Biome gets to know what you're using and you learn from them. We're doing the same with Svelte, Vue, Astro, CSS modules. They win too. So it seems like a web dev is quite vast. We don't want to limit ourselves to just one tool, but we think we should actually embrace a lot of them so users get to know them and you learn something that you might not know.
You've touched on one of the really lovely parts of using bio, which is, as you said, it's all in there. You can run the format, the linter, just from one command. How much simpler is it in your experience to configure bio compared to how things were configured, say, five years ago? So I think it's actually really good and fast because you don't lose a lot of time. I still remember when I used to set up ESLint and Prettier years ago and it got easier, but like the fact that you have to install three or four packages and then you have to configure ESLint to use Prettier's config or plugin, I don't remember. So it was a nightmare. I mean, sure, it takes 10 minutes, but why you have to do that? I mean, you shouldn't spend so much time on these tools and that's why Biom is there. Like you have one.
config with sensible defaults, which means that you just install the dependency and that's it. You don't need to do anything else. You just use it. If you don't like the defaults, okay, just you can run bio in it and change the defaults and that's it. Also, you don't need to format the code that is fixed by your linter because it's all in there. Myon does it for you and it works out of the box in your editor. So what you get in the CLI, you get it as well in your editor. You don't need to do anything like anything at all. Instead, you can install the extension, of course.
But other than that, you don't need to install tree stanchions like Pretia or ESLint. You don't need to modify any configuration. It works out of the box most of the times, of course. So you see users spend less time in tooling, setting up their tooling so they can do programming as they want, because that's what we like to do. We don't like to set up tooling. Absolutely. Diving into the tooling a bit, formatting has not changed significantly over the last few years, other than what the defaults may be or configuration. The architecture has been pretty stable. Linting, on the other hand, Biome does linting things quite a bit differently than, say, ESLint that came before.
What's the difference about a BiomLint rule versus, say, a predecessor ESLint rule? Okay, so one thing that we recently shipped in Biom, type-aware rules and project rules. So we know that we have TypeScript ESLint. Thank you, Josh, for what you shipped to us. So the existence of the ESLint that leverage TypeScript, so they provide useful rules, such as no floating promises or no misused promises. But I know that...
These kind of plugins need to do something that ESLint can't provide, such as scanning the whole project or the whole dependencies. Because these kind of rules need to understand not just the file that you have open on your editor, but they have to resolve types of dependencies. So they need to do a lot of work in order to work. And that's something that ESLint doesn't provide out of the box, but Biome does. So Biome, in this case, is able to scan your whole project before starting the actual linting, is able to collect a bunch of information so that we can provide powerful lint rules such as no import cycles. So it's able to fly over all the import tree of your project and understand if you're actually importing the same, you're doing a cycle. It's able to scan your dependencies. So it understands if you're using a dependency that is not installed in your package. One thing that, for example, I recently merged is a lint rule that is able to understand if you're using a CSS class that is not defined anywhere.
A biome is able to scan the whole project, CSS files, JavaScript files, view files, all the files. It collects all the information. And then it does the lint rule that inspects, I don't know, your component, your div or whatever, your element. It reads the classes that you use and it checks if they're actually defined somewhere in your project. And if they're not, this says, oops, you're using a CSS class that it's not defined anywhere. And it's also able to show you the actual tree of components that they were analyzed. And that's something that is provided by the biome module graph.
which is a language agnostic, in a sense, like is able to collect multiple languages or files or assets in the same time, like HTML, CSS, JavaScript, and so on. And I'm really proud of what they've done, because it's something that, like the tools that we have today, they are not able to do that, or, I mean, that I'm aware of, of course. So that's what Biome is able to provide that the current tools might lack, or they don't provide out-of-the-box. You've mentioned two big features now. There's typed link roles out-of-the-box, and then there's the Biome module graph.
Talking about type link rules a little bit, how does that type information work in Biome? Yeah, so in Biome, we try to do things differently because that's essentially our way of doing things, like providing something different from what you have so you can try it. So Biome does something called type inference. So it actually tries to collect and infer, as it says, the types of your code, like of the JavaScript types with files. So the project and the efforts were led by another core contributor, and Vercel actually employed the contributor to actually ship the feature.
So it was a great community effort, and it required a lot of resources and time. But now we are able to ship lint rules that don't require the actual TypeScript compiler. So you don't need TypeScript to understand if you're using incorrectly a promise. There's a dangling promise that you haven't debated. How does it work? Well, essentially, the engine relies heavily on the model graph in order to essentially collect and read all the files that the project uses, as well as the dependencies. So it's not just the project, but also...
all the libraries involved in the application. And then there's a lot of work where it tries to flatten, for example, expressions, functions. I don't know all the details because the efforts were led by another co-member, but I managed to actually fix a couple of bugs there because the engine requires a lot of tools, such as not just the model graph, but also the semantic model. So just the other day, I fixed a bug where Biome couldn't infer the type of dependency. So there was import function from Lodash, for example, and he couldn't understand if it was a promise or not.
And I fixed it the other day by integrating the semantic model into the inference system. Or I was able to shape these other rule calls, no unnecessary conditions, which tells you, oh, you don't need to do this kind of check because it's always true. Like you have a variable that is always true. So it tries to infer when, for example, it changes value and things like that. And at the end, when there's the if or whatever, it tells you, oh, there's no need to do any check because this variable never changes. It's always true. So I would answer your question. Very much so.
You've mentioned another type of graph now, semantic graph. What's the difference between a semantic graph and a module graph? So it's not called semantic graph, but it's called semantic model. So the mod graph is just essentially a data structure that just checks, okay, so this module, so this file is imported by this other file, and so on. So it's very generic. It tells you what imports, what exports, and there it is. Nothing else. Semantic model is actually more specialized. It's not aware of other files. It's just aware of one file. And it's very specialized to the kind of file.
In JavaScript, it specializes into understanding the various scopes inside a file. So you have your global scope, you have scopes inside functions, then you have your arrow function that don't have scopes. So you have your classes, they have a different scope. So that's what this semantic model does. For example, it checks as well if a binding is exported or not. So it does very specialized things. For CSS, for example, it focuses on calculating the specificity of your classes.
implied semantics of the language that you're handling. Surely we're going to have, for example, a semantic model for GraphQL. I don't know the language. Other maintainers have more expertise than me, but they know they're going to use it. They're going to create it so they can provide specialized tools. The model graph is just a big pile of data of all your files that you have. It's basically a tree and branches and leaves. And you have your edges, you know, how they are connected to each other. So it's mostly like a spider web, and you have to navigate it to understand, to collect the information that you need.
One of the difficulties with building that rules, specifically in native speed code, is that many of the end users aren't native speed developers. What are you in Biome doing to solve that developer interoperability difficulty? Well, I mean, as we mentioned, like Biome has a plugin system to try to bridge the gap. It's a plugin system based on this DSL called GridQL. So it was chosen some time ago as a winner after a lot of discussion. So we are aware that we can do everything. And there are some requirements that are project specific. So things like that belong to your org or to your employer, to your code base. So that's where we think the plugin is actually very useful.
because also you're sensitive to things like that. So we have this powerful DSL that Biome is able to interpret, and it has its own runtime. So with these plugins, users are able to inspect the code. And just to let you know, so until now, these plugins were not able to provide code fixes. So until now, it was just, that's the rule, that's the dynastic, that's the error, and that's it. So we have now a PR that is able to actually provide a code fix. So probably in the next minor, a user will be able to create an intro that is able to autofix possible.
issues in their code base. So this actually gives my point where the plugins are bad, but I think in this case are actually valid because the tool cannot know everything and it shouldn't. I shouldn't know about the quirks of your code base because they are sensitive data. And that's where a plugin makes sense. You leverage the tool, Bio, ESLint, OXE, whatever, and you apply to your code base specifically to your needs because they belong to your project. So it sounds like you could use code fixes from Lit Rules as a sort of code mod tool. Yes, yes, exactly.
Love to hear that. That's really cool, though. So there's already a biome search command. And just looking through the biomejs.dev slash reference slash grid QL page, it looks like you can do some pretty powerful matches with not that much syntax with grid QL. Have you seen a lot of developers pick this up and use it? So I'm not into a lot of this part of the tooling. I know that there are users that have like 70 or more biome plugins written in grid QL. So I feel like there are users that are actually leveraging the plugin system.
A lot. But yeah, GridQL was born as a code mod. That's why it's so powerful. That's why it has a lot of weird syntax. Because one of the initial objectives was to create code mods. And essentially, that's what Biome could potentially do in the future. You could create your code mod to, I don't know, you have your React from 18, 19. There's a lot of changes. You have your code mod. Or even internally. So you're changing stuff. There's a lot of refactor. Create your plugin that does the code mod. Run Biome. And there it is. Beautiful.
Let's talk about the feature a little bit. What are some of the big flashy upcoming features around Biome that you're excited about? Oh, that's nice. Okay, so there's a lot going on, a lot of ideas. So one is this lint rule that I talked about that is able to catch unused classes. It's still early stages because there's a lot of components and the ecosystem is big, quirks. The second thing that we're working on is the watcher. So you can run biome lint dash dash watch, and then you can start typing and Biome at every change, it links the new file that you just changed and it checks if there are some violations or not.
And I think it also will work for the formatter, but I mean, it's still in the early stages. And the reason why we're able to do that is because Biom is already a watcher under the hood. So we are just exposing the watcher using the CLI. One other thing that we're doing, this is just third-party contribution, so I'm not doing that much. So plugins that will be able to emit code fixes, and they will be able also to set the severity. So until now, users, they couldn't do much. So now we are making plugins more powerful and customizable to our users. We are working towards Markdown support.
So internally, we reached 100% coverage against CommonMark. This is also done by another third-party contributor. So that's amazing. I'm just essentially reviewing PRs and contributing with them. So there's an effort at the moment doing error factor of the parser while keeping the conformance to CommonMark to 100%. And we're setting up the format at the moment. So if everything goes well, it's going to be part of the next minor. Yeah, I think that's, I mean, there's also, we're doing a lot of lint rules for review. And also Svelte probably will going to start creating some lint rules now that we have a very...
good handle on the Svelte syntax. So now we can start shipping some Lint rules for them. For Astro, I still need to investigate. I know there's a ESLint plugin for Astro, but I'm not familiar with the rules. So probably there's room for implementing something there as well. It would be nice if the leader of the Astro project and the leader of the Viome project made many of the same people together. Ah, yes. Which is it. Well, great. One of the interesting notes you brought up was editor support. Can you tell our users what is LSP and what does that mean in this context?
Sure. So LSP stands for Language Server Protocol. As the acronym says, it's a protocol to essentially create an editor server that works in all editor clients. Nowadays, the vast majority of editor clients support this protocol. So like BS Code, Zed, WebStorm, and all the IntelliJ, sorry, JetBrains, IDEs, Vim, Alex. So all of them now support LSP. And this is actually quite powerful because we just need to develop the server in one place.
And the DX is the same in essentially all the editors. So one of the BIOS mission is to focus LSP as well. So to provide only one experience, which means that we implement the business logic in one place, and then you get the same look and feel on the CLI, the LSP in the playground. So any client, because BIOM is essentially a server, you have multiple clients. And that's what we do for our diagnostics. So what you see in the CLI is the same thing that you see in your editor. So something that we could potentially do in BIOM that other tools can do is to leverage the model graph.
to implement things like the go-to. You have your function, you want to know where it's defined, so you do a command click and it takes you to the definition. So that's something that Biome potentially could do. So there's endless possibilities with Biome because everything is central. We own the stack, we own the information, but still it requires essentially the time. So I'm setting up essentially the whole infrastructure. I have a lot of ideas, I just need the time to implement them. Now with these AI agents, I get to do things quickly because they just write the code and I review it.
Yeah, I'll wait to answer your question. That does. Before we start to wrap up, are there any other big-ticket features or fixes from Viome that you're excited about in the coming years? No, I really want to do a shout-out to the actual community because a lot of fixes, a lot of new features have been developed by other people that aren't the core team. So Viome is essentially a community effort. We are just essentially the orchestrators and the manager, but we are seeing a lot of people sending fixes, sending features. As I said, the markdown parser has been done by another person, the formatter as well.
We are actually also working on the CSS support. So yeah, I mean, I want to do a shout out to all the contributors because like a lot of things that you're using and other people are using have been shipped and created by the community session. Let's talk about the community then. Biome's been around for a few years now. It's outlasted Rome. It's clearly sustained itself. How have you been able to build a community where so many open source projects aren't? Well, I think Biome as a concept attracted a lot of people as I was. So that's just one of the reasons. Second, I don't know. I have some experience in open source. I'm involved in other communities. So I learn from the other communities and apply to the Biomes community. I try to be friendly every time. It's not easy. That's actually very difficult as a maintainer to keep your cool.
And I know that sometimes I wasn't able to. And also, you have to be active. We have our Discord chat. And if you're able to answer questions as quickly as possible, people eventually acknowledge that and they like it. Because sometimes you are in a project, you file an issue or you ask a question, and then it's basically you don't get an answer for weeks. So I think that's why I try to focus on quick feedback, if I'm able to. And I think this is paying off because users are seeing that activity. They see that their problems are solved. Their questions are answered.
Or maybe we don't have the answer, but at least there is some discussion. So something moves every single time. There's something to be said about positivity. You join the Biome Discord, there are all these fun channels, there are lots of emojis, exciting announcements. It feels like a very big project and a fun place to be. Yeah, we try. We try to be active, to be positive, as you said. To communicate, that's also something that since day one I wanted to do. If there's something about Biome, anything related, just share it. Or even if it's not about Biome, share it. You have a link that you like, just drop it and people like it because it's something nice to read. So that's essentially the mentality. You are there, you want to share something, do it. You are more than welcome to do so.
Let's say that I'm a listener with a large code base, complex formatting, linting, and so on. How would I get started trying to switch things over or to evaluate to Biome? So Biome has a couple of commands that allows you to read the config from ESLint and Prettier and create a Biome config that matches as much as they can what you had before. Of course, we don't have all the ESLint rules, but at least something. Second, you can actually do a first pass of your linter by suppressing all the violations because you might have a lot of violations in the big code base. So you do biome lint, dash, dash, suppress, dash, dash, suppress reason, and say migration or whatever, and you're good to go. Maybe you can also turn off the formatter if you want, but we match 97% of prettiest formatting, so you should be good to go. At least the linting is there. It doesn't scream at you, and you can keep your code base there, and then you can progressively address lint rules as you go. That's essentially what you could do for your migration. If you have a lot of formatting problems,
One technique that I usually suggest is to have a PR, make sure the CI is green, merge it, and then goes with another PR that ignores the commit of formatting. So like your history is not mangled by the formatting, we do the same also in the biome repository. So when we have these trivial changes that don't bring anything to the table, you ignore that commit, that hash, so that your history is the blame. You know, when you do a blame of the file, it doesn't show any meaningless information. That's a great tip. You're talking about Git revision ignoring? Yes, exactly.
There's a Git file where you essentially can list all the commits that you want to ignore. And those commits won't appear in the history of your Git plane. Great. Let's say that I have a new project. I want to get started fresh with Biome. How is that different? So you start Biome and you're good to go. You could run Biome init, which bootstrap a Biome config for you, which essentially mirrors our defaults. So it might be lengthy, but at least you can see what are our defaults. You don't need to go to the website. You can understand.
what's the default, and then you can change it, like tabs versus spaces, lint rules, and so on. Other than that, we issued also a really nice tool called the Biome Explain from the CLI, where you can just type a Biome Explain, no debugger, and it shows you the dots right in the CLI. So if you don't have any connection and you know the name of the internet connection and you don't want to go to the website, you just type that command and you can see what the lint rule does for you. Speaking of which, that website is biomejs.dev, yes? Yes. Great. Are there any other resources or links you'd want to send people to if they wanted to learn more about bio? I think the website is quite self-explanatory. Also, the main GitHub repo. It's also a nice resource. And yeah, we try to be central. So we try to have everything in one place, and the website is where everything goes. And our Discord. So biomejs.dev slash chat, and you should be good to go. Excellent. I'd like to end interviews with one non-work question. You mentioned at the very beginning that you were interested in video games. What games are you playing these days? So at the moment, I'm playing Assassin's Creed Shadows.
I'm not a big fan of the whole saga, but I like the last video games there because I'm really focused on role-playing. So you have your character, you choose your skill that you want to develop, your weapons, skills, and things like that. So it's also in Japan, which I really like. So it's a really nice mix of things. I really like role-playing. So GDR and things like that, RPG. Essentially, I'm not into sports or shooting. I really like RPGs. Yeah. Fun. Are there any lessons you've learned in programming that apply to the stories of these video games or vice versa?
If you want to learn how to do video game, you have to do it yourself. Just do it yourself like a lot of people do. Indie video games, that's how I think you should start. I mean, I tried at the university. It didn't pan out. So do it yourself if you have the passion and the time. I don't have the time anymore, so that's the only problem. But if you have the time and the passion, just do it yourself. I mean, with the tools that we have nowadays, I think it's quite easy to pick up. All you need is time, interest, and energy. Yes.
Well, great. Emma, this has been wonderful. Thank you for walking us through your history and bio and all the fun things around analyzing and linting that come with it. If people wanted to learn more about you specifically, where do you direct them to go on the internet? They can go to my Blue Sky account, ematypical.xyz and the GitHub account. And yeah, I mean, that's essentially where you can find me and where I'm active. I'm not a real social person. I like to lurk and I engage less. Excellent. Well, thank you for all the info for Software Engineering Daily. This has been Emma and Josh Goldberg. Cheers, everyone. Thanks.