{"id":13484327,"url":"https://github.com/kcl-lang/kcl","last_synced_at":"2025-05-15T00:03:46.513Z","repository":{"id":36960933,"uuid":"488865524","full_name":"kcl-lang/kcl","owner":"kcl-lang","description":"KCL Programming Language (CNCF Sandbox Project). https://kcl-lang.io","archived":false,"fork":false,"pushed_at":"2025-04-30T11:43:32.000Z","size":12038,"stargazers_count":1994,"open_issues_count":109,"forks_count":139,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-05-07T23:38:32.322Z","etag":null,"topics":["cloud-native","compiler","configuration","configuration-language","configuration-management","devops","functional","infrastructure-as-code","kubernetes","language","platform-engineering","policy","programming-language","record","rust","schema","shift-left","validation"],"latest_commit_sha":null,"homepage":"https://kcl-lang.io","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kcl-lang.png","metadata":{"files":{"readme":"README-zh.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":"GOVERNANCE.md","roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-05-05T07:02:26.000Z","updated_at":"2025-05-07T16:04:34.000Z","dependencies_parsed_at":"2023-09-22T18:51:02.654Z","dependency_job_id":"702f2870-8f34-4288-93fa-df3cb74343f7","html_url":"https://github.com/kcl-lang/kcl","commit_stats":{"total_commits":896,"total_committers":31,"mean_commits":"28.903225806451612","dds":0.5334821428571428,"last_synced_commit":"47e3013dd2a5c538eb7337372dcbbeb4a481e4bd"},"previous_names":["kusionstack/kcl","kusionstack/kclvm","kcl-lang/kcl"],"tags_count":80,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kcl-lang%2Fkcl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kcl-lang%2Fkcl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kcl-lang%2Fkcl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kcl-lang%2Fkcl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kcl-lang","download_url":"https://codeload.github.com/kcl-lang/kcl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253830956,"owners_count":21971004,"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":["cloud-native","compiler","configuration","configuration-language","configuration-management","devops","functional","infrastructure-as-code","kubernetes","language","platform-engineering","policy","programming-language","record","rust","schema","shift-left","validation"],"created_at":"2024-07-31T17:01:22.619Z","updated_at":"2025-05-15T00:03:46.423Z","avatar_url":"https://github.com/kcl-lang.png","language":"Rust","funding_links":[],"categories":["Rust","Uncategorized","Libraries","rust","Continuous Delivery \u0026 GitOps"],"sub_categories":["Uncategorized","Scripting"],"readme":"\u003ch1 align=\"center\"\u003eKCL: 基于约束的记录及函数语言\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"./README.md\"\u003eEnglish\u003c/a\u003e | \u003ca href=\"./README-zh.md\"\u003e简体中文\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003ca href=\"#介绍\"\u003e介绍\u003c/a\u003e | \u003ca href=\"#特性\"\u003e特性\u003c/a\u003e | \u003ca href=\"#场景\"\u003e场景\u003c/a\u003e | \u003ca href=\"#安装\"\u003e安装\u003c/a\u003e | \u003ca href=\"#文档\"\u003e文档\u003c/a\u003e | \u003ca href=\"#贡献\"\u003e贡献\u003c/a\u003e | \u003ca href=\"#路线规划\"\u003e路线规划\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/kcl-lang/kcl/workflows/release/badge.svg\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\"\u003e\n  \u003cimg src=\"https://coveralls.io/repos/github/kcl-lang/kcl/badge.svg\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/release/kcl-lang/kcl.svg\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/kcl-lang/kcl.svg\"\u003e\n  \u003ca href=\"https://www.bestpractices.dev/projects/7867\"\u003e\u003cimg src=\"https://www.bestpractices.dev/projects/7867/badge\"\u003e\u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/github/downloads/kcl-lang/kcl/total?label=Github%20downloads\u0026logo=github\"\u003e\n  \u003cimg src=\"https://app.fossa.com/api/projects/git%2Bgithub.com%2Fkcl-lang%2Fkcl.svg?type=shield\"\u003e\n  \u003ca href=\"https://app.devin.ai/devin_v4.png\"\u003e\u003cimg src=\"https://deepwiki.com/kcl-lang/kcl\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## 介绍\n\nKCL 是一个开源的基于约束的记录及函数语言并通过成熟的编程语言技术和实践来改进对大量繁杂配置比如云原生 Kubernetes 配置场景的编写，致力于构建围绕配置的更好的模块化、扩展性和稳定性，更简单的逻辑编写，以及更简单的自动化和生态工具集成。\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://kcl-lang.io/img/registry-and-ide.png\"\u003e\n\u003c/p\u003e\n\n## 场景\n\n您可以将 KCL 用于\n\n+ [生成静态配置数据](https://kcl-lang.io/docs/user_docs/guides/configuration)如 JSON, YAML 等，或者[与已有的数据进行集成](https://kcl-lang.io/docs/user_docs/guides/data-integration)\n+ [使用 Schema 对配置数据进行抽象建模](https://kcl-lang.io/docs/user_docs/guides/schema-definition)并减少配置数据中的样板文件\n+ [为配置数据定义带有规则约束](https://kcl-lang.io/docs/user_docs/guides/validation)的 Schema 并对数据进行自动验证\n+ [通过梯度自动化方案和 GitOps](https://kcl-lang.io/docs/user_docs/guides/automation)无副作用地组织、简化、统一和管理庞大的配置\n+ 通过[分块编写配置数据](https://kcl-lang.io/docs/reference/lang/tour#config-operations)为不同的环境可扩展地管理庞大的配置\n+ 通过与[云原生配置工具](https://www.kcl-lang.io/docs/user_docs/guides/working-with-k8s/mutate-manifests/kubectl-kcl-plugin)集成直接编辑或校验存量 Kubernetes 资源\n+ 与 [KusionStack](https://kusionstack.io) 一起，用作平台工程语言来交付现代应用程序\n\n## 特性\n\n+ **简单易用**：源于 Python、Golang 等高级语言，采纳函数式编程语言特性，低副作用\n+ **设计良好**：独立的规范驱动的语法、语义、运行时和系统库设计\n+ **快速建模**：[开箱即用的模型库](https://artifacthub.io/packages/search?org=kcl\u0026sort=relevance\u0026page=1)和以 [Schema](https://kcl-lang.io/docs/reference/lang/tour#schema) 为中心的配置类型及模块化抽象\n+ **功能完备**：基于 [Config](https://kcl-lang.io/docs/reference/lang/tour#config-operations)、[Schema](https://kcl-lang.io/docs/reference/lang/tour#schema)、[Lambda](https://kcl-lang.io/docs/reference/lang/tour#function)、[Rule](https://kcl-lang.io/docs/reference/lang/tour#rule) 的配置及其模型、逻辑和策略编写\n+ **可靠稳定**：依赖[静态类型系统](https://kcl-lang.io/docs/reference/lang/tour/#type-system)、[约束](https://kcl-lang.io/docs/reference/lang/tour/#validation)和[自定义规则](https://kcl-lang.io/docs/reference/lang/tour#rule)的配置稳定性\n+ **强可扩展**：通过独立配置块[自动合并机制](https://kcl-lang.io/docs/reference/lang/tour/#-operators-1)保证配置编写的高可扩展性\n+ **易自动化**：[CRUD APIs](https://kcl-lang.io/docs/reference/lang/tour/#kcl-cli-variable-override)，[多语言 SDK](https://kcl-lang.io/docs/reference/xlang-api/overview)，[语言插件](https://github.com/kcl-lang/kcl-plugin) 构成的梯度自动化方案\n+ **极致性能**：使用 Rust \u0026 C，[LLVM](https://llvm.org/) 实现，支持编译到本地代码和 [WASM](https://webassembly.org/) 的高性能编译时和运行时\n+ **API 亲和**：原生支持 [OpenAPI](https://github.com/kcl-lang/kcl-openapi)、 Kubernetes CRD， Kubernetes Resource Model (KRM) 等 API 生态规范\n+ **开发友好**：[语言工具](https://kcl-lang.io/docs/tools/cli/kcl/) (Format，Lint，Test，Vet，Doc, 包管理工具等) 和 [IDE 插件](https://kcl-lang.io/docs/tools/Ide/) 构建良好的研发体验\n+ **安全可控**：面向领域，不原生提供线程、IO 等系统级功能，低噪音，低安全风险，易维护，易治理\n+ **多语言 SDK**：Rust, Go, Python, .NET, Java 和 Node.js 等 SDK 满足不同场景和应用使用需求\n+ **生态集成**：通过 [Kubectl KCL 插件](https://github.com/kcl-lang/kubectl-kcl)、[Kustomize KCL 插件](https://github.com/kcl-lang/kustomize-kcl)、[Helm KCL 插件](https://github.com/kcl-lang/helm-kcl) 、[KPT KCL SDK](https://github.com/kcl-lang/kpt-kcl) 或者 [Crossplane KCL 函数](https://github.com/kcl-lang/crossplane-kcl) 直接编辑、校验或者抽象资源\n\n+ **生产可用**：广泛应用在蚂蚁集团平台工程及自动化的生产环境实践中\n\n## 如何选择\n\n详细的功能和场景对比参考[这里](https://kcl-lang.io/docs/user_docs/getting-started/intro)。\n\n## 安装\n\n有关安装的更多信息，请查看 KCL 官网的[安装指南](https://kcl-lang.io/docs/user_docs/getting-started/install/)\n\n## 文档\n\n更多文档请访问[KCL 网站](https://kcl-lang.io/)\n\n这里也有一个 [Devin](https://devin.ai/) 生成的非常不错的文档 [**deepwiki**](https://deepwiki.com/kcl-lang/kcl).\n\n## 贡献\n\n参考[开发手册](./docs/dev_guide/1.about_this_guide.md)。您也可以直接在 GitHub Codespaces 中打开该项目开始贡献。\n\n[![用 GitHub Codespaces 打开](https://github.com/codespaces/badge.svg)](https://codespaces.new/kcl-lang/kcl)\n\n## 路线规划\n\n参考[KCL 路线规划](https://github.com/kcl-lang/kcl/issues/882)\n\n## 社区\n\n欢迎访问 [社区](https://github.com/kcl-lang/community) 加入我们。\n\n## License\n\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fkcl-lang%2Fkcl.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fkcl-lang%2Fkcl?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkcl-lang%2Fkcl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkcl-lang%2Fkcl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkcl-lang%2Fkcl/lists"}