{
  "manifest_version": "1.0.0",
  "template": {
    "id": "36292589-03d7-4bf8-9594-969055328fae",
    "slug": "tophbase",
    "name": "tophbase",
    "description": "Supabase-compatible backend. No CLI, no Docker. Iterate MVP ideas faster",
    "url": "https://railway.com/deploy/tophbase",
    "upstream": {
      "repo_url": "https://github.com/avocadocutter/toph-base"
    }
  },
  "services": [
    {
      "name": "toph-base",
      "source": {
        "repo": "https://github.com/avocadocutter/toph-base"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/.tophbase",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "TOPHBASE_HOST",
      "service": "toph-base",
      "description": "Provide a value for TOPHBASE_HOST.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "tophbase"
      }
    },
    "cli": "railway deploy --template tophbase",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "36292589-03d7-4bf8-9594-969055328fae",
            "serializedConfig": {
              "services": {
                "e93a96a8-d135-4fb3-b42e-ffa3579b472f": {
                  "name": "toph-base",
                  "deploy": {
                    "startCommand": "node apps/orchestrator/dist/cli/tophbase.js freshman --port $PORT --migrations-dir /app/migrations"
                  },
                  "source": {
                    "repo": "avocadocutter/toph-base",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "TOPHBASE_HOST": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "0.0.0.0"
                    }
                  },
                  "volumeMounts": {
                    "e93a96a8-d135-4fb3-b42e-ffa3579b472f": {
                      "mountPath": "/app/.tophbase"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T03:18:06.100Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_23aa35f4325a4249beb6",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 105,
    "typical_build_seconds": 61,
    "typical_start_seconds": 10,
    "slowest_service": "toph-base"
  }
}
