{
  "manifest_version": "1.0.0",
  "template": {
    "id": "45847f3b-0867-4b71-843e-cf7f0402182c",
    "slug": "dino",
    "name": "Dino",
    "description": "A quiet page of important news, with a pixel dinosaur for company",
    "url": "https://railway.com/deploy/dino",
    "upstream": {
      "repo_url": "https://github.com/nomideusz/dino"
    }
  },
  "services": [
    {
      "name": "archive",
      "source": {
        "repo": "https://github.com/nomideusz/dino"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "frontend",
      "source": {
        "repo": "https://github.com/nomideusz/dino"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "ALLOWED_ORIGINS",
      "service": "archive",
      "description": "CORS allow-list — the frontend's domain. Wired automatically, don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ARCHIVE_PERSIST_PATH",
      "service": "archive",
      "description": "Where the story snapshot lives on the volume, so stories survive redeploys. Don't change.",
      "secret": false,
      "strategy": "default",
      "default": "/data/archive.json"
    },
    {
      "key": "VITE_ARCHIVE_URL",
      "service": "frontend",
      "description": "The archive service's public URL, baked in at build time. Wired automatically, don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "dino"
      }
    },
    "cli": "railway deploy --template dino",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "45847f3b-0867-4b71-843e-cf7f0402182c",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "93bd5074-f766-4cd5-a635-ade348c3704d": {
                  "icon": "https://raw.githubusercontent.com/nomideusz/dino/main/public/dino-icon.svg",
                  "name": "archive",
                  "build": {
                    "dockerfilePath": "Dockerfile.archive"
                  },
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/dino",
                    "rootDirectory": "/"
                  },
                  "variables": {
                    "ALLOWED_ORIGINS": {
                      "isOptional": false,
                      "description": "CORS allow-list — the frontend's domain. Wired automatically, don't change.",
                      "defaultValue": "https://${{frontend.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. With a key, Claude reads the day's sources and writes calm summaries. Without one, a built-in heuristic editor picks the stories instead — dino works either way."
                    },
                    "ARCHIVE_PERSIST_PATH": {
                      "isOptional": false,
                      "description": "Where the story snapshot lives on the volume, so stories survive redeploys. Don't change.",
                      "defaultValue": "/data/archive.json"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "93bd5074-f766-4cd5-a635-ade348c3704d": {
                      "mountPath": "/data"
                    }
                  }
                },
                "a2094282-4b64-4162-8adb-9c6bafe23423": {
                  "icon": "https://raw.githubusercontent.com/nomideusz/dino/main/public/dino-icon.svg",
                  "name": "frontend",
                  "build": {
                    "dockerfilePath": "Dockerfile.frontend"
                  },
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/dino",
                    "rootDirectory": "/"
                  },
                  "variables": {
                    "VITE_ARCHIVE_URL": {
                      "isOptional": false,
                      "description": "The archive service's public URL, baked in at build time. Wired automatically, don't change.",
                      "defaultValue": "https://${{archive.RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "archive",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T07:20:35.091Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_de156d2829fb43a4aa0e",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 112,
    "typical_build_seconds": 21,
    "typical_start_seconds": 10,
    "slowest_service": "frontend"
  }
}
