Skip to content
Commit Detail

Commit b6ad306

Author
Dan Lapid <dan.lapid@gmail.com> 2025-12-06 13:32:23 +0000
Parents
3378969
Tree
c1e13dd
Add workerdDebugPort binding for dynamic worker access

This binding allows a worker to dynamically connect to another workerd
instance's debug port and access worker entrypoints via RPC, without
requiring static configuration.

The binding provides two methods:
- getEntrypoint(service, entrypoint?, props?): Access stateless entrypoints
- getActor(service, entrypoint, actorId): Access Durable Object instances

This is a workerd-only API intended for local development and testing.

Written in conjunction with Claude, Sonnet was unable to write this in a
way that I liked but opus was actually very very close!

Files changed