
taybenlor/runno
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
taybenlor/runnoは、[[T0]からインポートされたMCPサーバー候補です。
概要
taybenlor/runnoは、[[T0]からインポートされたMCPサーバー候補です。
概要(AI 翻訳)
👨 💻 Runnoを使え 👉 Runno.dev
📖 記録 👉 Runno.dev
ランノ
Runnoは、さまざまな言語でコードを実行するためのJavaScriptパッケージのコレクションです 砂場の中に。以下のパッケージで構成されています:
@runno/runtime- ブラウザ上でコード例を実行するためのウェブコンポーネントおよびヘッドレスツール。@runno/sandbox- Nodeやその他のJSランタイムでコード例を実行するための安全なサンドボックス。@runno/wasi- WebAssemblyのWASIバイナリをサンドボックス内で実行するための同型パッケージです。@runno/mcp-@runno/sandboxパッケージを使ってコードを実行するためのMCPサーバー。
runnoという廃止されたPythonパッケージもあります。
それはサンドボックスパッケージのように機能します。
このプロジェクトはWASI(ウェブアセンブリシステム)によって運営されています インターフェース。これは、プログラムが オペレーティングシステム。このインターフェースをエミュレートすることで、偽のファイルシステムを提供できます すべてJavaScript上で動作するオペレーティングシステムです。
@runno/runtime を使って
@runno/runtimeパッケージはブラウザ上でコードを実行するためのWeb コンポーネントを提供します。
これはプログラミング教育に非常に役立ちます。つまり:
- 初心者が複雑なプログラミングツールをインストールする必要がない
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
👨💻 Use Runno 👉 Runno.dev
📖 Documentation 👉 Runno.dev
Runno
Runno is a collection of JavaScript Packages for running code in various languages inside a sandbox. It’s made of the following packages:
@runno/runtime- web components and headless tools for running code examples in the browser.@runno/sandbox- a secure sandbox for running code examples in Node and other JS Runtimes.@runno/wasi- an isomorphic package for running WebAssembly WASI binaries inside a sandbox.@runno/mcp- an MCP Server for running code using the@runno/sandboxpackage.
There’s also a deprecated Python package called runno
that works like the sandbox package.
This project is powered by WASI the Web Assembly System Interface. It provides a standard way for programs to interact with an operating system. By emulating this interface, we can provide a fake file system and operating system, all running within JavaScript.
Using @runno/runtime
The @runno/runtime package provides Web Components for running code in the browser.
This is very handy for programming education it means:
- No need for newbies to install complex programming tools to run code
- Programming examples can be made runnable in the browser with no server
- Simple programs can be tested for correctness inside a sandbox on the user’s machine
Quickstart
Start by adding @runno/runtime to your package:
npm install @runno/runtime
Import @runno/runtime in whatever place you’ll be using the runno elements.
The simplest is in your entrypoint file (e.g. main.ts or index.ts).
import "@runno/runtime";
Once you’ve imported them you can use runno elements on the page.
print('Hello, World!')
For the code to run though, you’ll need to set some HTTP headers:
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corp
These create a cross-origin isolated context which allows the use of SharedArrayBuffer used to implement STDIN.
Supported Runtimes
The system supports a number of runtimes based on existing packages published to WAPM. These runtimes are tied to Runno and will be supported by Runno going forward.
python- Runs python3 code, not pinned to a particular version but is at least3.6ruby- Runs standard Ruby, not pinned but is at least3.2.0quickjs- Runs JavaScript code using the QuickJS enginesqlite- Runs SQLite commands
インストール
npx @runno/mcp設定
{
"mcpServers": {
"runno": {
"command": "npx",
"args": ["@runno/mcp"]
}
}
}