{
  "manifest_version": "1.0.0",
  "template": {
    "id": "82391c89-d052-4651-af2d-de2e5e06222d",
    "slug": "mineru",
    "name": "MinerU | Document Parsing API",
    "description": "Self-host MinerU PDF parser with an OpenAI-compatible API",
    "url": "https://railway.com/deploy/mineru",
    "upstream": {
      "repo_url": "https://github.com/praveen-ks-2001/mineru-railway"
    }
  },
  "services": [
    {
      "name": "MinerU",
      "source": {
        "repo": "https://github.com/praveen-ks-2001/mineru-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "MinerU",
      "description": "FastAPI HTTP port",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "HF_HOME",
      "service": "MinerU",
      "description": "HF cache on volume",
      "secret": false,
      "strategy": "default",
      "default": "/data/huggingface"
    },
    {
      "key": "HF_TOKEN",
      "service": "MinerU",
      "description": "optional — gated HF models only",
      "secret": true,
      "strategy": "default",
      "default": "<gated-HF-models-only>"
    },
    {
      "key": "MINERU_MODEL_SOURCE",
      "service": "MinerU",
      "description": "lazy-download from Hugging Face",
      "secret": false,
      "strategy": "default",
      "default": "huggingface"
    },
    {
      "key": "MINERU_DOWNLOAD_ON_BOOT",
      "service": "MinerU",
      "description": "entrypoint pre-downloads pipeline models",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "MINERU_TOOLS_CONFIG_JSON",
      "service": "MinerU",
      "description": "mineru auto-generated config",
      "secret": false,
      "strategy": "default",
      "default": "/data/mineru.json"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "mineru"
      }
    },
    "cli": "railway deploy --template mineru",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "82391c89-d052-4651-af2d-de2e5e06222d",
            "serializedConfig": {
              "services": {
                "d31fecfe-fd9a-4b93-9abd-7322213cf8e3": {
                  "icon": "https://res.cloudinary.com/asset-cloudinary/image/upload/v1778335399/ee590d86-5134-42cf-a700-6b6f05ee943a.png",
                  "name": "MinerU",
                  "source": {
                    "repo": "praveen-ks-2001/mineru-railway",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "description": "FastAPI HTTP port",
                      "defaultValue": "8000"
                    },
                    "HF_HOME": {
                      "description": "HF cache on volume",
                      "defaultValue": "/data/huggingface"
                    },
                    "HF_TOKEN": {
                      "description": "optional — gated HF models only",
                      "defaultValue": "<gated-HF-models-only>"
                    },
                    "MINERU_MODEL_SOURCE": {
                      "description": "lazy-download from Hugging Face",
                      "defaultValue": "huggingface"
                    },
                    "MINERU_DOWNLOAD_ON_BOOT": {
                      "description": "entrypoint pre-downloads pipeline models",
                      "defaultValue": "1"
                    },
                    "MINERU_TOOLS_CONFIG_JSON": {
                      "description": "mineru auto-generated config",
                      "defaultValue": "/data/mineru.json"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8000": {
                        "port": 8000
                      }
                    }
                  },
                  "volumeMounts": {
                    "d31fecfe-fd9a-4b93-9abd-7322213cf8e3": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T12:27:32.265Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_48f935f8b4834efdb054",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 351,
    "typical_build_seconds": 255,
    "typical_start_seconds": 51,
    "slowest_service": "MinerU"
  }
}
