{"id":36790689,"url":"https://github.com/objenious/kitty","last_synced_at":"2026-01-12T13:25:20.105Z","repository":{"id":52549814,"uuid":"137505079","full_name":"objenious/kitty","owner":"objenious","description":"A microservice framework extending go-kit","archived":false,"fork":false,"pushed_at":"2021-04-26T12:34:28.000Z","size":57,"stargazers_count":18,"open_issues_count":0,"forks_count":3,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-11-17T12:07:07.554Z","etag":null,"topics":[],"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/objenious.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":"2018-06-15T15:40:13.000Z","updated_at":"2022-04-23T10:40:00.000Z","dependencies_parsed_at":"2022-09-26T17:41:15.359Z","dependency_job_id":null,"html_url":"https://github.com/objenious/kitty","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/objenious/kitty","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objenious%2Fkitty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objenious%2Fkitty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objenious%2Fkitty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objenious%2Fkitty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/objenious","download_url":"https://codeload.github.com/objenious/kitty/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objenious%2Fkitty/sbom","scorecard":{"id":701040,"data":{"date":"2025-08-11","repo":{"name":"github.com/objenious/kitty","commit":"3cf1730eeb0e067edc677167dc978eef802ea6f5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"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":"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":"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":"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":2,"reason":"Found 8/29 approved changesets -- score normalized to 2","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":"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":"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: 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":"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 17 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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-22T05:13:13.482Z","repository_id":52549814,"created_at":"2025-08-22T05:13:13.482Z","updated_at":"2025-08-22T05:13:13.482Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338998,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"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":[],"created_at":"2026-01-12T13:25:19.867Z","updated_at":"2026-01-12T13:25:20.017Z","avatar_url":"https://github.com/objenious.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kitty\n[![Travis-CI](https://travis-ci.org/objenious/kitty.svg?branch=master)](https://travis-ci.org/objenious/kitty)  [![GoDoc](https://godoc.org/github.com/objenious/kitty?status.svg)](http://godoc.org/github.com/objenious/kitty)\n[![GoReportCard](https://goreportcard.com/badge/github.com/objenious/kitty)](https://goreportcard.com/report/github.com/objenious/kitty)\n[![Coverage Status](https://coveralls.io/repos/github/objenious/kitty/badge.svg?branch=master)](https://coveralls.io/github/objenious/kitty?branch=master)\n\n`go get github.com/objenious/kitty`\n\nKitty is a slightly opinionated framework based on go-kit.\nIt's goal is to ease development of microservices deployed on Kubernetes (or any similar orchestration platform).\n\nKitty has an opinion on:\n* transports: HTTP only (additional transports can be added as long as they implement kitty.Transport, a Google Pub/Sub transport is available as a separate package),\n* errors: an error may be Retryable (e.g. 5XX status codes) or not (e.g. 4XX status codes),\n* status codes: unless specified, request decoding errors will generate 400 HTTP status codes.\n\nKitty has no opinion on:\n* logging: no logs are generated by default, you can plug your logger and it will get additional context,\n* packages: kitty only imports go-kit and the standard library,\n* routers: you can use any router (a Gorilla Mux implementation is available in a sub-package, other routers can easily be plugged),\n* encoding: use whatever encoding you want (JSON, messagepack, protobuf, ...),\n* monitoring, metrics and tracing: use Istio, a sidecar process or a middleware.\n\nKitty includes 2 sub-packages:\n* backoff: Retryable-aware exponential backoff (only Retryable errors trigger retries),\n* circuitbreaker: Retryable-aware circuit breaker (only Retryable errors trigger the circuit breaker).\n\n## Example\n\nServer-side\n```\nt := kitty.NewHTTPTransport(kitty.Config{HTTPPort: 8081}).\n  Router(gorilla.Router()).\n  Endpoint(\"POST\", \"/foo\", Foo, kitty.Decoder(decodeFooRequest)).\n  Endpoint(\"GET\", \"/bar\", Bar)\n\nkitty.NewServer(t).Run(ctx)\n\n// Foo is a go-kit Endpoint\nfunc Foo(ctx context.Context, request interface{}) (interface{}, error) {\n  fr := request.(fooRequest)\n  return fooResponse{Message: fmt.Sprintf(\"Good morning %s !\", fr.Name)}, nil\n}\n\n// decodeFooRequest\nfunc decodeFooRequest(ctx context.Context, r *http.Request) (interface{}, error) {\n  var request fooRequest\n\tif err := json.NewDecoder(r.Body).Decode(\u0026request); err != nil {\n\t\treturn nil, err\n\t}\n\treturn request, nil\n}\n```\n\nClient-side (with circuit breaker \u0026 exponential backoff)\n```\nu, err := url.Parse(\"http://example.com/foo\")\ne := kitty.NewClient(\n  \"POST\",\n  u,\n  kithttp.EncodeJSONRequest,\n  decodeFooResponse\n).Endpoint()\ncb := gobreaker.NewCircuitBreaker(gobreaker.Settings{Name: \"foo\"})\ne = kittycircuitbreaker.NewCircuitBreaker(cb)(e)\nbo := backoff.NewExponentialBackOff()\ne = kittybackoff.NewBackoff(bo)(e)\n```\n\n## How-to\n\n### Log requests\n\n```\nkitty.NewServer(t).\n  // Log as JSON\n  Logger(log.NewJSONLogger(log.NewSyncWriter(os.Stdout))).\n  // Add path and method to all log lines\n  LogContext(\"http-path\", \"http-method\").\n  // Log request only if an error occurred\n  Middlewares(kitty.LogEndpoint(kitty.LogErrors))\n```\n\n### Integrate with Istio\n\nTBD\n\n### Integrate liveness/readiness checks\n\nUsing github.com/heptiolabs/healthcheck:\n```\nhealth := healthcheck.NewHandler()\nhealth.AddLivenessCheck(\"goroutine-threshold\", healthcheck.GoroutineCountCheck(100))\nhealth.AddReadinessCheck(\"database\", healthcheck.DatabasePingCheck(db, 1*time.Second))\n\nt := kitty.NewTransport(kitty.Config{}).Liveness(health.LiveEndpoint).Readiness(health.ReadyEndpoint)\n```\n\n### Use Google Pub/Sub as a transport\n\nhttps://github.com/objenious/kitty-gcp adds a Google Pub/Sub transport to kitty:\n```\nimport \"github.com/objenious/kitty-gcp/pubsub\"\n\ntr := pubsub.NewTransport(ctx, \"project-id\").\n  Endpoint(subscriptionName, endpoint, Decoder(decodeFunc))\nerr := kitty.NewServer(tr).Run(ctx)\n```\n\n## Requirements\n\nGo \u003e 1.11\n\n## Contribution guidelines\n\nContributions are welcome, as long as :\n* unit tests \u0026 comments are included,\n* no external package is added to the top-level package (implementations can be added as sub-packages).\n\n## Thanks\n\nkitty is heavily inspired by gizmo/kit (https://godoc.org/github.com/NYTimes/gizmo/server/kit),\nwith a different approach to server setup and without the gRPC clutter.\n\n## License\n\nMIT - See LICENSE file\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjenious%2Fkitty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobjenious%2Fkitty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjenious%2Fkitty/lists"}