{"id":41950041,"url":"https://github.com/perlogix/libsubrpc","last_synced_at":"2026-01-25T20:25:42.507Z","repository":{"id":57544232,"uuid":"257733514","full_name":"perlogix/libsubrpc","owner":"perlogix","description":"libsubrpc provides subprocess management and RPC communication in a single package","archived":false,"fork":false,"pushed_at":"2021-05-06T03:03:53.000Z","size":121,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-14T17:15:28.018Z","etag":null,"topics":["json","json-rpc","rpc","subprocess"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/perlogix.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}},"created_at":"2020-04-21T22:47:31.000Z","updated_at":"2021-05-06T03:03:55.000Z","dependencies_parsed_at":"2022-08-27T18:52:33.729Z","dependency_job_id":null,"html_url":"https://github.com/perlogix/libsubrpc","commit_stats":null,"previous_names":["yeticloud/libsubrpc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/perlogix/libsubrpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perlogix%2Flibsubrpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perlogix%2Flibsubrpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perlogix%2Flibsubrpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perlogix%2Flibsubrpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perlogix","download_url":"https://codeload.github.com/perlogix/libsubrpc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perlogix%2Flibsubrpc/sbom","scorecard":{"id":727985,"data":{"date":"2025-08-11","repo":{"name":"github.com/perlogix/libsubrpc","commit":"1a5668423a29a6a81ed475820d2e801a588bbd45"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"16 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0771 / GHSA-69v6-xc2j-r2jf","Warn: Project is vulnerable to: GO-2021-0105 / GHSA-xw37-57qp-9mm4","Warn: Project is vulnerable to: GO-2022-0392 / GHSA-m6gx-rhvj-fh52","Warn: Project is vulnerable to: GO-2022-0775 / GHSA-v592-xf75-856p","Warn: Project is vulnerable to: GO-2021-0063 / GHSA-r33q-22hv-j29q","Warn: Project is vulnerable to: GO-2022-0254","Warn: Project is vulnerable to: GO-2022-0256 / GHSA-59hh-656j-3p7v","Warn: Project is vulnerable to: GO-2022-0456 / GHSA-wjxw-gh3m-7pm5","Warn: Project is vulnerable to: GO-2023-2046 / GHSA-ppjg-v974-84cm","Warn: Project is vulnerable to: GO-2024-2819 / GHSA-4xc9-8hmq-j652","Warn: Project is vulnerable to: GHSA-5m8f-chrv-7rw5","Warn: Project is vulnerable to: GHSA-pvx3-gm3c-gmpr","Warn: Project is vulnerable to: GHSA-rqmg-hrg4-fm69","Warn: Project is vulnerable to: GHSA-v9jh-j8px-98vq","Warn: Project is vulnerable to: GHSA-vmf7-hmh6-vv57","Warn: Project is vulnerable to: GHSA-vrcc-g6vj-mh5w"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T13:27:24.241Z","repository_id":57544232,"created_at":"2025-08-22T13:27:24.241Z","updated_at":"2025-08-22T13:27:24.241Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28757901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T20:20:48.599Z","status":"ssl_error","status_checked_at":"2026-01-25T20:20:31.796Z","response_time":113,"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":["json","json-rpc","rpc","subprocess"],"created_at":"2026-01-25T20:25:41.811Z","updated_at":"2026-01-25T20:25:42.495Z","avatar_url":"https://github.com/perlogix.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libsubrpc\nlibsubrpc provides subprocess management and RPC communication in a single package\n\n## Purpose\nThe purpose is to provide a framework for allowing a plugin/dll-style system for Go given its lack of plugin or dynamic symbol loading. \n\n## Basic Usage\n\n#### Main App\n```go\n\nmanager := subrpc.NewManager() // make a new Manager instance\n\n// add a few subprocesses to the manager\nmanager.NewProcess(subrpc.ProcessOptions{\n    // Name should be unique\n    Name: \"foo\",\n\n    // Absolute path is best\n    Exepath: \"/path/to/process/binary/foo\",\n})\n\nmanager.NewProcess(subrpc.ProcessOptions{\n    // Name should be unique\n    Name: \"bar\",\n    \n    // Absolute path is best\n    Exepath: \"/path/to/process/binary/bar\",\n\n    // You can set a custom socket path if you want, otherwise\n    // a random one is generated\n    SockPath: \"/path/to/custom/socket\",\n\n    // Custom environment variables to pass into the process\n    Env: []string{\n        \"MYVAR=myvalue\",\n        \"OTHERVAR=other_value\",\n    }\n})\n\n// Read Stdin * Stderr from our subprocesses for logging purposes\n// the Manager struct exposes OutBuffer and ErrBuffer buffers that\n// combine the stdout and stderr of all processes, respectively.\ngo func() {\n    for {\n\t\tl, err := manager.OutBuffer.ReadString('\\n')\n\t\tif err != nil \u0026\u0026 err != io.EOF {\n\t\t\tfmt.Println(err)\n\t\t}\n\t\tif l != \"\" {\n\t\t\tfmt.Println(l)\n\t\t}\n\t\tl, err = manager.ErrBuffer.ReadString('\\n')\n\t\tif err != nil \u0026\u0026 err != io.EOF {\n\t\t\tfmt.Print(err)\n\t\t}\n\t\tif l != \"\" {\n\t\t\tfmt.Println(l)\n\t\t}\n\t\ttime.Sleep(1 * time.Second)\n\t}\n}()\n\n// Start all the processes (returns error)\n_ = manager.StartAllProcess()\n\n\n// Create a variable to put the results into\nvar result json.RawMessage\n\n// Call the `foo` process and request the `test_service` endpoint.\n// Endpoints are underscore delimited (see subprocess implementation)\n_ = manager.Call(\"foo:test_service\", \u0026result)\n\n// Call the `bar` process with some args and save it to `result`\n_ = manager.Call(\"bar:other_service\", \u0026result, \"something\", 1, 2, 5)\n\n// Stops all running processes\nmanager.StopAll()\n\n```\n\n#### Subprocess App\n```go\n\n// Define a service here\ntype Test struct {}\n\n// Service handler; to call this you would call `test_service`\nfunc (t *Test) Service() string {\n    return \"this is a test\"\n}\n\nproc := subrpc.Process()\n\n// add the Test object as an RPC handler under the `test_` prefix\nproc.AddFunction(\"test\", new(Test))\n\nproc.Start() // start listening for connections; blocking\n\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperlogix%2Flibsubrpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperlogix%2Flibsubrpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperlogix%2Flibsubrpc/lists"}