{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d41869e2-ae67-4264-8cb8-f04b4333904f",
    "slug": "moli",
    "name": "Moli | Headless Browser for AI Agents (CDP, WebDriver, Playwright)",
    "description": "Rust headless browser for AI agents: CDP, WebDriver, Playwright, ~30 MB",
    "url": "https://railway.com/deploy/moli",
    "upstream": {
      "repo_url": "https://github.com/nomideusz/moli-railway"
    }
  },
  "services": [
    {
      "name": "moli",
      "source": {
        "repo": "https://github.com/nomideusz/moli-railway"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "moli",
      "description": "Port of the token gate behind the Railway domain - leave as is.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "MOLI_ARGS",
      "service": "moli",
      "description": "Extra flags for moli serve. --layout enables screenshots and coordinate clicks; add --resource to also load images, fonts and media, or --http-proxy <url> to route traffic through a proxy.",
      "secret": false,
      "strategy": "default",
      "default": "--layout"
    },
    {
      "key": "MOLI_TOKEN",
      "service": "moli",
      "description": "Access token. Send it as Authorization: Bearer <token>, as ?token=<token> in the URL, or as the password for user moli (WebDriver). Without it every request gets 401.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "moli"
      }
    },
    "cli": "railway deploy --template moli",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d41869e2-ae67-4264-8cb8-f04b4333904f",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "523ae091-91ac-481d-86c9-cb5064a769b7": {
                  "icon": "https://raw.githubusercontent.com/nomideusz/moli-railway/main/icon.png",
                  "name": "moli",
                  "build": {
                    "dockerfilePath": "Dockerfile"
                  },
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/moli-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port of the token gate behind the Railway domain - leave as is.",
                      "defaultValue": "8080"
                    },
                    "MOLI_ARGS": {
                      "isOptional": true,
                      "description": "Extra flags for moli serve. --layout enables screenshots and coordinate clicks; add --resource to also load images, fonts and media, or --http-proxy <url> to route traffic through a proxy.",
                      "defaultValue": "--layout"
                    },
                    "MOLI_TOKEN": {
                      "isOptional": false,
                      "description": "Access token. Send it as Authorization: Bearer <token>, as ?token=<token> in the URL, or as the password for user moli (WebDriver). Without it every request gets 401.",
                      "defaultValue": "{{MOLI_TOKEN}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "moli",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-10-16T16:14:45.804Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-16T14:49:43.134Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_51327a1cb11f47a19fad",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 88,
    "typical_build_seconds": 61,
    "typical_start_seconds": 10,
    "slowest_service": "moli"
  }
}
