Skip to content

feat: patchwork-worker library for connecting to generic workers - #63

Open
grjte wants to merge 1 commit into
mainfrom
grjte/patchwork-worker-lib
Open

grjte wants to merge 1 commit into
mainfrom
grjte/patchwork-worker-lib

Conversation

@grjte

@grjte grjte commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

This creates a library for creating and connecting to workers by passing a transferable stream pair (readable, writable) to consumers that want to connect to the worker.

The motivation for this library is to enable packages inside of an iframe or isolated zone to connect to a worker that is initiated from the host. For example, when using chat from inside isolation, running the llm requires a worker which isn't powerful enough if initiated with an iframe context (e.g. for local llm it can't download the model or run it). Instead, it can request a worker running in the host and then get a stream pair to use for communication.

The rest of the architecture for the example llm case is separate from this library

@patchcrow

patchcrow commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

✅ Patchwork glance ready

https://patchwork-preview-63--patchwork-base.netlify.app

Patchwork from inkandswitch/patchwork.inkandswitch.com, packages from this PR at 3d15414.

build-info.json

@grjte
grjte requested a review from chee September 15, 2026 14:55
@grjte
grjte force-pushed the grjte/patchwork-worker-lib branch from 9bbbd45 to 3d15414 Compare September 16, 2026 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants