close
Skip to main content
This release is versions behind 0.3.5 — the latest version of @gin/core.

@gin/core@0.1.16
Built and signed on GitHub Actions

Works with
This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score70%
Downloads1/wk
Publisheda year ago (0.1.16)

This package provides the core functionality of the Gin framework, a type safe template engine for Kubernetes.

Getting started

The following is a basic example that makes use of a reusable component from the Gin standard library to deploy a web application. Running this code will produce a corresponding Deployment, Service, and Ingress resource.

// webapp.ts
import { Gin } from "jsr:@gin/core";
import { WebApp } from "jsr:@gin/webapp-v1alpha1";

new Gin().run((gin) => {
  gin.emit<WebApp>({
    apiVersion: "webapp.gin.jsr.io/v1alpha1",
    kind: "WebApp",
    metadata: {
      name: "example-webapp",
      namespace: "default",
    },
    spec: {
      image: "nginxinc/nginx-unprivileged:stable-alpine",
      replicas: 3,
      host: "example.com",
      clusterIssuer: "letsencrypt-prod",
    },
  });
});

You can add the -m option to keep Gin metadata attached to the Kubernetes resources in tact, which is useful for debugging when you need to understand how a resource in the final output was generated. Also add the -p option to emit Gin custom resources as well.

Check out the Gin packages on JSR.io.

Built and signed on
GitHub Actions

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@gin/core

Import symbol

import * as core from "@gin/core";
or

Import directly with a jsr specifier

import * as core from "jsr:@gin/core";