{"library":"post-robot","type":"library","category":null,"description":"post-robot is a JavaScript library that simplifies secure cross-domain communication between browser windows (e.g., parent/iframe, opener/popup) using the native HTML5 `postMessage` API. It provides a robust, promise-based listener/sender pattern, abstracting away the complexities of serialization and asynchronous communication. A key differentiator is its ability to automatically serialize and deserialize complex data types, including functions, Promises (wrapped in `ZalgoPromise`), and Error objects, enabling advanced inter-window interactions. The library ensures reliable messaging with built-in error handling, timeouts, and options for securing channels by specifying target windows or domains. The current stable version is 8.0.32, and while a strict release cadence isn't explicitly stated, it is actively maintained by KrakenJS. This library is crucial for applications requiring seamless interaction between different origins.","language":"javascript","status":"active","version":"8.0.32","tags":["javascript","cross-domain","cross domain","xdm","iframe","postmessage","krakenjs","kraken"],"install":[{"cmd":"npm install post-robot","imports":["import postRobot from 'post-robot';","import postRobot from 'post-robot';\npostRobot.send(someWindow, 'messageType', data);","import postRobot from 'post-robot';\npostRobot.on('messageType', handler);"]},{"cmd":"yarn add post-robot","imports":[]},{"cmd":"pnpm add post-robot","imports":[]}],"homepage":null,"github":"https://github.com/krakenjs/post-robot","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/post-robot","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/post-robot/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Mon Jul 20","install_tag":null}}