Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Runtime Apis RPC (WorkerEntrypoint)

Teaches how to implement and invoke Remote Procedure Calls (RPC) between Cloudflare Workers by extending the WorkerEntrypoint class and using service bindings.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Runtime Apis RPC (WorkerEntrypoint)

Teaches how to implement and invoke Remote Procedure Calls (RPC) between Cloudflare Workers by extending the WorkerEntrypoint class and using service bindings.

When To Use

Use when you need to implement direct, private method calls between different Workers or between a Worker and a Durable Object without using public HTTP endpoints.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-runtime-apis-bindings-rpc-workerentrypoint-workflow-guide.mdDocumentation explaining how to use the WorkerEntrypoint class and service bindings to implement RPC between Cloudflare Workers.Questions about documentation explaining how to use the WorkerEntrypoint class and service bindings to implement RPC between Cloudfla...
examples/workers-runtime-apis-bindings-rpc-workerentrypoint-cloudflare-workers-rp.textA wrangler configuration file demonstrating the setup for using Runtime APIs RPC with a WorkerEntrypoint.Exact payloads, commands, or snippets shown in A wrangler configuration file demonstrating the setup for using Runtime APIs RPC with a WorkerEntrypoint.
examples/workers-runtime-apis-bindings-rpc-workerentrypoint-cloudflare-workers-rp-2.textA wrangler configuration file demonstrating the setup for a Cloudflare Worker using the WorkerEntrypoint RPC API.Exact payloads, commands, or snippets shown in A wrangler configuration file demonstrating the setup for a Cloudflare Worker using the WorkerEntrypoint RPC API.
examples/workers-runtime-apis-bindings-rpc-workerentrypoint-cloudflare-workers-rp-3.textA JavaScript code example demonstrating how to extend the WorkerEntrypoint class to implement RPC methods in a Cloudflare Worker.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to extend the WorkerEntrypoint class to implement RPC methods in a Cloudf...
examples/workers-runtime-apis-bindings-rpc-workerentrypoint-cloudflare-workers-rp-4.textA TypeScript implementation demonstrating how to extend the WorkerEntrypoint class to enable RPC calls between Workers.Exact payloads, commands, or snippets shown in A TypeScript implementation demonstrating how to extend the WorkerEntrypoint class to enable RPC calls between Workers.
examples/workers-runtime-apis-bindings-rpc-workerentrypoint-cloudflare-workers-rp-5.textA Python implementation of a WorkerEntrypoint class demonstrating RPC method definitions and response handling.Exact payloads, commands, or snippets shown in A Python implementation of a WorkerEntrypoint class demonstrating RPC method definitions and response handling.
examples/workers-runtime-apis-bindings-rpc-workerentrypoint-cloudflare-workers-rp-6.textA configuration file demonstrating how to define service bindings for RPC communication between Cloudflare Workers using the WorkerEntrypoint API.Exact payloads, commands, or snippets shown in A configuration file demonstrating how to define service bindings for RPC communication between Cloudflare Workers us...
examples/workers-runtime-apis-bindings-rpc-workerentrypoint-cloudflare-workers-rp-7.textA TOML configuration file defining a service binding for RPC communication between two Cloudflare Workers.Exact payloads, commands, or snippets shown in A TOML configuration file defining a service binding for RPC communication between two Cloudflare Workers.
examples/workers-runtime-apis-bindings-rpc-workerentrypoint-cloudflare-workers-rp-8.textA JavaScript code example demonstrating how to use the WorkerEntrypoint RPC API to call methods on a service binding.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the WorkerEntrypoint RPC API to call methods on a service binding.
examples/workers-runtime-apis-bindings-rpc-workerentrypoint-cloudflare-workers-rp-9.textA Python implementation of a WorkerEntrypoint class demonstrating RPC service binding calls within a Cloudflare Worker.Exact payloads, commands, or snippets shown in A Python implementation of a WorkerEntrypoint class demonstrating RPC service binding calls within a Cloudflare Worker.
examples/workers-runtime-apis-bindings-rpc-workerentrypoint-cloudflare-workers-rp-10.textA JavaScript code example demonstrating how to extend the WorkerEntrypoint class to implement RPC methods in a Cloudflare Worker.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to extend the WorkerEntrypoint class to implement RPC methods in a Cloudf...
examples/workers-runtime-apis-bindings-rpc-workerentrypoint-cloudflare-workers-rp-11.textA wrangler configuration file defining a worker named my-worker with a GREETING environment variable for testing RPC via WorkerEntrypoint.Exact payloads, commands, or snippets shown in A wrangler configuration file defining a worker named my-worker with a GREETING environment variable for testing RPC...
examples/workers-runtime-apis-bindings-rpc-workerentrypoint-cloudflare-workers-rp-12.textA wrangler.toml configuration file demonstrating the setup for using Runtime APIs RPC with WorkerEntrypoint.Exact payloads, commands, or snippets shown in A wrangler.toml configuration file demonstrating the setup for using Runtime APIs RPC with WorkerEntrypoint.
examples/workers-runtime-apis-bindings-rpc-workerentrypoint-cloudflare-workers-rp-13.textA JavaScript code example demonstrating how to extend the WorkerEntrypoint class to implement RPC methods in a Cloudflare Worker.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to extend the WorkerEntrypoint class to implement RPC methods in a Cloudf...
examples/workers-runtime-apis-bindings-rpc-workerentrypoint-cloudflare-workers-rp-14.textA JavaScript code example demonstrating how to implement a class extending WorkerEntrypoint to enable RPC calls within Cloudflare Workers.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to implement a class extending WorkerEntrypoint to enable RPC calls withi...
examples/workers-runtime-apis-bindings-rpc-workerentrypoint-cloudflare-workers-rp-15.textA JavaScript code example demonstrating how to extend the WorkerEntrypoint class to implement RPC methods within a Cloudflare Worker.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to extend the WorkerEntrypoint class to implement RPC methods within a Cl...
examples/workers-runtime-apis-bindings-rpc-workerentrypoint-cloudflare-workers-rp-16.textA TypeScript code example demonstrating how to extend the WorkerEntrypoint class to implement RPC methods in a Cloudflare Worker.Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to extend the WorkerEntrypoint class to implement RPC methods in a Cloudf...
examples/workers-runtime-apis-bindings-rpc-workerentrypoint-cloudflare-workers-rp-17.textA JavaScript code example demonstrating how to invoke methods on a service binding using the WorkerEntrypoint RPC API.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to invoke methods on a service binding using the WorkerEntrypoint RPC API.
examples/workers-runtime-apis-bindings-rpc-workerentrypoint-cloudflare-workers-rp-18.textA wrangler configuration file demonstrating the setup for using Runtime APIs RPC with a WorkerEntrypoint.Exact payloads, commands, or snippets shown in A wrangler configuration file demonstrating the setup for using Runtime APIs RPC with a WorkerEntrypoint.
examples/workers-runtime-apis-bindings-rpc-workerentrypoint-cloudflare-workers-rp-19.textA wrangler.toml configuration file defining a D1 database binding for a worker using the RPC WorkerEntrypoint pattern.Exact payloads, commands, or snippets shown in A wrangler.toml configuration file defining a D1 database binding for a worker using the RPC WorkerEntrypoint pattern.
examples/workers-runtime-apis-bindings-rpc-workerentrypoint-cloudflare-workers-rp-20.textA JavaScript implementation demonstrating how to extend the WorkerEntrypoint class to expose methods via RPC using Cloudflare Workers.Exact payloads, commands, or snippets shown in A JavaScript implementation demonstrating how to extend the WorkerEntrypoint class to expose methods via RPC using Cl...
examples/workers-runtime-apis-bindings-rpc-workerentrypoint-cloudflare-workers-rp-21.textA wrangler configuration file demonstrating how to define a service binding with an entrypoint for RPC communication.Exact payloads, commands, or snippets shown in A wrangler configuration file demonstrating how to define a service binding with an entrypoint for RPC communication.
examples/workers-runtime-apis-bindings-rpc-workerentrypoint-cloudflare-workers-rp-22.textA TOML configuration file defining a service binding with a specific WorkerEntrypoint for RPC communication.Exact payloads, commands, or snippets shown in A TOML configuration file defining a service binding with a specific WorkerEntrypoint for RPC communication.
examples/workers-runtime-apis-bindings-rpc-workerentrypoint-cloudflare-workers-rp-23.textA text example demonstrating how to use the WorkerEntrypoint class to implement RPC-style method calls between services via service bindings.Exact payloads, commands, or snippets shown in A text example demonstrating how to use the WorkerEntrypoint class to implement RPC-style method calls between servic...

What This Skill Covers

  • Service bindings allow one Worker to call into another, without going through a publicly-accessible URL.
  • Main sections: Tags, Example, The WorkerEntrypoint Class, Bindings (env), Lifecycle methods (ctx).

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/rpc