{
  "manifest_version": "1.0.0",
  "template": {
    "id": "2bd57f5d-2e76-4f38-9d4c-d676ba14ee7e",
    "slug": "koffan",
    "name": "Koffan",
    "description": "Free selfhosted groceries list for families and shared households.",
    "url": "https://railway.com/deploy/koffan",
    "upstream": {
      "repo_url": "https://github.com/PanSalut/Koffan"
    }
  },
  "services": [
    {
      "name": "Koffan",
      "source": {
        "repo": "https://github.com/PanSalut/Koffan"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Koffan",
      "description": "Port of the application.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "APP_ENV",
      "service": "Koffan",
      "description": "Application environment.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "DB_PATH",
      "service": "Koffan",
      "description": "Database path for SQLite.",
      "secret": false,
      "strategy": "default",
      "default": "/data/shopping.db"
    },
    {
      "key": "APP_PASSWORD",
      "service": "Koffan",
      "description": "Application password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "koffan"
      }
    },
    "cli": "railway deploy --template koffan",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "2bd57f5d-2e76-4f38-9d4c-d676ba14ee7e",
            "serializedConfig": {
              "services": {
                "e101658b-6695-45ea-be56-61deab85d17b": {
                  "icon": "https://raw.githubusercontent.com/PanSalut/Koffan/main/static/koffan-logo.webp",
                  "name": "Koffan",
                  "source": {
                    "repo": "PanSalut/Koffan",
                    "branch": null,
                    "commitSha": "0b35053e3da3d89dfdd37dec1735e9f400ffa142",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "description": "Port of the application.",
                      "defaultValue": "80"
                    },
                    "APP_ENV": {
                      "description": "Application environment.",
                      "defaultValue": "production"
                    },
                    "DB_PATH": {
                      "description": "Database path for SQLite.",
                      "defaultValue": "/data/shopping.db"
                    },
                    "APP_PASSWORD": {
                      "description": "Application password.",
                      "defaultValue": "{{APP_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  },
                  "volumeMounts": {
                    "e101658b-6695-45ea-be56-61deab85d17b": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-18T14:52:24.341Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_bdbdcf237d274581916b",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 181,
    "typical_build_seconds": 84,
    "typical_start_seconds": 10,
    "slowest_service": "Koffan"
  }
}
