{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f61b6f51-810a-468f-829f-c7de7ea65323",
    "slug": "typelens-typesense-dashboard",
    "name": "typelens (typesense + Dashboard)",
    "description": "Deploys typesense and typelens, an open source typesense Dashboard UI",
    "url": "https://railway.com/deploy/typelens-typesense-dashboard",
    "upstream": {
      "repo_url": "https://github.com/copperline-ai/typesense-railway"
    }
  },
  "services": [
    {
      "name": "typesense",
      "source": {
        "repo": "https://github.com/copperline-ai/typesense-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "typelens",
      "source": {
        "image": "ghcr.io/copperline-ai/typelens:latest"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "typesense",
      "description": "The port typesense runs through",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "TYPESENSE_URL",
      "service": "typesense",
      "description": "The internal typesense URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TYPESENSE_API_KEY",
      "service": "typesense",
      "description": "The admin API key for typesense",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TYPESENSE_DATA_DIR",
      "service": "typesense",
      "description": "The volume mount path",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TYPESENSE_PUBLIC_URL",
      "service": "typesense",
      "description": "The public URL for typesense",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "TYPESENSE_THREAD_POOL_SIZE",
      "service": "typesense",
      "description": "Number of threads used for handling concurrent requests",
      "secret": false,
      "strategy": "default",
      "default": "64"
    },
    {
      "key": "TYPESENSE_NUM_COLLECTIONS_PARALLEL_LOAD",
      "service": "typesense",
      "description": "Number of collections that are loaded in parallel during start up",
      "secret": false,
      "strategy": "default",
      "default": "32"
    },
    {
      "key": "AUTH_PASSWORD",
      "service": "typelens",
      "description": "Set a basic authentication password (optional)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "AUTH_USERNAME",
      "service": "typelens",
      "description": "Set a basic authentication username (optional)",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "TYPESENSE_HOST",
      "service": "typelens",
      "description": "The typesense internal address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TYPESENSE_PORT",
      "service": "typelens",
      "description": "The typesense api port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TYPESENSE_API_KEY",
      "service": "typelens",
      "description": "The typesense api key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TYPESENSE_PROTOCOL",
      "service": "typelens",
      "description": "The typesense api protocol (http or https)",
      "secret": false,
      "strategy": "default",
      "default": "http"
    },
    {
      "key": "TYPESENSE_SERVER_NAME",
      "service": "typelens",
      "description": "The name/label for the typesense server",
      "secret": false,
      "strategy": "default",
      "default": "Typesense"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "typelens-typesense-dashboard"
      }
    },
    "cli": "railway deploy --template typelens-typesense-dashboard",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f61b6f51-810a-468f-829f-c7de7ea65323",
            "serializedConfig": {
              "services": {
                "561ecc30-92f0-4f3f-97fb-94fe380d5bb2": {
                  "icon": "https://i.imgur.com/YBp1qKR.png",
                  "name": "typesense",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "repo": "copperline-ai/typesense-railway",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "description": "The port typesense runs through",
                      "defaultValue": "8080"
                    },
                    "TYPESENSE_URL": {
                      "description": "The internal typesense URL",
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:${{PORT}}"
                    },
                    "TYPESENSE_API_KEY": {
                      "description": "The admin API key for typesense",
                      "defaultValue": "{{TYPESENSE_API_KEY}}"
                    },
                    "TYPESENSE_DATA_DIR": {
                      "description": "The volume mount path",
                      "defaultValue": "${{RAILWAY_VOLUME_MOUNT_PATH}}"
                    },
                    "TYPESENSE_PUBLIC_URL": {
                      "description": "The public URL for typesense",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "TYPESENSE_THREAD_POOL_SIZE": {
                      "description": "Number of threads used for handling concurrent requests",
                      "defaultValue": "64"
                    },
                    "TYPESENSE_NUM_COLLECTIONS_PARALLEL_LOAD": {
                      "description": "Number of collections that are loaded in parallel during start up",
                      "defaultValue": "32"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "561ecc30-92f0-4f3f-97fb-94fe380d5bb2": {
                      "mountPath": "/data"
                    }
                  }
                },
                "d5f81abd-c249-4f99-90be-b7a122fab4bb": {
                  "icon": "https://i.imgur.com/uIiO5mo.png",
                  "name": "typelens",
                  "deploy": {
                    "healthcheckPath": "/api/healthz"
                  },
                  "source": {
                    "image": "ghcr.io/copperline-ai/typelens:latest"
                  },
                  "variables": {
                    "AUTH_PASSWORD": {
                      "isOptional": true,
                      "description": "Set a basic authentication password (optional)",
                      "defaultValue": "{{AUTH_PASSWORD}}"
                    },
                    "AUTH_USERNAME": {
                      "isOptional": true,
                      "description": "Set a basic authentication username (optional)",
                      "defaultValue": "admin"
                    },
                    "TYPESENSE_HOST": {
                      "isOptional": false,
                      "description": "The typesense internal address",
                      "defaultValue": "${{typesense.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "TYPESENSE_PORT": {
                      "isOptional": false,
                      "description": "The typesense api port",
                      "defaultValue": "${{typesense.PORT}}"
                    },
                    "TYPESENSE_API_KEY": {
                      "isOptional": false,
                      "description": "The typesense api key",
                      "defaultValue": "${{typesense.TYPESENSE_API_KEY}}"
                    },
                    "TYPESENSE_PROTOCOL": {
                      "description": "The typesense api protocol (http or https)",
                      "defaultValue": "http"
                    },
                    "TYPESENSE_SERVER_NAME": {
                      "description": "The name/label for the typesense server",
                      "defaultValue": "Typesense"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "typesense",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T06:16:29.259Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_7c70c0d8238b4138a824",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 143,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "typelens"
  }
}
