{"id":22371298,"url":"https://github.com/nimalank7/grpc_js","last_synced_at":"2026-05-16T17:34:50.754Z","repository":{"id":266295203,"uuid":"897870437","full_name":"nimalank7/grpc_js","owner":"nimalank7","description":"Simple gRPC client and server application that creates a todo list","archived":false,"fork":false,"pushed_at":"2024-12-03T14:36:25.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T21:17:48.755Z","etag":null,"topics":["grpc","javascript","learning"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nimalank7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-12-03T11:39:20.000Z","updated_at":"2024-12-03T14:40:32.000Z","dependencies_parsed_at":"2024-12-03T15:36:05.322Z","dependency_job_id":"7d0e2e83-8738-4195-859f-2e84a2113272","html_url":"https://github.com/nimalank7/grpc_js","commit_stats":null,"previous_names":["nimalank7/grpc_js"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimalank7%2Fgrpc_js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimalank7%2Fgrpc_js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimalank7%2Fgrpc_js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimalank7%2Fgrpc_js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nimalank7","download_url":"https://codeload.github.com/nimalank7/grpc_js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245697938,"owners_count":20657971,"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":["grpc","javascript","learning"],"created_at":"2024-12-04T20:18:45.485Z","updated_at":"2025-10-15T09:10:56.727Z","avatar_url":"https://github.com/nimalank7.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Application\n\nSimple gRPC server that creates a todo list which a client application consumes. Tutorial from https://www.youtube.com/watch?v=Yw4rkaTc0f8\n\n## Protocol Buffer\n\n`todo.proto` is used in both `client.js` and `server.js` to generate a `Interface Definition Language`. This is to say it generates 'stubs' on the client (e.g. `client.readTodos(...)`) and lets the server know about these endpoints.\n\nHere both the client and server use `@grpc/grpc-js` and `@grpc/proto-loader` to serialize/deserialize using Protocol Buffers into binary which are then sent across the wire. (Effectively performing the same function as the output of `protoc`)\n\n## Run the application\n\nIn a separate terminal run:\n\n```\nnpm run server\n```\n\nIn a separate terminal run:\n\n```\nnpm run client -- itemOne\nnpm run client -- itemTwo\nnpm run client -- itemThree\n```\n\nNote that running the client will call *all* the methods.\n\nSample output:\n\n```\nreceived item from server: {\"id\":1,\"text\":\"itemOne\"}\nreceived item from server: {\"id\":2,\"text\":\"itemTwo\"}\nreceived item from server: {\"id\":3,\"text\":\"itemThree\"}\nResponse from gRPC server upon `createTodo` method: {\"id\":3,\"text\":\"itemThree\"}\nResponse from gRPC server upon `readTodos` method: {\"items\":[{\"id\":1,\"text\":\"itemOne\"},{\"id\":2,\"text\":\"itemTwo\"},{\"id\":3,\"text\":\"itemThree\"}]}\nserver done!\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnimalank7%2Fgrpc_js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnimalank7%2Fgrpc_js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnimalank7%2Fgrpc_js/lists"}