Skip to content
@kcl-lang

The KCL Programming Language

KCL is an open-source constraint-based record & functional language mainly used in configuration and policy scenarios.

Hey, this is KCL community 👋

💻 Website | 👩‍💻 Quick Start | 👀 Blog | 📦 Modules | 🔧 SDKs | 🔌 Plugins | 💻 IDE Extensions | ☸️ KRM KCL Spec

KCL is a constraint-based record & functional language mainly used in cloud-native configuration and policy scenarios. It is hosted by the Cloud Native Computing Foundation (CNCF) as a Sandbox Project.

What is it for?

KCL aims to provide the following capabilities:

  • Hide infrastructure and platform details by defining more appropriate API abstractions to reduce the burden of developers.
  • Mutate and validate existing config files or manifests through numerous community modules.
  • Manage large-scale configuration data across teams without side effects through configuration and policy language for GitOps.

Specifically, KCL can

  • Improve the ability to semantically validate configurations at the code level, such as schema definitions, required/optional attribute requirements, types, range constraints, and etc.
  • Provide capabilities for writing, combining, and abstracting configuration chunks, such as structure definitions, structure inheritance, constraint definitions, and configuration policy merging.
  • Enhance configuration flexibility by adopting modern programming language features, such as conditional statements, loops, functions, and package management, to improve configuration reusability.
  • Provide comprehensive toolchain support, including rich IDE extensions and toolchains support to reduce the learning curve and enhance the user experience.
  • Enable easier sharing, propagation, and delivery of configurations between different teams/roles through package management tools and OCI registries.
  • Offer a high-performance compiler to meet the demands of scalable configuration scenarios, such as rendering performance for generating configurations for different environments and topologies based on a baseline configuration and configuration automation modification performance requirements.
  • Improve automation integration capabilities through multi-language SDKs, KCL language plugins, and other means, significantly reducing the learning curve while leveraging the value of configuration and policy writing with KCL.
  • Used as a platform engineering language to deliver modern apps with KusionStack.

Documents

See the KCL website for more information.

Community

See the community for ways to join us.

Pinned Loading

  1. kcl kcl Public

    KCL Programming Language (CNCF Sandbox Project). https://kcl-lang.io

    Rust 1.7k 118

  2. kcl-lang.io kcl-lang.io Public

    KCL Website and Documentation Repo: https://kcl-lang.io

    TypeScript 13 34

  3. modules modules Public

    Shared KCL Community Modules. View on Artifact Hub: https://artifacthub.io/packages/search?org=kcl&sort=relevance&page=1

    Roff 18 22

  4. lib lib Public

    KCL Multiple Language Bindings including Rust, Go, Python, Java, Kotlin, .NET, Swift, Lua, Node.js, Zig, C, C , WASM, etc.

    C# 8 10

  5. kcl-go kcl-go Public

    KCL Go SDK

    Go 51 25

  6. krm-kcl krm-kcl Public

    Kubernetes Resource Model KCL Specification and Integrations including Kubectl, Kustomize, Helm, Helmfile, Crossplane, KPT, etc.

    Go 21 14

Repositories

Showing 10 of 52 repositories
  • kustomize-kcl Public

    Kustomzie KCL Function

    kcl-lang/kustomize-kcl’s past year of commit activity
    Makefile 5 Apache-2.0 2 0 0 Updated Oct 28, 2024
  • krm-kcl Public

    Kubernetes Resource Model KCL Specification and Integrations including Kubectl, Kustomize, Helm, Helmfile, Crossplane, KPT, etc.

    kcl-lang/krm-kcl’s past year of commit activity
    Go 21 Apache-2.0 14 0 0 Updated Oct 28, 2024
  • kpt-kcl Public

    KPT Function KCL SDK

    kcl-lang/kpt-kcl’s past year of commit activity
    Go 7 Apache-2.0 4 0 0 Updated Oct 28, 2024
  • flux-kcl-controller Public

    Flux KCL Controller

    kcl-lang/flux-kcl-controller’s past year of commit activity
    Go 22 Apache-2.0 7 3 (2 issues need help) 0 Updated Oct 28, 2024
  • kcl-operator Public

    Kubernetes KCL Operator and Webhook Server

    kcl-lang/kcl-operator’s past year of commit activity
    Go 16 Apache-2.0 4 3 (2 issues need help) 0 Updated Oct 28, 2024
  • kubectl-kcl Public

    Kubectl KCL Plugin

    kcl-lang/kubectl-kcl’s past year of commit activity
    Go 9 Apache-2.0 4 3 0 Updated Oct 28, 2024
  • helm-kcl Public

    Helm KCL Plugin

    kcl-lang/helm-kcl’s past year of commit activity
    Go 11 Apache-2.0 4 0 1 Updated Oct 28, 2024
  • scoop-bucket Public

    KCL windows scoop bucket

    kcl-lang/scoop-bucket’s past year of commit activity
    2 Apache-2.0 1 0 0 Updated Oct 28, 2024
  • homebrew-tap Public

    The Homebrew tap for the KCL programming language projects.

    kcl-lang/homebrew-tap’s past year of commit activity
    Ruby 3 Apache-2.0 1 1 0 Updated Oct 28, 2024
  • cli Public

    The KCL Command Line Interface (CLI).

    kcl-lang/cli’s past year of commit activity
    Go 19 Apache-2.0 13 1 1 Updated Oct 28, 2024

Top languages

Loading…

Most used topics

Loading…