{
  "manifest_version": "1.0.0",
  "template": {
    "id": "b37f0722-df8d-4fd1-84aa-6f7d7ef26ddf",
    "slug": "chhoto-url-template",
    "name": "Chhoto URL template",
    "description": "Chhoto URL: lightweight self-hosted URL shortener built in Rust",
    "url": "https://railway.com/deploy/chhoto-url-template",
    "upstream": {
      "image": "sintan1729/chhoto-url:latest"
    }
  },
  "services": [
    {
      "name": "Chhoto URL",
      "source": {
        "image": "sintan1729/chhoto-url:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "port",
      "service": "Chhoto URL",
      "description": "Provide a value for port.",
      "secret": false,
      "strategy": "default",
      "default": "4567"
    },
    {
      "key": "db_url",
      "service": "Chhoto URL",
      "description": "Provide a value for db_url.",
      "secret": false,
      "strategy": "default",
      "default": "/data/chhoto.sqlite"
    },
    {
      "key": "password",
      "service": "Chhoto URL",
      "description": "Provide a value for password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "slug_style",
      "service": "Chhoto URL",
      "description": "Provide a value for slug_style.",
      "secret": false,
      "strategy": "default",
      "default": "Pair"
    },
    {
      "key": "ensure_acid",
      "service": "Chhoto URL",
      "description": "Provide a value for ensure_acid.",
      "secret": false,
      "strategy": "default",
      "default": "True"
    },
    {
      "key": "public_mode",
      "service": "Chhoto URL",
      "description": "Provide a value for public_mode.",
      "secret": false,
      "strategy": "default",
      "default": "Disable"
    },
    {
      "key": "slug_length",
      "service": "Chhoto URL",
      "description": "Provide a value for slug_length.",
      "secret": false,
      "strategy": "default",
      "default": "16"
    },
    {
      "key": "use_wal_mode",
      "service": "Chhoto URL",
      "description": "Provide a value for use_wal_mode.",
      "secret": false,
      "strategy": "default",
      "default": "True"
    },
    {
      "key": "hash_algorithm",
      "service": "Chhoto URL",
      "description": "Provide a value for hash_algorithm.",
      "secret": false,
      "strategy": "default",
      "default": "Argon2"
    },
    {
      "key": "listen_address",
      "service": "Chhoto URL",
      "description": "Provide a value for listen_address.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "redirect_method",
      "service": "Chhoto URL",
      "description": "Provide a value for redirect_method.",
      "secret": false,
      "strategy": "default",
      "default": "PERMANENT"
    },
    {
      "key": "try_longer_slug",
      "service": "Chhoto URL",
      "description": "Provide a value for try_longer_slug.",
      "secret": false,
      "strategy": "default",
      "default": "True"
    },
    {
      "key": "disable_frontend",
      "service": "Chhoto URL",
      "description": "Provide a value for disable_frontend.",
      "secret": false,
      "strategy": "default",
      "default": "False"
    },
    {
      "key": "cache_control_header",
      "service": "Chhoto URL",
      "description": "Provide a value for cache_control_header.",
      "secret": false,
      "strategy": "default",
      "default": "no-cache"
    },
    {
      "key": "allow_capital_letters",
      "service": "Chhoto URL",
      "description": "Provide a value for allow_capital_letters.",
      "secret": false,
      "strategy": "default",
      "default": "True"
    },
    {
      "key": "public_mode_expiry_delay",
      "service": "Chhoto URL",
      "description": "Provide a value for public_mode_expiry_delay.",
      "secret": false,
      "strategy": "default",
      "default": "3600"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "chhoto-url-template"
      }
    },
    "cli": "railway deploy --template chhoto-url-template",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "b37f0722-df8d-4fd1-84aa-6f7d7ef26ddf",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "f2902401-1697-4d91-b4f9-fcdd345feaae": {
                  "icon": "https://raw.githubusercontent.com/SinTan1729/chhoto-url/12862fbb5a7054548a9ef1e4c2ff1395ea6a1084/resources/assets/favicon.svg",
                  "name": "Chhoto URL",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "sintan1729/chhoto-url:latest"
                  },
                  "variables": {
                    "port": {
                      "isOptional": true,
                      "defaultValue": "4567"
                    },
                    "db_url": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "/data/chhoto.sqlite"
                    },
                    "api_key": {
                      "isOptional": true,
                      "defaultValue": ""
                    },
                    "password": {
                      "isOptional": true,
                      "defaultValue": "{{password}}"
                    },
                    "slug_style": {
                      "isOptional": true,
                      "defaultValue": "Pair"
                    },
                    "ensure_acid": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "True"
                    },
                    "public_mode": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "Disable"
                    },
                    "slug_length": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "16"
                    },
                    "use_wal_mode": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "True"
                    },
                    "hash_algorithm": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "Argon2"
                    },
                    "listen_address": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "0.0.0.0"
                    },
                    "redirect_method": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "PERMANENT"
                    },
                    "try_longer_slug": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "True"
                    },
                    "disable_frontend": {
                      "isOptional": true,
                      "defaultValue": "False"
                    },
                    "cache_control_header": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "no-cache"
                    },
                    "allow_capital_letters": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "True"
                    },
                    "public_mode_expiry_delay": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "3600"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "f2902401-1697-4d91-b4f9-fcdd345feaae": {
                      "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-18T16:28:42.086Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_8b2b50b7fd8443899488",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 65,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "Chhoto URL"
  }
}
