{
  "manifest_version": "1.0.0",
  "template": {
    "id": "fb25052a-4a46-4418-b6cf-3253f125ba3c",
    "slug": "typesense-rag",
    "name": "Typesense RAG",
    "description": "RAG retrieval on a Typesense index",
    "url": "https://railway.com/deploy/typesense-rag",
    "upstream": {
      "repo_url": "https://github.com/Shinyduo/typesense-railway"
    }
  },
  "services": [
    {
      "name": "typesense-railway",
      "source": {
        "repo": "https://github.com/Shinyduo/typesense-railway"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "typesense-railway",
      "description": "PORT",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "TYPESENSE_URL",
      "service": "typesense-railway",
      "description": "TYPESENSE_URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TYPESENSE_API_KEY",
      "service": "typesense-railway",
      "description": "TYPESENSE_API_KEY",
      "secret": true,
      "strategy": "default",
      "default": "82n8y7slc32p64tnaij71h23ao52n9mp"
    },
    {
      "key": "TYPESENSE_DATA_DIR",
      "service": "typesense-railway",
      "description": "TYPESENSE_DATA_DIR",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TYPESENSE_PUBLIC_URL",
      "service": "typesense-railway",
      "description": "TYPESENSE_PUBLIC_URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "TYPESENSE_THREAD_POOL_SIZE",
      "service": "typesense-railway",
      "description": "TYPESENSE_THREAD_POOL_SIZE",
      "secret": false,
      "strategy": "default",
      "default": "64"
    },
    {
      "key": "TYPESENSE_NUM_COLLECTIONS_PARALLEL_LOAD",
      "service": "typesense-railway",
      "description": "TYPESENSE_NUM_COLLECTIONS_PARALLEL_LOAD",
      "secret": false,
      "strategy": "default",
      "default": "32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "typesense-rag"
      }
    },
    "cli": "railway deploy --template typesense-rag",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "fb25052a-4a46-4418-b6cf-3253f125ba3c",
            "serializedConfig": {
              "services": {
                "655b2fac-ccd4-4b4f-92a0-7fb8f2ce7b0c": {
                  "name": "typesense-railway",
                  "source": {
                    "repo": "Shinyduo/typesense-railway"
                  },
                  "variables": {
                    "PORT": {
                      "description": "PORT",
                      "defaultValue": "8080"
                    },
                    "TYPESENSE_URL": {
                      "description": "TYPESENSE_URL",
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:${{PORT}}"
                    },
                    "TYPESENSE_API_KEY": {
                      "description": "TYPESENSE_API_KEY",
                      "defaultValue": "82n8y7slc32p64tnaij71h23ao52n9mp"
                    },
                    "TYPESENSE_DATA_DIR": {
                      "description": "TYPESENSE_DATA_DIR",
                      "defaultValue": "${{RAILWAY_VOLUME_MOUNT_PATH}}"
                    },
                    "TYPESENSE_PUBLIC_URL": {
                      "description": "TYPESENSE_PUBLIC_URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "TYPESENSE_THREAD_POOL_SIZE": {
                      "description": "TYPESENSE_THREAD_POOL_SIZE",
                      "defaultValue": "64"
                    },
                    "TYPESENSE_NUM_COLLECTIONS_PARALLEL_LOAD": {
                      "description": "TYPESENSE_NUM_COLLECTIONS_PARALLEL_LOAD",
                      "defaultValue": "32"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-06T11:54:17.289Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-06T11:57:39.543Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_38454f4435ea437ca652",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": false,
        "detail": "1 service(s) crashed within 30s"
      }
    ]
  }
}
