← All projects
Project record1 mention
Originally shared on Hacker News

IPC/RPC shim for Chrome extensions

This shim provides strongly-typed IPC/RPC messaging between the isolated JS contexts of a Chrome extension, which otherwise expose wildly inconsistent messaging APIs. It pulls in VSCode's core libraries and injects them via dependency injection, layering their ipc/rpc and eventing over each native environment's communication mechanisms to expose a single strongly-typed messaging API.

Last shared
01 / The problem

What it addresses

Isolated JS contexts in Chrome extensions expose wildly inconsistent messaging APIs.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. IPC/RPC shim for Chrome extensions

    This shim provides strongly-typed IPC/RPC messaging between the isolated JS contexts of a Chrome extension, which otherwise expose wildly inconsistent messaging APIs. It pulls in VSCode's core libraries and injects them via dependency injection, layering their ipc/rpc and eventing over each native environment's communication mechanisms to expose a single strongly-typed messaging API.

    Problem: Isolated JS contexts in Chrome extensions expose wildly inconsistent messaging APIs.

    Posted by @dataviz1000 · Original source ↗

    Source text · @dataviz1000 · · Source ↗

    I built an IPC/RPC shim for a Chrome extension so I can send strongly-typed messages between isolated JS contexts that otherwise expose wildly inconsistent messaging APIs.