How Wasmer used Codex to build a Node.js runtime for the edge
TL;DR · AI Summary
Wasmer built Edge.js in two weeks using OpenAI Codex, enabling Node.js workloads to run safely inside a WebAssembly sandbox without Docker. Development speed increased 10–20x, and it became the first cloud host to provide full Node.js at the edge.
Key Takeaways
- Development speed increased 10–20x: built Edge.js in two weeks instead of a year
- Run Node.js safely inside a WebAssembly sandbox without Docker.
- Became the first cloud host to provide full Node.js at the edge.
Outline
Jump quickly between sections.
Wasmer used Codex to build Edge.js in two weeks, enabling Node.js workloads to run safely in a WebAssembly sandbox without Docker.
Development speed increased 10–20x, reducing a one-year project to two weeks.
Achieved secure, lightweight deployment of Node.js workloads across environments using a WebAssembly sandbox.
Shifted from extensive manual coding to guiding Codex, significantly reducing development costs and complexity.
Codex can access low-level debuggers and assembly-level information, quickly identifying root causes of complex bugs.
Became the first cloud host to provide full Node.js at the edge, advancing edge computing adoption.
Mindmap
See how the topics connect at a glance.
查看大纲文本(无障碍 / 无 JS 友好)
- Wasmer + Codex 构建 Edge.js
- 项目成果与里程碑
- 两周构建Edge.js,无需Docker
- 效率提升量化
- 开发速度提升10–20倍
- 技术架构与沙箱安全
- WebAssembly沙箱隔离运行Node.js
- AI辅助开发流程
- 从手把手编码转向用Codex引导代码
- 调试与低层洞察
- 访问底层调试器与汇编级信息,快速定位根因
- 行业影响与展望
- 首个在边缘提供完整Node.js的云主机
Highlights
Key sentences worth saving and sharing.
Development speed increased 10–20x: built Edge.js in two weeks instead of a year.
Run Node.js safely inside a WebAssembly sandbox without Docker.
Became the first cloud host to provide full Node.js at the edge.
Engineers at Wasmer experienced a breakthrough this year: They figured out how to run Node.js workloads inside a WebAssembly sandbox, enabling developers to run JavaScript apps, MCPs, and agents without Docker. This effort would have taken one year without Codex, but with Codex, it took two weeks. Now, they’re the first cloud host to provide full Node.js at the edge layer.
“We are actually moving out of the IDE itself. We’re not touching as much the code, we are just guiding it where we want it to go.”
—Syrus Akbary Nieto, Founder and CEO
Building with renewed ambition
Wasmer is a young company with a small team and a big goal: an edge computing platform that scales across local and global environments without platform restrictions.
“The kinds of projects that we are taking on are incredibly ambitious, and it would have taken us ages to do them without AI,” says Syrus Akbary Nieto, Founder and CEO. “Now, things are way simpler and faster.”
That simplicity and speed translated directly into a groundbreaking project: Edge.js(opens in a new window), a JavaScript runtime that can run Node.js workloads for AI and edge computing.
It’s a project the team had long wanted to take on, but they didn’t always have the resources to do it. “Everyone here is very, very technical, but we just didn't have the time to dedicate to these projects. And now, we can launch new products that would have been impossible before,” explains Nieto.
With Codex, Wasmer engineers can multiply their efforts. “We have increased development speed by 10x to 20x, at least,” says Nieto.
“We were able to create a JavaScript runtime in just two weeks. Without AI and without Codex, it would have taken us easily one year.”
—Syrus Akbary Nieto, Founder and CEO
Reasoning across languages and levels of code
Like many teams, Wasmer engineers were initially skeptical of AI. “We were not very trusting of AI outputs at the beginning,” explains Nieto. But when the team started experimenting, the results exceeded their expectations. “Over the last year, and especially over the last few months, we have been working with Codex, and the results have been really, really good.”
As Codex’s reasoning abilities evolve, Wasmer engineers spend less and less time with handholding. “We are actually moving out of the IDE itself, and we are not touching the code as much. We are just guiding it where we want it to go,” says Nieto.
The team used Codex from the very beginning of the project to the very end, from building the initial architectural building blocks to polishing the final product. Throughout, Codex helped the team find bugs and identify their root causes.
“There were certain bugs that we didn’t imagine we were going to have, and as soon as we started discovering them, Codex went directly into debugging,” Nieto says. “The impressive thing for us was seeing how fast it went from debugging to finding the root cause and identifying the solution.”
Typically, Nieto explains, developers would need special expertise to find many of these bugs. But Codex, Nieto says, “was able to master console logs to trace calls and a low-level debugger like LLD, which accesses things on the assembly level. Codex can get very low level, and see what is happening under the code.”
“There are certain subtleties that we don't know of because we are not experts in C++. Codex was able to spot them pretty early.”
—Syrus Akbary Nieto, Founder and CEO
Making the impossible practical
Before Edge.js, Nieto explains, it wasn’t possible to run a JavaScript runtime at the edge. And before Codex, it would have been impossible for the Wasmer team to take on a project this ambitious and with this timeline.
“Codex enabled a small company to achieve things that were only possible at big companies. This project literally would have been impossible without it,” says Nieto.
With their ambitions emboldened, the Wasmer team is looking ahead to even bigger projects. “Now, we have at hand things that were not possible before. We need to look at even more challenging problems,” says Nieto.