Jsonnet

1 program Added 2025-10-22T15:29:21Z Model: anthropic/claude-4.5-sonnetTemp: 0.4 Evidence Report issue View issues
Aliases: jsonnet
Provenance: commit bc7b1c2221 · authored 2025-10-22T17:29:22+02:00 · model anthropic/claude-4.5-sonnet

Sources mentioning this language

4 sources · pl_id: pl/jsonnet
LLM (this repo) · 1LinguistPygmentsHyperpolyglot

Extensions claimed by this language

4 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.jsonnetlinguistprimary138.5K files
.jsonnetpygmentsprimary138.5K files
.libsonnetlinguistsecondary74.6K files
.libsonnetpygmentssecondary74.6K files

Related languages

JSONiq (0.29)JSONata (0.27)JScript .NET (0.26)JScript.NET (0.26)JSONPath (0.25)

LLM-contributed programs

Kubernetes ConfigMap Generator

Provenance: commit bc7b1c2221 · authored 2025-10-22T17:29:22+02:00 · model anthropic/claude-4.5-sonnet · Temp 0.4
code.jsonnet · license: Apache-2.0 · added: 2025-10-22T15:29:21Z
// Copyright 2015 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

local kube = import 'kube.libsonnet';

{
  'service.json': kube.Service('nginx') {
    target_pod: $.deployment.spec.template,
  },

  'deployment.json': kube.Deployment('nginx') {
    spec+: {
      replicas: 3,
      template+: {
        spec+: {
          containers_+: {
            nginx: kube.Container('nginx') {
              image: 'nginx:1.7.9',
              ports_+: {
                http: { containerPort: 80 },
              },
            },
          },
        },
      },
    },
  },

  'configmap.json': kube.ConfigMap('nginx-config') {
    data: {
      'nginx.conf': ||
        user nginx;
        worker_processes auto;
        error_log /var/log/nginx/error.log;
        pid /run/nginx.pid;

        events {
            worker_connections 1024;
        }

        http {
            log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                              '$status $body_bytes_sent "$http_referer" '
                              '"$http_user_agent" "$http_x_forwarded_for"';

            access_log  /var/log/nginx/access.log  main;

            sendfile            on;
            tcp_nopush          on;
            tcp_nodelay         on;
            keepalive_timeout   65;
            types_hash_max_size 2048;

            include             /etc/nginx/mime.types;
            default_type        application/octet-stream;

            server {
                listen       80 default_server;
                listen       [::]:80 default_server;
                server_name  _;
                root         /usr/share/nginx/html;

                location / {
                }

                error_page 404 /404.html;
                    location = /40x.html {
                }

                error_page 500 502 503 504 /50x.html;
                    location = /50x.html {
                }
            }
        }
      ||,
    },
  },
}

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about Jsonnet (mapped to pl/jsonnet). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Jsonnet/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← JsonML JSONPath →