Modus is an open-source, serverless framework for building APIs powered by WebAssembly. It simplifies integrating AI models, data, and business logic with sandboxed execution.<p>We built Modus to put code back at the heart of development.<p>You write a function.<p><pre><code> export function sayHello(name: string): string {
return `Hello, ${name}!`;
}
</code></pre>
Then, Modus:<p>- extracts the metadata of your functions<p>- compiles your code with optimizations based on the host environment<p>- caches the compiled module in memory for fast retrieval<p>- prepares an invocation plan for each function<p>- extracts connections, models, and other configuration details from the app’s manifest<p>- generates an API schema and activates the endpoint<p>You query the endpoint.<p><pre><code> query SayHello {
sayHello(name: "world")
}
</code></pre>
In a few milliseconds, Modus:<p>- loads your compiled code into a sandboxed execution environment with a dedicated memory space<p>- runs your code, aided by host functions that power the Modus APIs<p>- securely queries data and AI models as needed, without exposing credentials to your code<p>- responds via the API result and releases the execution environment<p>Now you have a production ready scalable endpoint for your AI-enabled app. AI-ready when you’re ready. Launch and iterate.<p>Read more in the announcement blog post: <a href="https://hypermode.com/blog/introducing-modus-code-first-intelligent-apis" rel="nofollow">https://hypermode.com/blog/introducing-modus-code-first-inte...</a><p>Come join our Discord, we’d love to hear your feedback: <a href="https://discord.hypermode.com" rel="nofollow">https://discord.hypermode.com</a><p>Follow us on GitHub: <a href="https://github.com/hypermodeinc/modus">https://github.com/hypermodeinc/modus</a><p>Modus docs: <a href="https://docs.hypermode.com/modus" rel="nofollow">https://docs.hypermode.com/modus</a><p>Modus quickstart video: <a href="https://youtu.be/3CcJTXTmz88" rel="nofollow">https://youtu.be/3CcJTXTmz88</a>
Congrats on the launch! Curious what the main benefit of using a web assembly runtime is? And any plans for python support or mainly focusing on Go for now?
Hi Folks -- I'm one of the people who worked on this project along with the rest of Hypermode team. Happy to answer questions or hear your feedback!