hashicorp

    hashicorp/hcl

    HCL is the HashiCorp configuration language.

    backend
    configuration-language
    hashicorp
    hcl
    json
    Go
    MPL-2.0
    5.8K stars
    675 forks
    5.8K GitHub watchers
    Updated Oct 30, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    1 release in the last 90 days, the latest 46 days ago, with 103 contributors on GitHub.

    Use Cases & Benefits

    • Provides a toolkit for creating structured, human- and machine-friendly configuration languages with a native syntax and JSON variant.
    • Enables declarative, expressive configuration with validation and error handling tailored to the application's expected structure.
    • Use for building custom configuration formats for DevOps tools and server applications requiring readable and dynamic configs.
    • Use for parsing and decoding configuration files into Go structs for seamless integration in Go-based CLI tools.
    • Use for mixing human-authored HCL files with machine-generated JSON configs to support flexible configuration workflows.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Mozilla Public License 2.0

    Weak copyleft: changes to the licensed code itself must be shared when you distribute it, but code that merely uses it can stay under your own license.

    Community files

    • README: present
    • Code of conduct: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    HCL is a toolkit for creating structured configuration languages that are both human- and machine-friendly, for use with command-line tools. Although intended to be generally useful, it is primarily targeted towards devops tools, servers, etc.

    NOTE: This is major version 2 of HCL, whose Go API is incompatible with major version 1. Both versions are available for selection in Go Modules projects. HCL 2 cannot be imported from Go projects that are not using Go Modules. For more information, see our version selection guide.

    HCL has both a native syntax, intended to be pleasant to read and write for humans, and a JSON-based variant that is easier for machines to generate and parse.

    The HCL native syntax is inspired by libucl, nginx configuration, and others.

    It includes an expression syntax that allows basic inline computation and, with support from the calling application, use of variables and functions for more dynamic configuration languages.

    HCL provides a set of constructs that can be used by a calling application to construct a configuration language. The application defines which attribute names and nested block types are expected, and HCL parses the configuration file, verifies that it conforms to the expected structure, and returns high-level objects that the application can use for further processing.

    Excerpt from the hashicorp/hcl README on GitHub (MPL-2.0 license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Oct 2: +4

    +20 stars over 31 days across 4 snapshot days; best day +4 on Oct 2.

    Forks

    675+8

    Open issues

    226-7

    Compared with peers in Backend

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    hashicorp/hcl compared with Backend repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    anthropics/skills187.8K+2.9K15—
    DuarteSantos8/openGym19.7K+2.4K602 days ago
    shiyu-coder/Kronos47.0K+2.3K16—
    NationalSecurityAgency/ghidra98.2K+2.3K6414 days ago
    microsoft/VibeVoice56.0K+1.1K29—
    hashicorp/hcl5.8K—5746 days ago
    Category median56.0K+2.3K29—

    Also by hashicorp

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description