How Wasmer built a Node.js runtime for the edge using OpenAI Codex
Wasmer develops Edge.js using OpenAI Codex
Wasmer has developed Edge.js, a JavaScript runtime that enables Node.js workloads to run within a WebAssembly (Wasm) sandbox. This allows developers to execute JavaScript applications, Model Context Protocol (MCP) servers, and AI agents at the edge layer without the need for Docker containers. According to Wasmer CEO Syrus Akbary Nieto, the project was completed in two weeks using OpenAI Codex, a timeline that would have otherwise required approximately one year of development.
Accelerating development speed and productivity
OpenAI Codex significantly increased the development velocity for the Wasmer team, with CEO Syrus Akbary Nieto stating that development speed increased by "10x to 20x, at least." This acceleration allowed a small team to undertake ambitious projects that were previously considered impractical due to resource and time constraints.
"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."
Technical capabilities and low-level debugging
Wasmer engineers utilized Codex throughout the entire development lifecycle, from the initial architectural design to final polishing. The tool proved particularly effective in identifying and resolving complex bugs that required low-level system knowledge.
Low-level system analysis
Codex demonstrated the ability to reason across different levels of code and languages, including C++. It helped the team identify subtle bugs that the engineers themselves were not experts in. Specifically, Codex was used to:
Trace calls via console logs: Mastering the use of logs to track execution flow.
Utilize low-level debuggers: Using tools like LLD to access and analyze the system at the assembly level.
Root cause identification: Rapidly moving from the discovery of a bug to identifying its root cause and implementing a solution.
Implications for edge computing
By successfully implementing a Node.js runtime at the edge, Wasmer has become the first cloud host to provide full Node.js capabilities at the edge layer. This shift allows Wasmer to move beyond the IDE, with engineers focusing more on guiding the AI's direction rather than manually writing every line of code.