{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5b434008-a0f4-4aac-80e9-2d150871b5e4",
    "slug": "instatic-self-hosted-ai-website-builder",
    "name": "Instatic — Self-Hosted AI Website Builder",
    "description": "Self-host a visual CMS with AI page builder & built-in forms. Clean HTML.",
    "url": "https://railway.com/deploy/instatic-self-hosted-ai-website-builder",
    "upstream": {
      "image": "corebunch/instatic"
    }
  },
  "services": [
    {
      "name": "Instatic",
      "source": {
        "image": "corebunch/instatic"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/storage",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Instatic",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "STATIC_DIR",
      "service": "Instatic",
      "description": "Provide a value for STATIC_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/app/dist"
    },
    {
      "key": "UPLOADS_DIR",
      "service": "Instatic",
      "description": "Provide a value for UPLOADS_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/app/storage/uploads"
    },
    {
      "key": "DATABASE_URL",
      "service": "Instatic",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "default",
      "default": "sqlite:/app/storage/data/cms.db"
    },
    {
      "key": "PUBLIC_ORIGIN",
      "service": "Instatic",
      "description": "Provide a value for PUBLIC_ORIGIN.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Instatic",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "INSTATIC_SECRET_KEY",
      "service": "Instatic",
      "description": "Provide a value for INSTATIC_SECRET_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "instatic-self-hosted-ai-website-builder"
      }
    },
    "cli": "railway deploy --template instatic-self-hosted-ai-website-builder",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5b434008-a0f4-4aac-80e9-2d150871b5e4",
            "serializedConfig": {
              "services": {
                "5dcaf8a4-6b09-4889-b88e-bd208099e2c9": {
                  "icon": "https://raw.githubusercontent.com/CoreBunch/Instatic/4a6d4403925db15977e0e5af2a1b8f720f07334a/public/favicon.svg",
                  "name": "Instatic",
                  "source": {
                    "image": "corebunch/instatic"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "8080"
                    },
                    "STATIC_DIR": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "/app/dist"
                    },
                    "UPLOADS_DIR": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "/app/storage/uploads"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "sqlite:/app/storage/data/cms.db"
                    },
                    "PUBLIC_ORIGIN": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "0"
                    },
                    "INSTATIC_SECRET_KEY": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "{{INSTATIC_SECRET_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "5dcaf8a4-6b09-4889-b88e-bd208099e2c9": {
                      "mountPath": "/app/storage"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-20T08:26:11.992Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_0a69d37e666d4eae8f9e",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED"
      }
    ]
  }
}
