{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4724145a-1e6c-44c2-88a6-bc5bb272740c",
    "slug": "typesense-instant-elasticsearch-alternat",
    "name": "Typesense – Instant Elasticsearch Alternative",
    "description": "Typesense [Meilisearch/Algolia/Elasticsearch Alternative], Self Host",
    "url": "https://railway.com/deploy/typesense-instant-elasticsearch-alternat",
    "upstream": {
      "repo_url": "https://github.com/sahilrupani/typesense-railway-template"
    }
  },
  "services": [
    {
      "name": "typesense-railway-template",
      "source": {
        "repo": "https://github.com/sahilrupani/typesense-railway-template"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "typesense-railway-template",
      "description": "Private Port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "TYPESENSE_URL",
      "service": "typesense-railway-template",
      "description": "Private URL to access Typesense",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TYPESENSE_API_KEY",
      "service": "typesense-railway-template",
      "description": "Secret API Key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TYPESENSE_DATA_DIR",
      "service": "typesense-railway-template",
      "description": "The location to store persistent data",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TYPESENSE_PUBLIC_URL",
      "service": "typesense-railway-template",
      "description": "Public URL to access Typesense",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "TYPESENSE_THREAD_POOL_SIZE",
      "service": "typesense-railway-template",
      "description": "Set this value according to your plan.Recommended max values: Trial = 8, Hobby = 64, Pro = 200 (Absolute Max)",
      "secret": false,
      "strategy": "default",
      "default": "64"
    },
    {
      "key": "TYPESENSE_NUM_COLLECTIONS_PARALLEL_LOAD",
      "service": "typesense-railway-template",
      "description": "Set this value according to your plan.Recommended max values: Trial = 4, Hobby = 32, Pro = 128 (Absolute Max)",
      "secret": false,
      "strategy": "default",
      "default": "32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "typesense-instant-elasticsearch-alternat"
      }
    },
    "cli": "railway deploy --template typesense-instant-elasticsearch-alternat",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4724145a-1e6c-44c2-88a6-bc5bb272740c",
            "serializedConfig": {
              "services": {
                "f73ac86b-3967-4ff4-8313-aa1323e12d72": {
                  "name": "typesense-railway-template",
                  "source": {
                    "repo": "sahilrupani/typesense-railway-template",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Private Port",
                      "defaultValue": "8080"
                    },
                    "TYPESENSE_URL": {
                      "isOptional": false,
                      "description": "Private URL to access Typesense",
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:${{PORT}}"
                    },
                    "TYPESENSE_API_KEY": {
                      "isOptional": false,
                      "description": "Secret API Key",
                      "defaultValue": "{{TYPESENSE_API_KEY}}"
                    },
                    "TYPESENSE_DATA_DIR": {
                      "isOptional": false,
                      "description": "The location to store persistent data",
                      "defaultValue": "${{RAILWAY_VOLUME_MOUNT_PATH}}"
                    },
                    "TYPESENSE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public URL to access Typesense",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "TYPESENSE_THREAD_POOL_SIZE": {
                      "isOptional": false,
                      "description": "Set this value according to your plan.Recommended max values: Trial = 8, Hobby = 64, Pro = 200 (Absolute Max)",
                      "defaultValue": "64"
                    },
                    "TYPESENSE_NUM_COLLECTIONS_PARALLEL_LOAD": {
                      "isOptional": false,
                      "description": "Set this value according to your plan.Recommended max values: Trial = 4, Hobby = 32, Pro = 128 (Absolute Max)",
                      "defaultValue": "32"
                    }
                  },
                  "volumeMounts": {
                    "f73ac86b-3967-4ff4-8313-aa1323e12d72": {
                      "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-20T19:48:44.615Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_24d642f169ec41bbbb88",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 96,
    "typical_build_seconds": 27,
    "typical_start_seconds": 10,
    "slowest_service": "typesense-railway-template"
  }
}
