{"library":"soclaw-middleware-anything","title":"Soclaw Middleware Anything","type":"library","description":"Gateway middleware node runtime v1.0.4 that embeds Express health endpoints and routes remote WebSocket commands to a local command-registry. Supports Node modules, Python/ESM subprocesses, and CLI-scripted execution. Manifest-driven command loading from built-in JSON, environment variables, or runtime API injection. Requires Node.js ≥18. Built with esbuild to produce dist/ entry points. Key differentiator: dynamic command injection without modifying the core package, via external manifest files, env vars, or programmatic applyManifestLayer. Includes a CLI binary for debugging/scripting. Uses cross-env for Windows compatibility. Release cadence: unknown, single published version.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install soclaw-middleware-anything"],"cli":{"name":"soclaw-middleware-anything","version":null}},"imports":["import soclaw from 'soclaw-middleware-anything'","const { GatewayClient } = require('soclaw-middleware-anything')","const { bootstrapCommandRegistry } = require('soclaw-middleware-anything/dist/command')","const { applyManifestLayer } = require('soclaw-middleware-anything/dist/command')"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":"https://www.npmjs.com/package/soclaw-middleware-anything","github":"https://github.com/sobey/soclaw-middleware-anything","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/soclaw-middleware-anything","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"const { GatewayClient } = require('soclaw-middleware-anything');\nconst client = new GatewayClient({\n  gateway: process.env.GATEWAY_URL ?? 'ws://localhost:8080',\n  nodeId: process.env.NODE_ID ?? 'node-1'\n});\nclient.on('message', (msg) => {\n  console.log('Received:', msg);\n});\nclient.connect();","lang":"javascript","description":"Initialize GatewayClient to connect to a WebSocket gateway, listen for messages, and handle commands.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}