{"id":13412607,"url":"https://github.com/go-kratos/kratos","last_synced_at":"2025-05-12T18:24:46.126Z","repository":{"id":37006155,"uuid":"165041732","full_name":"go-kratos/kratos","owner":"go-kratos","description":"Your ultimate Go microservices framework for the cloud-native era.","archived":false,"fork":false,"pushed_at":"2025-04-29T07:46:20.000Z","size":9600,"stargazers_count":24252,"open_issues_count":106,"forks_count":4081,"subscribers_count":442,"default_branch":"main","last_synced_at":"2025-05-05T15:52:44.754Z","etag":null,"topics":["ai","architecture","cloud-native","framework","generate","go","golang","grpc","http","kratos","mcp","microservice","microservices","protobuf"],"latest_commit_sha":null,"homepage":"https://go-kratos.dev","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/go-kratos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"open_collective":"go-kratos","github":["go-kratos"]}},"created_at":"2019-01-10T10:42:31.000Z","updated_at":"2025-05-05T14:21:10.000Z","dependencies_parsed_at":"2024-01-07T12:14:23.792Z","dependency_job_id":"f981d81c-a5b4-4204-a1ba-e000964da24a","html_url":"https://github.com/go-kratos/kratos","commit_stats":{"total_commits":1730,"total_committers":309,"mean_commits":5.598705501618123,"dds":0.8809248554913295,"last_synced_commit":"8b8dc4b0f8bebb76939780f59734c20c265669c5"},"previous_names":["bilibili/kratos"],"tags_count":70,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-kratos%2Fkratos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-kratos%2Fkratos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-kratos%2Fkratos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-kratos%2Fkratos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-kratos","download_url":"https://codeload.github.com/go-kratos/kratos/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252672865,"owners_count":21786321,"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":["ai","architecture","cloud-native","framework","generate","go","golang","grpc","http","kratos","mcp","microservice","microservices","protobuf"],"created_at":"2024-07-30T20:01:26.728Z","updated_at":"2025-05-12T18:24:46.102Z","avatar_url":"https://github.com/go-kratos.png","language":"Go","funding_links":["https://opencollective.com/go-kratos","https://github.com/sponsors/go-kratos"],"categories":["Distributed Systems","Popular","Go","Programming","Uncategorized","Web frameworks","DevOps","RPC or MicroService","网络服务","kratos","📚 Projects (1974 total)","分布式系统","武器库","architecture","Repositories","Relational Databases","API and RPC"],"sub_categories":["Search and Analytic Databases","Golang","Uncategorized","Data Management","网络服务_其他","Tools \u0026 Libraries","检索及分析资料库","后端","Advanced Console UIs","Advanced and Specialized Tools"],"readme":"\u003cp align=\"center\"\u003e\u003ca href=\"https://go-kratos.dev/\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/go-kratos/kratos/blob/main/docs/images/kratos-large.png?raw=true\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/go-kratos/kratos/actions\"\u003e\u003cimg src=\"https://github.com/go-kratos/kratos/workflows/Go/badge.svg\" alt=\"Build Status\"\u003e\u003c/a\u003e\n\u003ca href=\"https://pkg.go.dev/github.com/go-kratos/kratos/v2\"\u003e\u003cimg src=\"https://pkg.go.dev/badge/github.com/go-kratos/kratos/v2\" alt=\"GoDoc\"\u003e\u003c/a\u003e\n\u003ca href=\"https://codecov.io/gh/go-kratos/kratos\"\u003e\u003cimg src=\"https://codecov.io/gh/go-kratos/kratos/master/graph/badge.svg\" alt=\"codeCov\"\u003e\u003c/a\u003e\n\u003ca href=\"https://goreportcard.com/report/github.com/go-kratos/kratos\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/go-kratos/kratos\" alt=\"Go Report Card\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/go-kratos/kratos/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/go-kratos/kratos\" alt=\"License\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/avelino/awesome-go\"\u003e\u003cimg src=\"https://awesome.re/mentioned-badge.svg\" alt=\"Awesome Go\"\u003e\u003c/a\u003e\n\u003ca href=\"https://discord.gg/BWzJsUJ\"\u003e\u003cimg src=\"https://img.shields.io/discord/766619759214854164?label=chat\u0026logo=discord\" alt=\"Discord\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://www.producthunt.com/posts/go-kratos?utm_source=badge-featured\u0026utm_medium=badge\u0026utm_souce=badge-go-kratos\" target=\"_blank\"\u003e\u003cimg src=\"https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=306565\u0026theme=light\" alt=\"Go Kratos - A Go framework for microservices. | Product Hunt\" style=\"width: 250px; height: 54px;\" width=\"250\" height=\"54\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n  \n##### Translate to: [简体中文](README_zh.md)\n\n## About Kratos\n  \n\u003e The name is inspired by the Greek-mythology-based game \"God of War\". It tells the adventures of Kratos becoming a god of war from a mortal and launching a god-killing slaughter.\n\nKratos is a microservice-oriented governance framework implemented by golang, which offers convenient capabilities to help you quickly build a bulletproof application from scratch, such as:\n\n- The [communication protocol](https://go-kratos.dev/en/docs/component/api) is based on the HTTP/gRPC through the definition of Protobuf.\n- Abstract [transport](https://go-kratos.dev/en/docs/component/transport/overview) layer support: [HTTP](https://go-kratos.dev/en/docs/component/transport/http) / [gRPC](https://go-kratos.dev/en/docs/component/transport/grpc).\n- Powerful [middleware](https://go-kratos.dev/en/docs/component/middleware/overview) design, support: [Tracing (OpenTelemetry)](https://go-kratos.dev/en/docs/component/middleware/tracing), [Metrics (Prometheus is default)](https://go-kratos.dev/en/docs/component/middleware/metrics), [Recovery](https://go-kratos.dev/en/docs/component/middleware/recovery) and more.\n- [Registry](https://go-kratos.dev/en/docs/component/registry) interface able to be connected with various other centralized registries through plug-ins.\n- The [standard log interfaces](https://go-kratos.dev/en/docs/component/log) ease the integration of the third-party log libs with logs collected through the *Fluentd*.\n- Automatically support the selection of the content [encoding](https://go-kratos.dev/en/docs/component/encoding) with Accept and Content-Type.\n- Multiple data sources are supported for [configurations](https://go-kratos.dev/en/docs/component/config) and dynamic configurations (use atomic operations).\n- In the protocol of HTTP/gRPC, use the uniform [metadata](https://go-kratos.dev/en/docs/component/metadata) transfer method.\n- You can define [errors](https://go-kratos.dev/en/docs/component/errors/) in protos and generate enums with protoc-gen-go.\n- You can define [verification rules](https://go-kratos.dev/en/docs/component/middleware/validate) in Protobuf supported by the HTTP/gRPC service.\n- [Swagger API](https://go-kratos.dev/en/docs/guide/openapi) is generated Automatically and embed Swagger UI endpoint can be started by adding [Swagger plugin](https://github.com/go-kratos/swagger-api).\n\nKratos is accessible, powerful, and provides tools required for large, robust applications.\n\n## Learning Kratos\n\nKratos has the most extensive and thorough [documentation](https://go-kratos.dev/en/docs/getting-started/start) and [example](https://github.com/go-kratos/examples) library of all modern web application frameworks, making it a breeze to get started with the framework.\n\nWe also provide a [modern template](https://github.com/go-kratos/kratos-layout). This template should help reduce the work required to set up modern projects.\n\n### Goals\n\nKratos boosts your productivity. With the integration of excellent resources and further support, programmers can get rid of most issues might encounter in the field of distributed systems and software engineering such that they are allowed to focus on the release of businesses only. Additionally, for each programmer, Kratos is also an ideal one learning warehouse for many aspects of microservices to enrich their experiences and skills.\n\n### Principles\n\n* **Simple**: Appropriate design with plain and easy code.\n* **General**: Cover the various utilities for business development.\n* **Highly efficient**: Speeding up the efficiency of businesses upgrading.\n* **Stable**: The base libs validated in the production environment have the characteristics of high testability, high coverage as well as high security and reliability.\n* **Robust**: Eliminating misusing through high quality of the base libs.\n* **High-performance**: Optimal performance excluding the optimization of hacking in case of *unsafe*. \n* **Expandability**: Properly designed interfaces where you can expand utilities such as base libs to meet your further requirements.\n* **Fault-tolerance**: Designed against failure, enhance the understanding and exercising of SRE within Kratos to achieve more robustness.\n* **Toolchain**: Includes an extensive toolchain, such as the code generation of cache, the lint tool, and so forth.\n\n## Getting Started\n\nCreate a kratos playground through [docker](https://www.docker.com/products/docker-desktop):\n  \n```shell\ndocker run -it --rm -p 8000:8000 --workdir /workspace golang\n```\n  \n```shell\napt-get update \u0026\u0026 apt-get -y install protobuf-compiler\nexport GOPROXY=https://goproxy.io,direct\ngo install github.com/go-kratos/kratos/cmd/kratos/v2@latest \u0026\u0026 kratos upgrade\n```\n  \n```shell\nkratos new helloworld\ncd helloworld/ \u0026\u0026 go mod tidy\nkratos run\n```\n  \nUse a browser to open and visit: `http://localhost:8000/helloworld/kratos`, The kratos program is running!\n\nIf you need more, please visit the kratos [documentation](https://go-kratos.dev/en/docs/getting-started/start).\n\n## Security Vulnerabilities\n\nIf you discover a security vulnerability within Kratos, please send an e-mail to tonybase via go-kratos@googlegroups.com. All security vulnerabilities will be promptly addressed.\n\n## Community\n\n- [Wechat Group](https://github.com/go-kratos/kratos/issues/682)\n- [Discord Group](https://discord.gg/BWzJsUJ)\n- [go-kratos.dev](https://go-kratos.dev/en)\n\n## Contributors\n\nThank you for considering contributing to the Kratos framework! The contribution guide can be found in the [Kratos documentation](https://go-kratos.dev/en/docs/community/contribution).\n\n\u003ca href=\"https://github.com/go-kratos/kratos/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=go-kratos/kratos\" /\u003e\n\u003c/a\u003e\n\n## License\n\nThe Kratos framework is open-sourced software licensed under the [MIT license](./LICENSE).\n  \n## Acknowledgments\n  \nThe following project had particular influence on kratos's design.\n  \n- [go-kit/kit](https://github.com/go-kit/kit) is a programming toolkit for building microservices in go.\n- [asim/go-micro](https://github.com/asim/go-micro) a distributed systems development framework.\n- [google/go-cloud](https://github.com/google/go-cloud) is go cloud development kit.\n- [zeromicro/go-zero](https://github.com/zeromicro/go-zero) is a web and rpc framework with lots of builtin engineering practices.\n- [beego/beego](https://github.com/beego/beego) is a web framework including RESTful APIs, web apps and backend services.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-kratos%2Fkratos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-kratos%2Fkratos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-kratos%2Fkratos/lists"}