{"id":20464782,"url":"https://github.com/crdsonnet/astsonnet","last_synced_at":"2025-07-08T13:03:34.700Z","repository":{"id":227644204,"uuid":"772001407","full_name":"crdsonnet/astsonnet","owner":"crdsonnet","description":"Jsonnet library to generate jsonnet code.","archived":false,"fork":false,"pushed_at":"2025-02-14T22:55:55.000Z","size":39,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T23:27:23.896Z","etag":null,"topics":["abstract-syntax-tree","jsonnet","jsonnet-lib"],"latest_commit_sha":null,"homepage":"","language":"Jsonnet","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/crdsonnet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-14T10:50:25.000Z","updated_at":"2025-02-14T22:56:10.000Z","dependencies_parsed_at":"2024-03-14T12:43:59.928Z","dependency_job_id":"a2e631c0-832b-4dfe-a60d-e4d8ca39f360","html_url":"https://github.com/crdsonnet/astsonnet","commit_stats":null,"previous_names":["crdsonnet/astsonnet"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crdsonnet%2Fastsonnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crdsonnet%2Fastsonnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crdsonnet%2Fastsonnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crdsonnet%2Fastsonnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crdsonnet","download_url":"https://codeload.github.com/crdsonnet/astsonnet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242024225,"owners_count":20059492,"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":["abstract-syntax-tree","jsonnet","jsonnet-lib"],"created_at":"2024-11-15T13:16:27.807Z","updated_at":"2025-03-05T12:22:18.719Z","avatar_url":"https://github.com/crdsonnet.png","language":"Jsonnet","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ASTsonnet\n\nThis is a Jsonnet library to generate jsonnet code. This library implements functions to create the Jsonnet expressions as represented in the Abstract Syntax. This allows us to generate valid Jsonnet programmatically. This library is partially generated by itself from a JSON schema representing the Jsonnet AST.\n\n## Install\n\n```\njb install github.com/crdsonnet/astsonnet\n```\n\n## Usage\n\n```jsonnet filename=\"example.jsonnet\"\nlocal a = import 'github.com/crdsonnet/astsonnet/main.libsonnet';\n\na.object.new([\n  a.field.new(\n    a.id.new('hello'),\n    a.string.new('world'),\n  ),\n]).toString()\n```\n\nExecute it like so:\n\n```\n$ jsonnet -S example.jsonnet | jsonnetfmt -\n\n{ hello: 'world' }\n```\n\nOr execute the resulting jsonnet directly:\n\n```\n$ jsonnet -S example.jsonnet | jsonnet -\n\n{\n   \"hello\": \"world\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrdsonnet%2Fastsonnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrdsonnet%2Fastsonnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrdsonnet%2Fastsonnet/lists"}