{"id":15755960,"url":"https://github.com/simenandre/protobuf-to-runtypes","last_synced_at":"2025-05-07T08:43:21.585Z","repository":{"id":37788069,"uuid":"367160799","full_name":"simenandre/protobuf-to-runtypes","owner":"simenandre","description":"Generate Runtypes from Protobuf files 🎉","archived":false,"fork":false,"pushed_at":"2025-03-20T08:07:29.000Z","size":253,"stargazers_count":0,"open_issues_count":35,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-03T06:05:08.627Z","etag":null,"topics":["converter","protobuf","protobuf3","runtypes","transformer","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simenandre.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-13T20:01:03.000Z","updated_at":"2023-04-11T07:36:57.000Z","dependencies_parsed_at":"2024-01-12T06:44:47.924Z","dependency_job_id":"e767f396-3b39-4813-a8e4-daa8285271db","html_url":"https://github.com/simenandre/protobuf-to-runtypes","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simenandre%2Fprotobuf-to-runtypes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simenandre%2Fprotobuf-to-runtypes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simenandre%2Fprotobuf-to-runtypes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simenandre%2Fprotobuf-to-runtypes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simenandre","download_url":"https://codeload.github.com/simenandre/protobuf-to-runtypes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252846020,"owners_count":21813359,"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":["converter","protobuf","protobuf3","runtypes","transformer","typescript"],"created_at":"2024-10-04T08:41:17.522Z","updated_at":"2025-05-07T08:43:21.567Z","avatar_url":"https://github.com/simenandre.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Generate Runtypes from Protobuf\n\n[![lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)\n[![NPM version](https://img.shields.io/npm/v/protobuf-to-runtypes.svg)](https://www.npmjs.com/package/protobuf-to-runtypes)\n[![codecov](https://codecov.io/gh/cobraz/protobuf-to-runtypes/branch/main/graph/badge.svg)](https://codecov.io/gh/cobraz/protobuf-to-runtypes)\n\n\u003c/div\u003e\n\nThis CLI and library aim to provide an easy way to convert Protobuf to Runtypes.\n\nWe are thankful for all help with adding new functionality, fixing issues, or\nimprove the package. Feel free to open issues and pull requests ❤️\n\n## Quickstart\n\n```shell\n▶ npx protobuf-to-runtypes -i protobuf.proto -o protobuf.ts\n```\n\nor\n\n```shell\n▶ cat https://some-url.com/my-api.proto | npx protobuf-to-runtypes -o protobuf.ts\n```\n\n## Documentation\n\nApart from this README, you can find details and examples of using the SDK in\nthe following places:\n\n- [API Documentation][docs]\n\n## Example\n\n```typescript\nimport { parseToGenerator } from 'protobuf-to-runtypes';\nimport { generateRuntypes } from 'generate-runtypes';\n\nconst protobuf = await readFile('my-protobuf.proto');\nconst toGenerator = await parseToGenerator(protobuf);\nconst sourceCode = await generateRuntypes(toGenerator);\n```\n\n[runtypes]: https://github.com/pelotom/runtypes\n[docs]: ./docs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimenandre%2Fprotobuf-to-runtypes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimenandre%2Fprotobuf-to-runtypes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimenandre%2Fprotobuf-to-runtypes/lists"}