@evilkiwi/iframe
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published
NPM Discord GPL-3.0-only

iFrame IPC for React

@evilkiwi/iframe provides a React hook which can be used to communicate between an iFrame and its parent via postMessage IPC.

  • sync/async messaging/responses
  • Configurable timeouts
  • Bi-directional communication Cross-origin support
  • Same usage/API for both Host & Client
  • Support for enforcing origins for increased security-
  • No limit to number of instances you can use/create at any given time-
  • TypeScript
  • Tiny with zero dependencies!

Installation

This package is available via NPM:

pnpm add @evilkiwi/iframe

# or

yarn add @evilkiwi/iframe

# or

npm install @evilkiwi/iframe

Usage

TODO:

/@evilkiwi/iframe/

    Package Sidebar

    Install

    npm i @evilkiwi/iframe

    Weekly Downloads

    2

    Version

    1.0.3

    License

    GPL-3.0-only

    Unpacked Size

    48.7 kB

    Total Files

    9

    Last publish

    Collaborators

    • oyed