kratos
Your ultimate Go microservices framework for the cloud-native era.
- 26k estrellas
- 4.2k forks
- 121 issues abiertos
- Lenguaje: Go
- Licencia: MIT
- actualizado
Instalación
git clone https://github.com/go-kratos/kratos- Browse the curated list on GitHub or clone it locally.
- Star it to keep new additions on your radar.
Nota editorial
Kratos is a lightweight Go framework for building cloud-native microservices, offering explicit APIs across transport, middleware, registry, configuration, logging, encoding, and code generation layers. Developers define services using Protobuf, then use the `kratos` CLI to scaffold projects and generate both HTTP and gRPC server and client code from `.proto` files with commands like `kratos proto server` and `kratos proto client`. The framework provides a unified transport layer that runs HTTP and gRPC servers simultaneously, composable middleware for recovery, tracing, validation, metrics, and authentication, plus pluggable registry and configuration backends through a contrib ecosystem. The `mcp` topic signals that Kratos is being positioned to support Model Context Protocol integrations, making it relevant to teams building Go-based backend infrastructure that surfaces tools or data to Claude via MCP servers. The v3 release notably reduces core dependencies and makes previously implicit behavior explicit, which benefits backend engineers who want fine-grained control over service construction. Go developers building production microservices that need to expose capabilities to AI systems, including Claude integrations, are the primary audience.
Resumen de Awesome Lists
Kratos
Kratos is a lightweight Go framework for building cloud-native microservices. It provides small, explicit APIs for transport, middleware, registry, configuration, logging, encoding, and code generation so applications can focus on business logic.
Features
API-first development with Protobuf and generated HTTP/gRPC code.
Composable middleware for recovery, logging, validation, tracing, metrics, auth, and more.
Pluggable registry, configuration, and encoding components.
Standard-library
log/slogbased logging with OpenTelemetry extensions in contrib packages.Consistent metadata, errors, validation, OpenAPI, and code-generation workflows.
A contrib ecosystem for optional integrations such as registries, config stores, middleware, encodings, and observability.
Installation
Requirements
Go 1.25 or later
Install the CLI
go install github.com/go-kratos/kratos/cmd/kratos/v3@latest
kratos upgradeCreate a Service
kratos new helloworld
cd helloworld
go mod tidy
kratos runVisit http://localhost:8000/helloworld/kratos after the service starts.
For a fuller generated service flow:
kratos proto add api/helloworld/helloworld.proto
kratos proto client api/helloworld/helloworld.proto
kratos proto server api/helloworld/helloworld.proto -t internal/service
go generate ./...
kratos runUsage Example
package main
import (
"github.com/go-kratos/kratos/v3"
"github.com/go-kratos/kratos/v3/transport/grpc"
"github.com/go-kratos/kratos/v3/transport/http"
)
func main() {
httpSrv := http.NewServer(http.Address(":8000"))
grpcSrv := grpc.NewServer(grpc.Address(":9000"))
app := kratos.New(
kratos.Name("helloworld"),
kratos.Version("v1.0.0"),
kratos.Server(httpSrv, grpcSrv),
)
if err := app.Run(); err != nil {
panic(err)
}
}v3 Migration
Kratos v3 reduces core dependencies and makes previously implicit behavior explicit. Review the v2 to v3 migration guide before upgrading production services.
Further Reading
Development
make test
make lintCommunity
Security
If you discover a security vulnerability in Kratos, please contact go-kratos@googlegroups.com. Security reports are handled privately before disclosure.
Contributors
Thank you for contributing to Kratos. The contribution guide is available in the Kratos documentation.
Acknowledgments
The following projects influenced Kratos design:
License
Kratos is open-sourced software licensed under the MIT license.
Lo que la gente pregunta sobre kratos
¿Qué es go-kratos/kratos?
go-kratos/kratos es awesome lists para el ecosistema de Claude AI. Your ultimate Go microservices framework for the cloud-native era. Tiene 26k estrellas en GitHub y su última actualización registrada es del 2026-10-21.
¿Cómo se instala kratos?
Puedes instalar kratos clonando el repositorio (https://github.com/go-kratos/kratos) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar go-kratos/kratos?
Nuestro agente de seguridad ha analizado go-kratos/kratos y le ha asignado un Trust Score de 100/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.
¿Quién mantiene go-kratos/kratos?
go-kratos/kratos es mantenido por go-kratos. La última actividad registrada en GitHub es del 2026-10-21, con 121 issues abiertos.
¿Hay alternativas a kratos?
Sí. En ClaudeWave puedes explorar awesome lists similares en /categories/awesome, ordenados por popularidad o actividad reciente.
¿Mantienes este repo? Muestra su Trust Score en tu README
La insignia muestra el Trust Score y el veredicto actuales de este repositorio y enlaza a esta página. Sigue los datos del catálogo: nadie puede comprar ni editar la puntuación que enseña.
[](https://claudewave.com/en/repo/go-kratos-kratos)<a href="https://claudewave.com/en/repo/go-kratos-kratos"><img src="https://claudewave.com/api/badge/go-kratos-kratos" alt="ClaudeWave Trust Score for go-kratos/kratos" width="320" height="64"></a>