Developer Integration


6.1 Exposing an App to the Virtual File System (VFS)

To register a new custom application into the Monkey OS taskbar, your app must dispatch a strictly typed registration payload to the global OS context window:

// Registering a Custom Snipping Tool to Monkey OS
window.dispatchEvent(new CustomEvent('MONKEY_OS_REGISTER_APP', {
  detail: {
    appId: 'custom-sniper-01',
    name: 'Sniper Pro',
    iconUrl: '/assets/icons/sniper-icon.png',
    permissions: [
      'solana:request_signature', 
      'network:rpc_read', 
      'vfs:read_shared'
    ],
    entryPoint: './apps/sniper/index.js'
  }
}));

6.2 Requesting a Transaction Signature via OS Security Layer

Custom applications must not call the wallet provider (window.solana) directly. All transaction requests must be routed through the OS security layer (os://vfs/sys/tx_manager), which invokes the Rug Buster heuristic automatically before prompting the user.

6.3 Subscribing to Global Events

Agents can subscribe to the global event bus to react to state changes, new blocks, or social signals identified by other apps (like Trend Puncher).


Last updated