{"id":20161048,"url":"https://github.com/delight-rpc/webextension","last_synced_at":"2026-04-15T07:33:04.294Z","repository":{"id":65813239,"uuid":"600432943","full_name":"delight-rpc/webextension","owner":"delight-rpc","description":"🌿","archived":false,"fork":false,"pushed_at":"2023-06-11T07:01:28.000Z","size":148,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-12-03T06:21:13.426Z","etag":null,"topics":["browser","esm","library","npm-package","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@delight-rpc/webextension","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/delight-rpc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-02-11T13:33:55.000Z","updated_at":"2023-12-20T15:30:41.959Z","dependencies_parsed_at":"2023-12-20T15:30:27.647Z","dependency_job_id":"d4bc0647-5d4c-49d0-ba9b-a2c45a097071","html_url":"https://github.com/delight-rpc/webextension","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"3fddc85379e87cc274fb8623b71420ad0f71c520"},"previous_names":[],"tags_count":5,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delight-rpc%2Fwebextension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delight-rpc%2Fwebextension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delight-rpc%2Fwebextension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delight-rpc%2Fwebextension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/delight-rpc","download_url":"https://codeload.github.com/delight-rpc/webextension/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241600482,"owners_count":19988713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser","esm","library","npm-package","typescript"],"created_at":"2024-11-14T00:17:08.843Z","updated_at":"2026-04-15T07:33:04.282Z","avatar_url":"https://github.com/delight-rpc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @delight-rpc/webextension\n## Install\n```sh\nnpm install --save @delight-rpc/webextension\n# or\nyarn add @delight-rpc/webextension\n```\n\n## API\n### createBackgroundClient\n```ts\nfunction createBackgroundClient\u003cIAPI extends object\u003e(\n  options?: {\n    parameterValidators?: DelightRPC.ParameterValidators\u003cIAPI\u003e\n    expectedVersion?: string\n    channel?: string\n    timeout?: number\n  }\n): [client: DelightRPC.ClientProxy\u003cIAPI\u003e, close: () =\u003e void]\n```\n\n### createTabClient\n```ts\nfunction createTabClient\u003cIAPI extends object\u003e(\n  target: {\n    tabId: number\n    frameId?: number\n  }\n, options?: {\n    parameterValidators?: DelightRPC.ParameterValidators\u003cIAPI\u003e\n    expectedVersion?: string\n    channel?: string\n    timeout?: number\n  }\n): [client: DelightRPC.ClientProxy\u003cIAPI\u003e, close: () =\u003e void]\n```\n\n### createBackgroundBatchClient\n```ts\nfunction createBackgroundBatchClient\u003cDataType\u003e(\n  options?: {\n    expectedVersion?: string\n    channel?: string\n    timeout?: number\n  }\n): [client: DelightRPC.BatchClient\u003cDataType\u003e, close: () =\u003e void]\n```\n\n### createTabBatchClient\n```ts\nfunction createTabBatchClient\u003cDataType\u003e(\n  target: {\n    tabId: number\n    frameId?: number\n  }\n, options?: {\n    expectedVersion?: string\n    channel?: string\n    timeout?: number\n  }\n): [client: DelightRPC.BatchClient\u003cDataType\u003e, close: () =\u003e void]\n```\n\n### createServer\n```ts\nfunction createServer\u003cIAPI extends object\u003e(\n  api: DelightRPC.ImplementationOf\u003cIAPI\u003e\n, { parameterValidators, version, channel, ownPropsOnly }: {\n    parameterValidators?: DelightRPC.ParameterValidators\u003cIAPI\u003e\n    version?: `${number}.${number}.${number}`\n    channel?: string | RegExp | typeof DelightRPC.AnyChannel\n    ownPropsOnly?: boolean\n  } = {}\n): () =\u003e void\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelight-rpc%2Fwebextension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdelight-rpc%2Fwebextension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelight-rpc%2Fwebextension/lists"}