The Throne0:00
Hello, and thank you for being here. I'm Roberto, and today I'm going to tell you this song of types and agents, basically a song that speaks about languages that fight each other to conquer what's the "throne" in the AI realm, and how I think that TypeScript might actually be winning this war.
But let's start from the beginning: a few years ago, whenever someone was building in AI, they were certainly using Python. Like, there was no doubt. All the other languages were bowing to Python because, um, because of its dominion over the AI world.
Python's Reign0:52
And then, when in 2022 ChatGPT was released, everybody started wondering and starting understanding that AI was becoming something more, was going outside of the bubble that it lived for years, and started to becoming something more ambitious. And together with it, Python, which was the standard language for AI, became more ambitious as well.
And that's how, in 2024, GitHub actually climbed the ladder and became the most popular language on GitHub. So, you know, everybody was happy: Python finally reached the top. But little did they know that there was another contender for the throne, another contender that was rising to challenge the claim that Python had on the throne.
And this contender, as you may have guessed by now, was indeed TypeScript. But before talking about this, let me present myself. My name is, uh, Roberto. I'm the CTO and Co-Founder of Ratel, a context layer for AI agents, and I'm also the EU-Ambassador for AI Socratic, a global community of AI builders meeting once per month to discuss the latest news in AI.
The Contender1:55
I'm also a long-time JavaScript, then-turned-TypeScript developer, and that's basically why I'm, um, talking about TypeScript today. So let's begin. As we said, AI started moving up to the stack. It was moving from the infrastructure layer of these models, machine learning, and all related ecosystems, towards the application layer.
Stack Shift2:24
This means that AI stopped being something that you train, and it started being something that you ship inside your application. Applications started featuring AI, starting having features powered by AI, which basically means that we started having applications that think.
And the application layer was not Python's. The application layer has been TypeScript's for a pretty long time now.
Don't get me wrong, like, I still think that Python has its own, um, application. Like, I still think that the brain of the agent and all the, of all the AI world is actually still owned by Python. All the training, the research, the GPU serving is all Python's.
It has been Python's all along, and it's going to be Python's for a long time yet. And, um, what's changing is actually the application layer. Like, a few years ago, if you wanted to build something with AI built in the application, you had to use Python.
But today, that's not the case anymore. And that's all the shift is about. TypeScript doesn't just own, you know, the UI or the backend; it started owning also the agentic layer of our application.
GitHub Crossover4:31
And that's why, in August 2025, TypeScript actually passed Python as the most used language on GitHub. And the funny thing is that the reason that the GitHub report gave was the same. Like, in 2024, it said AI leads Python to top language, while in 2025 it said AI leads TypeScript as the first language.
And in both cases, as you can see, the global developers, the number of global developers, were surging. In 2025, we even have 1 new developer joining GitHub every second. So
what actually changed in this year? Like, yeah, we were flooded from, like, new developers. In 2024, these newcomers were reaching for Python, or even maybe existing developers were reaching for Python, and in 2025 they reached for TypeScript instead.
What changed between 2024 and 2025 was actually coding agents. The coding agents grew up. Like, we saw established, um, we saw the players establishing themselves. Like Lovable, Claude Code, Cursor, Codex. They became the default way to build applications.
Coding Agents5:43
And the default way to, uh, to which these coding agents actually built the applications was TypeScript. And, you know, since every new app, pretty much every new app, is an agent today, because they ship these AI and agentic capabilities, they are hungry to embed AI inside themselves.
The demand to have more AI integrations, more and more AI integrations, doesn't fall onto Python. It falls on TypeScript.
And pretty much all the tools that we use to build AI today already run on TypeScript. We even saw an AI lab acquiring a JavaScript runtime. Like, last December, Anthropic acquired Bun. But still, you know, okay, everybody is using TypeScript because of the coding agents, and we are having more and more demand to build, uh, a- to embed AI inside TypeScript applications.
But does this mean that we should do it? Like, this is a fair question. Like, it's an honest question, and it's a question worth answering. And the answer, in my opinion, can be yes, like, for several reasons. The first one is that since TypeScript is the default language for coding agents today, we can expect that they will become better and better in, in TypeScript, because we are having more and more applications in TypeScript which are going to fill the training of next coding agents.
Why TypeScript?7:23
And then we're having, uh, deeper integrations and more native integrations from these coding agents towards TypeScript, and we can expect that the quality of the output in TypeScript is going to be better and better from these coding agents.
Since we're building applications and, uh, we want to have, like, the highest quality of these applications, it might make sense to build agents which are the new kind of applications in TypeScript. And also, if you use TypeScript, you're actually tapping into what is probably the richest package manager out there.
Npm comes with everything, uh, pretty much everything. Like authentication, payments, UI, infra. Like, it's the deepest app layer tail that there is. So since, again, AI is coming towards the application layer, we need to integrate with all thisright now.
And tapping inside npm is a very convenient way to do that.
Also, you have, by building in TypeScript, you can have one single language throughout all your codebase. You can have one single codebase for the whole application. Because you can use TypeScript for your agent loop, for the tools, for the backend service, for the UI.
While if you use Python, you probably have to split, uh, split it at least into two services. Which means, you know, one service with FastAPI, PydanticAI, and whatever, and then another, um, separate React application that you need to sync between, between these two with a, with a contract which you have to maintain and synchronize.
And speaking of contracts, with TypeScript you can have one single consistent typing across all your, all your application. While if you use Python instead, you, at some point, will stop at a boundary. Because you will have your agent, maybe your backend, etc., with one consistent typing.
And then you will have your React application, or view, or whatever, with, um, another set of typing which you need to synchronize between the two. So if you use TypeScript, you can use Zod as a single schema throughout all your application, which is very convenient.
You can define a type once, you can use this type in the backend and, uh, in the model, and you can use the same type in your UI. One type, checked end to end.
Also, like, it makes sense to build in TypeScript today, uh, also in the AI ecosystem, because we are seeing a very surge in, in the AI ecosystem as well. Like, take the Versace AI SDK, for example. You can see that in just 1 year it went from 1.6 million to 15.1 million downloads per week, which is between 9 and 10x in just 1 year.
So finally, like, to put everything together, in my opinion, yes, it makes sense to build AI agents in TypeScript, because you have, like, um, uh, you can leverage the de facto default language for coding agents. You can have one single language for your whole application and your whole codebase.
You can tap into, uh, fast-growing AI ecosystem. You can have consistent typing, uh, across all your applications. And you can tap into the richest package manager that there is, npm.
So, um, you might ask, was all this unpredictable? And the answer is actually no. Someone predicted this, uh, many years ago, almost 20 years ago. Jeff Atwood said, "Any application that can be written in JavaScript will eventually be written in JavaScript."
Atwood's Law12:00
And, you know, as you, as you probably know, in the last few years we have a corollary of this, that any application that could be written in JavaScript will eventually be written in TypeScript. And so basically we can say that any application, even the agentic ones, will be written in TypeScript.
Just the Start12:44
And be mindful that what I showed you today is just the beginning. Like, we are just getting started. You can project this in a few years, and you can see that on the application layer, the difference between TypeScript and Python is actually going to widen from here.
So, um, as I said, the model can still run on pip, but the agent, which is the application layer today, so the agent that calls the models, will probably ship on npm. So everything on the inference layer, you know, it's going to be Python, but everything, everything else, probably all TypeScript.
Advice13:31
Let me leave you with one recommendation then. Um, keep training in Python. As I said, I don't see that one going away, uh, soon. But please consider building the agents and the applications in TypeScript. Because if you don't do that now, if you overlook TypeScript, you are probably going to fall behind.
That was all on my side today. Um, I thank you all for, uh, your listening. And please, uh, scan the QR code for the slides. Reach out to me if you agree or if you disagree, if you have any feedback.
And let's get in touch. Thank you. Bye-bye.





