{"id":23806780,"url":"https://github.com/webrpc/gen-javascript","last_synced_at":"2025-09-06T17:31:17.892Z","repository":{"id":63200964,"uuid":"546389230","full_name":"webrpc/gen-javascript","owner":"webrpc","description":"webrpc JavaScript (ES6) client/server generator","archived":false,"fork":false,"pushed_at":"2024-06-21T10:42:50.000Z","size":64,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-22T03:42:32.385Z","etag":null,"topics":["client","es6","generator","javasceript","server","webrpc"],"latest_commit_sha":null,"homepage":"https://github.com/webrpc/webrpc","language":"Go","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/webrpc.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-06T02:13:07.000Z","updated_at":"2024-06-21T10:42:21.000Z","dependencies_parsed_at":"2024-04-04T15:50:55.783Z","dependency_job_id":null,"html_url":"https://github.com/webrpc/gen-javascript","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webrpc%2Fgen-javascript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webrpc%2Fgen-javascript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webrpc%2Fgen-javascript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webrpc%2Fgen-javascript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webrpc","download_url":"https://codeload.github.com/webrpc/gen-javascript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232133905,"owners_count":18477299,"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":["client","es6","generator","javasceript","server","webrpc"],"created_at":"2025-01-01T23:14:30.237Z","updated_at":"2025-01-01T23:14:31.002Z","avatar_url":"https://github.com/webrpc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"webrpc Javascript (ES6) generator\n=================================\n\n\u003e NOTE: the javascript generator is almost identical to the typescript one,\n\u003e just without the types.. we could have even omitted this generator\n\u003e and just relied on `tsc` to compile to es5/es6 JS versions, but\n\u003e for ease of use for devs that don't use TS, we offer this generator.\n\nThis generator, from a webrpc schema/design file will code-generate:\n\n1. Client -- an isomorphic/universal Javascript client to speak to a webrpc server using the\nprovided schema. This client is compatible with any webrpc server language (ie. Go, nodejs, etc.).\nAs the client is isomorphic, means you can use this within a Web browser or use the client in a \nserver like nodejs -- both without needing any dependencies. I suggest to read the generated TS\noutput of the generated code, and you shall see, its nothing fancy, just the sort of thing you'd\nwrite by hand.\n\n2. Server -- a nodejs Javascript server handler. See examples.\n\n## Usage\n\n```\nwebrpc-gen -schema=example.ridl -target=javascript -server -client -out=./example.gen.ts\n```\n\nor \n\n```\nwebrpc-gen -schema=example.ridl -target=github.com/webrpc/gen-javascript@v0.7.0 -server -client -out=./example.gen.js\n```\n\nor\n\n```\nwebrpc-gen -schema=example.ridl -target=./local-templates-on-disk -server -client -out=./example.gen.js\n```\n\n### Set custom template variables\nChange any of the following values by passing `-option=\"Value\"` CLI flag to `webrpc-gen`.\n\n| webrpc-gen -option   | Description                | Default value              |\n|----------------------|----------------------------|----------------------------|\n| `-client`            | generate client code       | unset (`false`)            |\n| `-server`            | generate server code       | unset (`false`)            |\n| `-exports=false`     | disable \"exports\" in code  | enabled (`true`)           |\n\nExample:\n```\nwebrpc-gen -schema=example.ridl -target=javascript -server -client -exports=false -out=./example.gen.js\n```\n\n## LICENSE\n\n[MIT LICENSE](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebrpc%2Fgen-javascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebrpc%2Fgen-javascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebrpc%2Fgen-javascript/lists"}