
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@akashic/akashic-cli-sandbox
Advanced tools
akashic-cli-sandbox は、 Akashic Engine を使って作成されたゲームの動作確認ツールです。
Node.js が必要です。次のコマンドでインストールできます。
npm install -g @akashic/akashic-cli-sandbox
akashic-cli-sandbox [-p <port>] [--cascade<cascade-path>] [<path>]
で、 <path>
に置かれているAkashicのゲームを起動できます。
出力される案内にしたがって、Webブラウザで http://localhost:3000/game/
を開いてください。
<path>
には game.json
が存在する必要があります。省略された場合、 <path>
はカレントディレクトリ (.
) です。
-p
オプションを指定すると、サーバのポート番号を変更できます。たとえば -p 3100
とした場合、 Webブラウザで開くURLは http://localhost:3100/game/
になります。
--cascade <cascade-path>
を与えると、 path
にある game.json に対して <cascade-path>
にある game.json がカスケードされます。
--cascade
を複数指定した場合、指定した順でカスケードされます。
Akashic Engineの詳細な利用方法については、 公式ページ を参照してください。
game.json
に以下の記述を追加すると、対象のゲームを Akashic Engine 2.0 として実行します。
{
..
"environment": {
"sandbox-runtime": "2"
}
}
コンテンツの game.json
と同じディレクトリに sandbox.config.js
を置いた場合、実行時の挙動をカスタマイズできます。
var config = {
/** ゲーム実行時にeventsの同名メンバーをイベントとして送信します */
autoSendEventName: "event0",
/** ゲーム実行時にデベロッパーメニューを開きます */
showMenu: true,
/** デベロッパーメニューに登録済みのイベントとして表示します */
events: {
event0: [32, null, "9999", {foo: "foo"}, false],
event1: [32, null, "9999", {var: "var"}, false]
}
}
module.exports = config;
akashic-cli-sandbox はTypeScriptで書かれたJSモジュールであるため、ビルドにはNode.jsが必要です。
npm run build
にてビルドできます。
npm install
npm run build # src/以下をビルド
環境変数 | 説明 | 注釈 |
---|---|---|
ENGINE_FILES_V3_PATH | engine-files v3 のビルド成果物のパス。 (e.g. ./engineFilesV3_x_y.js ) この値が指定された場合、 対象の engine-files を akashic-engine v3 コンテンツ実行時に利用します。 | エンジン開発用のオプションです。通常、ゲーム開発時に利用する必要はありません。 |
が実行されます。
npm test
本リポジトリは MIT License の元で公開されています。 詳しくは LICENSE をご覧ください。
ただし、画像ファイルおよび音声ファイルは CC BY 2.1 JP の元で公開されています。
FAQs
Standalone runner for Akashic contents
The npm package @akashic/akashic-cli-sandbox receives a total of 143 weekly downloads. As such, @akashic/akashic-cli-sandbox popularity was classified as not popular.
We found that @akashic/akashic-cli-sandbox demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.