{"id":15162040,"url":"https://github.com/denpalrius/grpc-node-planets","last_synced_at":"2026-01-21T03:01:56.207Z","repository":{"id":257181965,"uuid":"856671517","full_name":"denpalrius/grpc-node-planets","owner":"denpalrius","description":"A Node.js gRPC service for managing planets using TypeScript and Protocol Buffers, including both server and client implementations.","archived":false,"fork":false,"pushed_at":"2024-09-15T00:27:40.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T00:41:28.658Z","etag":null,"topics":["grpc","nodejs","protobuf","protocol-buffers","rpc","typescript"],"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/denpalrius.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-09-13T01:42:25.000Z","updated_at":"2024-09-15T00:30:29.000Z","dependencies_parsed_at":"2024-09-15T06:59:03.736Z","dependency_job_id":"b65d9c51-ed9d-48cb-addc-ec362d63bbc7","html_url":"https://github.com/denpalrius/grpc-node-planets","commit_stats":null,"previous_names":["denpalrius/grpc-node-planets"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/denpalrius/grpc-node-planets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denpalrius%2Fgrpc-node-planets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denpalrius%2Fgrpc-node-planets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denpalrius%2Fgrpc-node-planets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denpalrius%2Fgrpc-node-planets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denpalrius","download_url":"https://codeload.github.com/denpalrius/grpc-node-planets/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denpalrius%2Fgrpc-node-planets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28624341,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T02:47:06.670Z","status":"ssl_error","status_checked_at":"2026-01-21T02:45:44.886Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","nodejs","protobuf","protocol-buffers","rpc","typescript"],"created_at":"2024-09-27T01:04:11.617Z","updated_at":"2026-01-21T03:01:56.193Z","avatar_url":"https://github.com/denpalrius.png","language":"JavaScript","readme":"# gRPC Node.js Planets\n\nThis project demonstrates the use of gRPC with Node.js and TypeScript to create a simple planets service.\n\n## Project Structure\n\nThe project consists of a gRPC server and client implementation for managing planet data.\n\n- `src/server`: Contains the server implementation\n- `src/client`: Contains the client implementation\n- `proto`: Contains the Protocol Buffers definition and autogenerated schema\n\n## Installation\n\n1. Clone the repository\n2. Install dependencies:\n\n```bash\nnpm install\n```\n\n## Usage\n\n### Generate Protocol Buffers\n\nBefore running the server or client, generate the necessary Protocol Buffers files:\n\n```bash\nnpm run proto:gen\n```\n\n### Running with TypeScript\n\nYou can run the server and client directly using TypeScript:\n\nStart the server:\n```bash\nnpm run server\n```\n\nRun the client:\n```bash\nnpm run client\n```\n\n### Running with JavaScript\n\nTo run the transpiled JavaScript version:\n\n1. Build the project:\n```bash\nnpm run build\n```\n\n2. Start the server:\n```bash\nnpm run server:js\n```\n\n3. Run the client:\n```bash\nnpm run client:js\n```\n\nThe server will start on `localhost:3000`.\n\nThe client will perform the following operations:\n1. Fetch all planets\n2. Get the first planet\n3. Create a new random exoplanet\n4. Fetch the updated list of planets\n\n## Scripts\n\n- `npm run proto:gen`: Generate Protocol Buffers files\n- `npm run clean`: Remove the dist directory\n- `npm run build`: Clean and compile TypeScript\n- `npm run server`: Run the TypeScript server directly\n- `npm run client`: Run the TypeScript client\n- `npm run server:js`: Run the compiled JavaScript server\n- `npm run client:js`: Run the compiled JavaScript client\n\n## Resources\n\n- [gRPC Documentation](https://grpc.io/docs/)\n- [Protocol Buffers Documentation](https://developers.google.com/protocol-buffers/docs/overview)\n- [Node.js gRPC Tutorial](https://grpc.io/docs/languages/node/quickstart/)\n- [Implementing a gRPC client and server in Typescript with Node (Youtube)](https://www.youtube.com/watch?v=H0c4Wjl4kRQ\u0026ab_channel=JustinBrooks)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenpalrius%2Fgrpc-node-planets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenpalrius%2Fgrpc-node-planets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenpalrius%2Fgrpc-node-planets/lists"}