crosscall

cross-origin postmessage rpc

Usage no npm install needed!

<script type="module">
  import crosscall from 'https://cdn.skypack.dev/crosscall';
</script>

README

crosscall

postmessage rpc and events across origins

npm install crosscall

  • remote procedure calls and events between webpages
    even if they are on different origins

  • crosscall client opens the host page in an iframe or a popup
    the host can expose async functionality to the client
    crosscall mediates the client and host via postmessage

  • live demo

  • crosscall shares a similar interface with renraku

  • i'm currently using crosscall a lot in my authoritarian project

see example code until i write a real readme