HaloForge Plugin API
Build native plugins for HaloForge — the Game Dev Team Workbench & AI Assistant.
This repository contains both the Rust crate and the JavaScript/TypeScript SDK that plugin authors need.
- SDK repository: https://github.com/HaloForgeAI/haloforge-plugin-api
- Main HaloForge application: https://github.com/loyio/HaloForge
Packages
| Package | Language | Registry | Install |
|---|---|---|---|
haloforge-plugin-api |
Rust | crates.io | cargo add haloforge-plugin-api |
@haloforge/plugin-sdk |
TypeScript | npm | npm i @haloforge/plugin-sdk |
Quick Start (Rust Backend)
# Cargo.toml
[]
= ["cdylib"]
[]
= "0.1"
= "1"
use *;
;
declare_plugin!;
Quick Start (Frontend)
import { definePlugin, registerPlugin, invokePlugin } from "@haloforge/plugin-sdk";
const plugin = definePlugin({
id: "com.example.my-plugin",
slots: {
"devkit.toolbar": () => <button onClick={handleClick}>Greet</button>,
},
});
async function handleClick() {
const result = await invokePlugin<{ message: string }>("hello", { name: "HaloForge" });
alert(result.message);
}
registerPlugin(plugin);
Plugin Manifest
Every plugin needs a manifest.json. See the built-in plugins for examples.
Capability Levels
| Level | Type | Description |
|---|---|---|
| 0 | Module | Full sidebar module |
| 1 | Module Feature | Tab inside an existing module |
| 2 | UI Extension | Inject into UI slots |
| 3 | AI Assistant | Custom AI assistant persona |
| 4 | Service | Workflow step types & background services |
License
MIT