{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5dc4611e-c1f4-425c-b6f9-c7e6b10e7422",
    "slug": "mermaid-api",
    "name": "Mermaid API",
    "description": "Render Mermaid diagrams-as-code to PNG and SVG over a simple HTTP API",
    "url": "https://railway.com/deploy/mermaid-api",
    "upstream": {
      "repo_url": "https://github.com/INAPP-Mobile/mermaid-api"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "mermaid-api",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/mermaid-api"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MAX_CONCURRENT",
      "service": "mermaid-api",
      "description": "Maximum concurrent Chromium browser instances for rendering diagrams",
      "secret": false,
      "strategy": "default",
      "default": "4"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "mermaid-api"
      }
    },
    "cli": "railway deploy --template mermaid-api",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5dc4611e-c1f4-425c-b6f9-c7e6b10e7422",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "b63cb3e6-6931-4a85-bb85-4af6a20a791a": {
                  "icon": null,
                  "name": "mermaid-api",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/mermaid-api",
                    "rootDirectory": null
                  },
                  "variables": {
                    "MAX_CONCURRENT": {
                      "isOptional": true,
                      "description": "Maximum concurrent Chromium browser instances for rendering diagrams",
                      "defaultValue": "4"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-08T11:54:27.954Z",
  "generator_version": "0.1.0"
}
