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.
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
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-runtime-apis-bindings-rpc-workerentrypoint-workflow-guide.md | Documentation 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - 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
