{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c085ee6c-2248-4257-a4f3-2b25500cd4cf",
    "slug": "ziwei-doushu",
    "name": "Zi Wei Dou Shu 紫微斗数 | Purple Star Astrology with AI Readings",
    "description": "Zi Wei Dou Shu (紫微斗数) charts, classics and AI readings",
    "url": "https://railway.com/deploy/ziwei-doushu",
    "upstream": {
      "image": "ghcr.io/two-workspaces/ziwei-doushu:af234f3"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "ziwei-doushu",
      "source": {
        "image": "ghcr.io/two-workspaces/ziwei-doushu:af234f3"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "ziwei-doushu",
      "description": "Port the site listens on. Leave as is.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "AI_MODEL",
      "service": "ziwei-doushu",
      "description": "Model name at that API, e.g. gpt-5-mini on OpenAI or deepseek/deepseek-v4-flash on OpenRouter",
      "secret": false,
      "strategy": "default",
      "default": "deepseek-flash"
    },
    {
      "key": "AI_BASE_URL",
      "service": "ziwei-doushu",
      "description": "OpenAI-compatible API base URL. OpenAI: https://api.openai.com/v1, OpenRouter: https://openrouter.ai/api/v1",
      "secret": false,
      "strategy": "default",
      "default": "https://api.deepseek.com"
    },
    {
      "key": "AI_REQUESTS_PER_HOUR",
      "service": "ziwei-doushu",
      "description": "AI requests allowed per visitor IP per hour, so a public site can't drain your key. 0 = no limit",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ziwei-doushu"
      }
    },
    "cli": "railway deploy --template ziwei-doushu",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c085ee6c-2248-4257-a4f3-2b25500cd4cf",
            "serializedConfig": {
              "services": {
                "3a4d83bf-f2f6-49f3-992a-98bd4e8bf5ea": {
                  "icon": "https://raw.githubusercontent.com/two-workspaces/ziwei-doushu/main/icon.svg",
                  "name": "ziwei-doushu",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/two-workspaces/ziwei-doushu:af234f3"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the site listens on. Leave as is.",
                      "defaultValue": "3000"
                    },
                    "AI_MODEL": {
                      "isOptional": false,
                      "description": "Model name at that API, e.g. gpt-5-mini on OpenAI or deepseek/deepseek-v4-flash on OpenRouter",
                      "defaultValue": "deepseek-flash"
                    },
                    "AI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. An OpenAI-compatible API key (DeepSeek by default) turns on AI readings. Empty = charts only.",
                      "defaultValue": ""
                    },
                    "AI_BASE_URL": {
                      "isOptional": false,
                      "description": "OpenAI-compatible API base URL. OpenAI: https://api.openai.com/v1, OpenRouter: https://openrouter.ai/api/v1",
                      "defaultValue": "https://api.deepseek.com"
                    },
                    "AI_REQUESTS_PER_HOUR": {
                      "isOptional": false,
                      "description": "AI requests allowed per visitor IP per hour, so a public site can't drain your key. 0 = no limit",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "ziwei-doushu",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-11-07T16:15:10.050Z",
  "generator_version": "0.1.0"
}
