{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6b784ebc-675b-4bd6-b20b-75057c051e27",
    "slug": "sqlite-hub",
    "name": "SQLite Hub",
    "description": "A centralized SQLite storage service for internal Railway workloads.",
    "url": "https://railway.com/deploy/sqlite-hub",
    "upstream": {
      "image": "ghcr.io/mesahub-db/mesahub-core:latest"
    }
  },
  "services": [
    {
      "name": "SQLite Hub",
      "source": {
        "image": "ghcr.io/mesahub-db/mesahub-core:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "ADMIN_TOKEN",
      "service": "SQLite Hub",
      "description": "Admin Token",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SESSION_SECRET",
      "service": "SQLite Hub",
      "description": "Secret Session Key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CORS_ALLOWED_ORIGINS",
      "service": "SQLite Hub",
      "description": "CORS allowed origins for cross-origin browser integrations.",
      "secret": false,
      "strategy": "default",
      "default": "*"
    },
    {
      "key": "FILE_TOKEN_SIGNING_SECRET",
      "service": "SQLite Hub",
      "description": "File Token Signing Key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "sqlite-hub"
      }
    },
    "cli": "railway deploy --template sqlite-hub",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6b784ebc-675b-4bd6-b20b-75057c051e27",
            "serializedConfig": {
              "services": {
                "a729e6b4-bfc9-4e25-a411-dab924d4e382": {
                  "icon": "https://raw.githubusercontent.com/0xdps/mesahub-core/refs/heads/trunk/admin/public/logo.svg",
                  "name": "SQLite Hub",
                  "deploy": {
                    "healthcheckPath": "/api/health"
                  },
                  "source": {
                    "image": "ghcr.io/mesahub-db/mesahub-core:latest",
                    "autoUpdates": {
                      "type": "patch",
                      "schedule": [
                        {
                          "day": 0,
                          "endHour": 24,
                          "startHour": 0
                        },
                        {
                          "day": 1,
                          "endHour": 24,
                          "startHour": 0
                        },
                        {
                          "day": 2,
                          "endHour": 24,
                          "startHour": 0
                        },
                        {
                          "day": 3,
                          "endHour": 24,
                          "startHour": 0
                        },
                        {
                          "day": 4,
                          "endHour": 24,
                          "startHour": 0
                        },
                        {
                          "day": 5,
                          "endHour": 24,
                          "startHour": 0
                        },
                        {
                          "day": 6,
                          "endHour": 24,
                          "startHour": 0
                        }
                      ]
                    }
                  },
                  "variables": {
                    "ADMIN_TOKEN": {
                      "isOptional": false,
                      "description": "Admin Token",
                      "defaultValue": "{{ADMIN_TOKEN}}"
                    },
                    "SESSION_SECRET": {
                      "isOptional": false,
                      "description": "Secret Session Key",
                      "defaultValue": "{{SESSION_SECRET}}"
                    },
                    "CORS_ALLOWED_ORIGINS": {
                      "isOptional": false,
                      "description": "CORS allowed origins for cross-origin browser integrations.",
                      "defaultValue": "*"
                    },
                    "FILE_TOKEN_SIGNING_SECRET": {
                      "isOptional": false,
                      "description": "File Token Signing Key",
                      "defaultValue": "{{FILE_TOKEN_SIGNING_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "a729e6b4-bfc9-4e25-a411-dab924d4e382": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "SQLite Hub",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "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-18T10:21:09.532Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_da77623c0ac547579908",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 50,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "SQLite Hub"
  }
}
