{"id":14985612,"url":"https://github.com/j0hn-b/cue_demo","last_synced_at":"2026-01-04T07:56:44.758Z","repository":{"id":183533396,"uuid":"670240854","full_name":"J0hn-B/cue_demo","owner":"J0hn-B","description":"CUE is an open-source Data Validation language. Can be used to define and validate Kubernetes manifests, CRDs, and configuration files.","archived":false,"fork":false,"pushed_at":"2023-07-24T19:44:41.000Z","size":57,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T10:08:34.548Z","etag":null,"topics":["cue","data-validation","json","kubernetes","yml"],"latest_commit_sha":null,"homepage":"","language":"CUE","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/J0hn-B.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-24T15:45:48.000Z","updated_at":"2023-07-26T11:53:37.000Z","dependencies_parsed_at":"2023-07-24T21:17:19.591Z","dependency_job_id":null,"html_url":"https://github.com/J0hn-B/cue_demo","commit_stats":null,"previous_names":["j0hn-b/cue_demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J0hn-B%2Fcue_demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J0hn-B%2Fcue_demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J0hn-B%2Fcue_demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J0hn-B%2Fcue_demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/J0hn-B","download_url":"https://codeload.github.com/J0hn-B/cue_demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244814864,"owners_count":20514839,"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":["cue","data-validation","json","kubernetes","yml"],"created_at":"2024-09-24T14:11:21.791Z","updated_at":"2026-01-04T07:56:44.344Z","avatar_url":"https://github.com/J0hn-B.png","language":"CUE","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CUE (Configure Unify Execute)\n\n[CUE](https://cuelang.org/) is an open-source **Data Validation language** and inference engine with its roots in logic programming.\n\nInstead of writing code like typical languages, **you provide values, types, definitions, and constraints** to Cue, and it **checks if what you entered is correct**.\n\nFor those familiar with [Rego](https://www.openpolicyagent.org/docs/latest/policy-language/), it's important to note that `CUE` and `Rego` are both declarative configuration languages but they have some key differences.\n\nOverall, the choice between CUE and Rego depends on your specific use case.\n\nIf you need a general-purpose configuration language with data validation capabilities, CUE might be a better fit.\n\nOn the other hand, if your main focus is on defining and enforcing policies, [Rego](https://www.openpolicyagent.org/docs/latest/policy-language/) in combination with Open Policy Agent could be more suitable.\n\n\u003e CUE is still evolving and things are going to change.\n\nThis repo will display examples of how CUE can be used in different scenarios.\n\n## Validate\n\n`validate` dir contains the [ArgoCD](https://argo-cd.readthedocs.io/en/stable/) installation manifests in yaml format and the CUE files to validate them.\n\n```bash\ngit clone https://github.com/J0hn-B/cue_demo.git \u0026\u0026 cd validate/\n```\n\n```bash\n$ tree\n    .\n    |-- argocd.yml          # argocd installation\n    |-- check.cue           # CUE Definitions\n    `-- validate_tool.cue   # Logic and the sequence of commands to run the validation.\n\n```\n\nTo validate the argocd manifests, run the following command:\n\n```bash\ncue cmd validate\n```\n\nFollow the instructions on terminal.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj0hn-b%2Fcue_demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj0hn-b%2Fcue_demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj0hn-b%2Fcue_demo/lists"}