{
  "id": "kutt",
  "name": "Kutt",
  "slogan": "A modern URL shortener with custom domains, link analytics and an API, backed by Postgres and Redis.",
  "category": "Applications",
  "categorySlug": "applications",
  "tags": [
    "postgres",
    "redis",
    "multi-service"
  ],
  "license": {
    "spdx": "MIT",
    "class": "permissive"
  },
  "memoryMiB": 384,
  "architectures": {
    "amd64": "published",
    "arm64": "published"
  },
  "trust": "listed",
  "verified": false,
  "status": "active",
  "installCommand": "levelrail-cli templates install kutt --name my-kutt",
  "deployFormats": [
    "cli",
    "api"
  ],
  "url": "https://levelrail.com/templates/kutt/",
  "docsUrl": "https://docs.kutt.it/",
  "sourceRepo": "https://github.com/thedevs-network/kutt",
  "markdownUrl": "https://levelrail.com/templates/kutt.md",
  "jsonUrl": "https://levelrail.com/templates/kutt.json",
  "indexable": true,
  "description": "A modern URL shortener with custom domains, link analytics and an API, backed by Postgres and Redis.",
  "pinnedTag": "16-alpine",
  "licenseUrl": "https://github.com/thedevs-network/kutt/blob/main/LICENSE",
  "licenseClassLabel": "Permissive license",
  "needsConfig": false,
  "gpu": false,
  "firstRun": [],
  "services": [
    {
      "name": "db",
      "image": "postgres",
      "tag": "16-alpine",
      "ports": [],
      "volumes": [
        "pgdata -> /var/lib/postgresql/data"
      ]
    },
    {
      "name": "kutt",
      "image": "kutt/kutt",
      "tag": "v3.2.6",
      "ports": [
        3000
      ],
      "volumes": [
        "uploads -> /kutt/custom"
      ]
    },
    {
      "name": "redis",
      "image": "redis",
      "tag": "7-alpine",
      "ports": [],
      "volumes": [
        "redis -> /data"
      ]
    }
  ],
  "env": [
    {
      "service": "db",
      "name": "POSTGRES_DB",
      "kind": "preset"
    },
    {
      "service": "db",
      "name": "POSTGRES_PASSWORD",
      "kind": "generated"
    },
    {
      "service": "db",
      "name": "POSTGRES_USER",
      "kind": "preset"
    },
    {
      "service": "kutt",
      "name": "DB_CLIENT",
      "kind": "preset"
    },
    {
      "service": "kutt",
      "name": "DB_HOST",
      "kind": "preset"
    },
    {
      "service": "kutt",
      "name": "DB_NAME",
      "kind": "preset"
    },
    {
      "service": "kutt",
      "name": "DB_PASSWORD",
      "kind": "generated"
    },
    {
      "service": "kutt",
      "name": "DB_PORT",
      "kind": "preset"
    },
    {
      "service": "kutt",
      "name": "DB_USER",
      "kind": "preset"
    },
    {
      "service": "kutt",
      "name": "DEFAULT_DOMAIN",
      "kind": "preset"
    },
    {
      "service": "kutt",
      "name": "DISALLOW_ANONYMOUS_LINKS",
      "kind": "preset"
    },
    {
      "service": "kutt",
      "name": "DISALLOW_REGISTRATION",
      "kind": "preset"
    },
    {
      "service": "kutt",
      "name": "JWT_SECRET",
      "kind": "generated"
    },
    {
      "service": "kutt",
      "name": "REDIS_ENABLED",
      "kind": "preset"
    },
    {
      "service": "kutt",
      "name": "REDIS_HOST",
      "kind": "preset"
    },
    {
      "service": "kutt",
      "name": "REDIS_PORT",
      "kind": "preset"
    },
    {
      "service": "kutt",
      "name": "TRUST_PROXY",
      "kind": "preset"
    }
  ],
  "verifiedTag": null,
  "verifiedArches": [],
  "aliases": [],
  "findings": [],
  "compose": null,
  "deploy": {
    "cli": "levelrail-cli templates install kutt --name my-kutt",
    "api": "curl -X POST -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application/json\" \\\n  https://levelrail.example.com/api/v1/service-templates/kutt/install \\\n  -d '{\n    \"name\": \"my-kutt\"\n  }'",
    "stack": null,
    "terraform": null,
    "formats": [
      {
        "id": "cli",
        "label": "CLI",
        "lang": "bash",
        "code": "levelrail-cli templates install kutt --name my-kutt",
        "note": "Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain db=app.example.com."
      },
      {
        "id": "api",
        "label": "API",
        "lang": "bash",
        "code": "curl -X POST -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application/json\" \\\n  https://levelrail.example.com/api/v1/service-templates/kutt/install \\\n  -d '{\n    \"name\": \"my-kutt\"\n  }'",
        "note": "Create a token in the dashboard first. Name, env and domains are the request fields."
      }
    ]
  }
}
