Home

Awesome

<!-- markdownlint-disable first-line-heading --> <div align="center">

modus

GitHub License chat GitHub Repo stars GitHub commit activity

</div> <p align="center"> <a href="https://docs.hypermode.com/modus/quickstart">Get Started</a> · <a href="https://docs.hypermode.com/">Docs</a> · <a href="https://discord.com/invite/MAZgkhP6C6">Discord</a> <p>

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. And, it's really fast.

We built Modus to put code back at the heart of development.

You write a function.

export function sayHello(name: string): string {
  return `Hello, ${name}!`;
}

Then, Modus:

You query the endpoint

query SayHello {
  sayHello(name: "World")
}

In a few milliseconds, Modus:

Now you have a production ready scalable endpoint for your AI-enabled app. AI-ready when you’re ready. Launch and iterate.

Quickstart

Install the Modus CLI

npm install -g @hypermode/modus-cli

Initialize your Modus app

modus new

Run your app locally with fast refresh

modus dev

Demo

<div align="center">

Modus Demo

</div>

What's it good for?

We designed Modus primarily as a general-purpose framework, it just happens to treat models as a first-class component. With Modus you can use models, as appropriate, without additional complexity.

Modus is optimized for applications that require sub-second response times. We’ve made trade-offs to prioritize speed and simplicity.

Programming Languages

Since Modus is based on WebAssembly, you can write Modus apps in various programming languages. Each language offers the full capabilities of the Modus framework.

Currently, the supported languages you may choose from are:

Additional programming languages may be supported in the future.

Hosting

We have designed Hypermode to be the best place to run your Modus app. Hypermode hosting plans include features you might expect, such as support, telemetry, and high availability. They also include specialty features such as model hosting that are purposefully designed to work in tandem with Modus apps.

As Modus is a free, open-source framework, you’re welcome to run your Modus apps on your own hardware or on any hosting platform that meets your needs.

Open Source

Modus is developed by Hypermode as an open-source project, integral but independent from Hypermode.

We welcome external contributions. See the CONTRIBUTING.md file if you would like to get involved.

Acknowledgements

It's taken a lot of hard work to bring Modus to life, but we couldn't have done it alone. Modus is built upon many open source components and projects. We'd especially like to express our gratitude to the authors and teams of our core dependencies:

License

Modus and its components are Copyright 2024 Hypermode Inc., and licensed under the terms of the Apache License, Version 2.0. See the LICENSE file for a complete copy of the license.

If you have any questions about Modus licensing, or need an alternate license or other arrangement, please contact us at hello@hypermode.com.