{"id":26457490,"url":"https://github.com/pacedotdev/oto","last_synced_at":"2026-01-11T21:58:22.779Z","repository":{"id":39998780,"uuid":"219170502","full_name":"pacedotdev/oto","owner":"pacedotdev","description":"Go driven rpc code generation tool for right now.","archived":false,"fork":false,"pushed_at":"2024-08-16T00:40:50.000Z","size":316,"stargazers_count":843,"open_issues_count":18,"forks_count":54,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-08-14T17:45:05.600Z","etag":null,"topics":["codegen","golang","javascript","oto","rpc"],"latest_commit_sha":null,"homepage":"","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/pacedotdev.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":"2019-11-02T15:06:48.000Z","updated_at":"2025-08-05T21:59:56.000Z","dependencies_parsed_at":"2024-02-19T12:44:57.626Z","dependency_job_id":"ec68b3bf-d397-4216-8e6c-e70101f1f5d1","html_url":"https://github.com/pacedotdev/oto","commit_stats":{"total_commits":211,"total_committers":12,"mean_commits":"17.583333333333332","dds":0.4360189573459715,"last_synced_commit":"310d118785db5884c3a48644b5a3ba25ddbcd780"},"previous_names":["pacelabs/oto"],"tags_count":60,"template":false,"template_full_name":null,"purl":"pkg:github/pacedotdev/oto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacedotdev%2Foto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacedotdev%2Foto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacedotdev%2Foto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacedotdev%2Foto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pacedotdev","download_url":"https://codeload.github.com/pacedotdev/oto/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacedotdev%2Foto/sbom","scorecard":{"id":717328,"data":{"date":"2025-08-11","repo":{"name":"github.com/pacedotdev/oto","commit":"247f45bb5d204bf620001cfbe63706b9ad4cbc56"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"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":"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":"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":"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":"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":"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":"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":"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: MIT License: 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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.20.0 not signed: https://api.github.com/repos/pacedotdev/oto/releases/170454623","Warn: release artifact v0.16.0 not signed: https://api.github.com/repos/pacedotdev/oto/releases/168617912","Warn: release artifact v0.15.0 not signed: https://api.github.com/repos/pacedotdev/oto/releases/146761209","Warn: release artifact v0.14.4 not signed: https://api.github.com/repos/pacedotdev/oto/releases/142660539","Warn: release artifact v0.14.2 not signed: https://api.github.com/repos/pacedotdev/oto/releases/93569396","Warn: release artifact v0.20.0 does not have provenance: https://api.github.com/repos/pacedotdev/oto/releases/170454623","Warn: release artifact v0.16.0 does not have provenance: https://api.github.com/repos/pacedotdev/oto/releases/168617912","Warn: release artifact v0.15.0 does not have provenance: https://api.github.com/repos/pacedotdev/oto/releases/146761209","Warn: release artifact v0.14.4 does not have provenance: https://api.github.com/repos/pacedotdev/oto/releases/142660539","Warn: release artifact v0.14.2 does not have provenance: https://api.github.com/repos/pacedotdev/oto/releases/93569396"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"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-22T10:06:13.585Z","repository_id":39998780,"created_at":"2025-08-22T10:06:13.586Z","updated_at":"2025-08-22T10:06:13.586Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28324649,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T18:42:50.174Z","status":"ssl_error","status_checked_at":"2026-01-11T18:39:13.842Z","response_time":60,"last_error":"SSL_read: 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":["codegen","golang","javascript","oto","rpc"],"created_at":"2025-03-18T23:00:49.107Z","updated_at":"2026-01-11T21:58:22.762Z","avatar_url":"https://github.com/pacedotdev.png","language":"Go","readme":"![Welcome to oto project](oto-logo.png)\n\nGo driven rpc code generation tool for right now.\n\n- 100% Go\n- Describe services with Go interfaces (with structs, methods, comments, etc.)\n- Generate server and client code\n- Production ready templates (or copy and modify)\n\n## Who's using Oto?\n\n- [Grafana Labs, IRM tool](https://grafana.com/docs/grafana-cloud/alerting-and-irm/incident/api/)\n- [Pace.dev](https://pace.dev/docs/)\n- [Firesearch.dev](https://firesearch.dev/docs/api)\n\n## Templates\n\nThese templates are already being used in production.\n\n- There are some [official Oto templates](https://github.com/pacedotdev/oto/tree/master/otohttp/templates)\n- The [Pace CLI tool](https://github.com/pacedotdev/pace/blob/master/oto/cli.go.plush) is generated from an open-source CLI template\n\n## Learn\n\n![](oto-video-preview.jpg)\n\n- VIDEO: [Mat Ryer gives an overview of Oto at the Belfast Gophers meetup](https://www.youtube.com/watch?feature=youtu.be\u0026v=DUg4ZITwMys)\n\n- BLOG: [How code generation wrote our API and CLI](https://pace.dev/blog/2020/07/27/how-code-generation-wrote-our-api-and-cli.html)\n\n## Tutorial\n\nInstall the project:\n\n```\ngo install github.com/pacedotdev/oto@latest\n```\n\nCreate a project folder, and write your service definition as a Go interface:\n\n```go\n// definitions/definitons.go\npackage definitions\n\n// GreeterService makes nice greetings.\ntype GreeterService interface {\n    // Greet makes a greeting.\n    Greet(GreetRequest) GreetResponse\n}\n\n// GreetRequest is the request object for GreeterService.Greet.\ntype GreetRequest struct {\n    // Name is the person to greet.\n    // example: \"Mat Ryer\"\n    Name string\n}\n\n// GreetResponse is the response object containing a\n// person's greeting.\ntype GreetResponse struct {\n    // Greeting is the greeting that was generated.\n    // example: \"Hello Mat Ryer\"\n    Greeting string\n}\n```\n\nDownload templates from otohttp\n\n```bash\nmkdir templates \\\n    \u0026\u0026 wget https://raw.githubusercontent.com/pacedotdev/oto/master/otohttp/templates/server.go.plush -q -O ./templates/server.go.plush \\\n    \u0026\u0026 wget https://raw.githubusercontent.com/pacedotdev/oto/master/otohttp/templates/client.js.plush -q -O ./templates/client.js.plush\n```\n\nUse the `oto` tool to generate a client and server:\n\n```bash\nmkdir generated\noto -template ./templates/server.go.plush \\\n    -out ./generated/oto.gen.go \\\n    -ignore Ignorer \\\n    -pkg generated \\\n    ./definitions\ngofmt -w ./generated/oto.gen.go ./generated/oto.gen.go\noto -template ./templates/client.js.plush \\\n    -out ./generated/oto.gen.js \\\n    -ignore Ignorer \\\n    ./definitions\n```\n\n- Run `oto -help` for more information about these flags\n\nImplement the service in Go:\n\n```go\n// greeter_service.go\npackage main\n\n// GreeterService makes nice greetings.\ntype GreeterService struct{}\n\n// Greet makes a greeting.\nfunc (GreeterService) Greet(ctx context.Context, r GreetRequest) (*GreetResponse, error) {\n    resp := \u0026GreetResponse{\n        Greeting: \"Hello \" + r.Name,\n    }\n    return resp, nil\n}\n```\n\nUse the generated Go code to write a `main.go` that exposes the server:\n\n```go\n// main.go\npackage main\n\nfunc main() {\n    g := GreeterService{}\n    server := otohttp.NewServer()\n    server.Basepath = \"/oto/\"\n    generated.RegisterGreeterService(server, g)\n    http.Handle(server.Basepath, server)\n    log.Fatal(http.ListenAndServe(\":8080\", nil))\n}\n```\n\n- The `otohttp.Server` performs its own routing and so has a `Basepath` field which you should use when you route the handler.\n\nUse the generated client to access the service in JavaScript:\n\n```javascript\nimport { GreeterService } from \"oto.gen.js\";\n\nconst greeterService = new GreeterService();\n\ngreeterService\n  .greet({\n    name: \"Mat\",\n  })\n  .then((response) =\u003e alert(response.greeting))\n  .catch((e) =\u003e alert(e));\n```\n\n## Use `json` tags to control the front-end facing name\n\nYou can control the name of the field in JSON and in front-end code using `json` tags:\n\n```go\n// Thing does something.\ntype Thing struct {\n    SomeField string `json:\"some_field\"\n}\n```\n\n- The `SomeField` field will appear as `some_field` in json and front-end code\n- The name must be a valid JavaScript field name\n\n## Specifying additional template data\n\nYou can provide strings to your templates via the `-params` flag:\n\n```bash\noto \\\n    -template ./templates/server.go.plush \\\n    -out ./oto.gen.go \\\n    -params \"key1:value1,key2:value2\" \\\n    ./path/to/definition\n```\n\nWithin your templates, you may access these strings with `\u003c%= params[\"key1\"] %\u003e`.\n\n## Comment metadata\n\nIt's possible to include additional metadata for services, methods, objects, and fields\nin the comments.\n\n```go\n// Thing does something.\n// field: \"value\"\ntype Thing struct {\n    //...\n}\n```\n\nThe `Metadata[\"field\"]` value will be the string `value`.\n\n- The value must be valid JSON (for strings, use quotes)\n\nExamples are officially supported, but all data is available via the `Metadata` map fields.\n\n### Examples\n\nTo provide an example value for a field, you may use the `example:` prefix line\nin a comment.\n\n```go\n// GreetRequest is the request object for GreeterService.Greet.\ntype GreetRequest struct {\n    // Name is the person to greet.\n    // example: \"Mat Ryer\"\n    Name string\n}\n```\n\n- The example must be valid JSON\n\nThe example is extracted and made available via the `Field.Example` field.\n\n### Open API\n\nTo work on the Open API spec, you might find this command helpful:\n\n```\noto -template ./otohttp/templates/openapi.yaml.plush -out openapi.yaml -v -ignore Ignorer ./parser/testdata/services/pleasantries\n```\n\n## Contributions\n\nSpecial thank you to:\n\n- @mgutz - for struct tag support\n- @sethcenterbar - for comment metadata support\n\n![A PACE. project](pace-footer.png)\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacedotdev%2Foto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpacedotdev%2Foto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacedotdev%2Foto/lists"}