talkDOM

Smalltalk-inspired message passing for the DOM

Zero Dependencies

No npm, no build tools. One script tag and you're ready to go.

Message Passing

Smalltalk keyword syntax for DOM communication. Elements send and receive messages by name.

Pipes & Chains

Sequential | and parallel ; message composition.

Server Triggers

Drive client-side updates from HTTP response headers. The server can talk back.

Extensible

Register custom methods at runtime with talkDOM.methods.

URL History

push-url keeps the browser history in sync with SPA navigation.

Quick Start

index.html
<script src="https://cdn.jsdelivr.net/npm/talkdom/dist/talkdom.min.js"></script>

<div receiver="content"></div>
<button sender="content get: /hello.html apply: inner">
  Load
</button>