Port Authority

Further reading on message ports

This site builds on a lot of other people's work. Here are 185 places to read more about MessageChannel, MessagePort, postMessage, transferable objects and SharedWorker: the reference pages, the specifications, articles, libraries, talks and research papers. Each link has one line on what it covers.

Not much has been written about message ports on their own. Most of the writing and nearly all of the research is about window.postMessage and workers, so those are here too.

The links were last checked on 2026-11-21. If one is broken, or something good is missing, please open an issue.

Reference pages

The MDN reference for each API this site uses. Each page has examples and a browser support table.

Specifications

The standards that define the behaviour.

How the standards changed

Discussions, proposals and browser announcements that show why the APIs behave as they do.

Guides from browser teams

Performance and timing

What a message costs, and how message ports are used for scheduling.

Posts about ports, frames and shared workers

There are not many articles that go past the basics. These are the ones I found.

How products use messaging

Engineering write-ups from teams that built on postMessage, ports or shared workers.

Libraries

Code that wraps postMessage or a MessagePort. Reading the source of the small ones is a good way to learn the API.

Outside the browser

The same API in server runtimes.

Capabilities and RPC

A port gives its holder the ability to send to one place, and it can be handed on. That is the idea behind object-capability security, which has a long literature.

Security guides and write-ups

Almost all of these are about window.postMessage listeners that do not check who sent the message. A private MessagePort avoids that class of bug, because only the holder of the other end can send to it.

Research papers: security of messaging

I found no paper that is only about MessageChannel. The research is about postMessage, frames and workers, and several papers cover ports as part of that.

Research papers: timing, workers and concurrency

Talks and videos

Web Intents, WebMCP and agents

The ideas the experiments on this site come from: one site asking another to do something for the person, and now an agent doing the asking.

My writing

I have written about these ideas since 2011.