{
  "manifest_version": "1.0.0",
  "template": {
    "id": "64bde871-3fec-4bb3-94f1-19f1c56bdefe",
    "slug": "speedtest-tracker",
    "name": "Speedtest Tracker",
    "description": "Scheduled internet speed tests with history and alerts",
    "url": "https://railway.com/deploy/speedtest-tracker",
    "upstream": {
      "repo_url": "https://github.com/prime3679/railway-templates"
    }
  },
  "services": [
    {
      "name": "railway-templates",
      "source": {
        "repo": "https://github.com/prime3679/railway-templates"
      },
      "needs_volume": true,
      "volume_mount_path": "/config",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "railway-templates",
      "description": "Timezone used for the speed test schedule and logs.",
      "secret": false,
      "strategy": "default",
      "default": "America/New_York"
    },
    {
      "key": "PGID",
      "service": "railway-templates",
      "description": "Group ID the container runs as (PGID).",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "PORT",
      "service": "railway-templates",
      "description": "HTTP port the app listens on; must match the public networking port.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "PUID",
      "service": "railway-templates",
      "description": "User ID the container runs as (PUID).",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "APP_KEY",
      "service": "railway-templates",
      "description": "Application encryption key; must be a base64:-prefixed 32-byte key. Generated automatically.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "APP_URL",
      "service": "railway-templates",
      "description": "Public URL of the app, derived from the Railway public domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DB_CONNECTION",
      "service": "railway-templates",
      "description": "Database driver: sqlite by default, or pgsql with a Postgres service.",
      "secret": false,
      "strategy": "default",
      "default": "sqlite"
    },
    {
      "key": "SPEEDTEST_SCHEDULE",
      "service": "railway-templates",
      "description": "Cron schedule for automatic speed tests (default every 6 hours).",
      "secret": false,
      "strategy": "default",
      "default": "0 */6 * * *"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "speedtest-tracker"
      }
    },
    "cli": "railway deploy --template speedtest-tracker",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "64bde871-3fec-4bb3-94f1-19f1c56bdefe",
            "serializedConfig": {
              "services": {
                "388a0f2a-5568-409e-a511-74594b7f9742": {
                  "name": "railway-templates",
                  "deploy": {
                    "healthcheckPath": "/api/healthcheck"
                  },
                  "source": {
                    "repo": "prime3679/railway-templates",
                    "rootDirectory": "/speedtest-tracker"
                  },
                  "variables": {
                    "TZ": {
                      "description": "Timezone used for the speed test schedule and logs.",
                      "defaultValue": "America/New_York"
                    },
                    "PGID": {
                      "description": "Group ID the container runs as (PGID).",
                      "defaultValue": "1000"
                    },
                    "PORT": {
                      "description": "HTTP port the app listens on; must match the public networking port.",
                      "defaultValue": "80"
                    },
                    "PUID": {
                      "description": "User ID the container runs as (PUID).",
                      "defaultValue": "1000"
                    },
                    "APP_KEY": {
                      "description": "Application encryption key; must be a base64:-prefixed 32-byte key. Generated automatically.",
                      "defaultValue": "{{APP_KEY}}"
                    },
                    "APP_URL": {
                      "description": "Public URL of the app, derived from the Railway public domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DB_CONNECTION": {
                      "description": "Database driver: sqlite by default, or pgsql with a Postgres service.",
                      "defaultValue": "sqlite"
                    },
                    "SPEEDTEST_SCHEDULE": {
                      "description": "Cron schedule for automatic speed tests (default every 6 hours).",
                      "defaultValue": "0 */6 * * *"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  },
                  "volumeMounts": {
                    "388a0f2a-5568-409e-a511-74594b7f9742": {
                      "mountPath": "/config"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "railway-templates",
      "method": "GET",
      "path": "/api/healthcheck",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-16T22:14:44.134Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-16T21:06:25.003Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_d2304493ea7d4a56add5",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 113,
    "typical_build_seconds": 21,
    "typical_start_seconds": 13,
    "slowest_service": "railway-templates"
  }
}
