{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c0f6b1ae-aecf-4a3d-abe0-e1eaa753526c",
    "slug": "hydradb-v03-graph-database-on-object-sto",
    "name": "HydraDB v0.3 Graph Database on Object Storage",
    "description": "Cypher graph database that keeps its data in S3-compatible object storage.",
    "url": "https://railway.com/deploy/hydradb-v03-graph-database-on-object-sto",
    "upstream": {
      "repo_url": "https://github.com/baranberkay96/hydradb-railway"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "HydraDB Indexer",
      "source": {
        "repo": "https://github.com/baranberkay96/hydradb-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "HydraDB",
      "source": {
        "repo": "https://github.com/baranberkay96/hydradb-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/cache/slatedb",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "HydraDB Indexer",
      "description": "Indexer admin port. Railway's healthcheck GETs /readyz here.",
      "secret": false,
      "strategy": "default",
      "default": "9091"
    },
    {
      "key": "GRAPH_ID",
      "service": "HydraDB Indexer",
      "description": "Same graph id as the node.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RUST_LOG",
      "service": "HydraDB Indexer",
      "description": "Log filter (JSON logs).",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "AWS_REGION",
      "service": "HydraDB Indexer",
      "description": "Same region as the node.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GRAPH_CELLS",
      "service": "HydraDB Indexer",
      "description": "Same cells as the node.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HYDRADB_ROLE",
      "service": "HydraDB Indexer",
      "description": "Program this service runs: indexer = graph-indexer (builds traversal indexes; admin 9091).",
      "secret": false,
      "strategy": "default",
      "default": "indexer"
    },
    {
      "key": "CLOUD_PROVIDER",
      "service": "HydraDB Indexer",
      "description": "Same object store as the node.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_BUCKET_NAME",
      "service": "HydraDB Indexer",
      "description": "Same bucket as the node.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GRAPH_DATA_PATH",
      "service": "HydraDB Indexer",
      "description": "Same data prefix as the node.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GRAPH_NAMESPACE",
      "service": "HydraDB Indexer",
      "description": "Same namespace as the node.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "HydraDB Indexer",
      "description": "Same bucket access key as the node.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HYDRADB_CPU_LIMIT",
      "service": "HydraDB Indexer",
      "description": "Cores for thread pools. auto = the container CPU quota (else nproc), capped at 8; or a number.",
      "secret": false,
      "strategy": "default",
      "default": "auto"
    },
    {
      "key": "GRAPHBLAS_NTHREADS",
      "service": "HydraDB Indexer",
      "description": "SuiteSparse GraphBLAS threads. auto = HYDRADB_CPU_LIMIT's core count.",
      "secret": false,
      "strategy": "default",
      "default": "auto"
    },
    {
      "key": "HYDRADB_AUTH_TOKEN",
      "service": "HydraDB Indexer",
      "description": "The node's token. The indexer accepts change notifications only with it.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HYDRADB_S3_ENDPOINT",
      "service": "HydraDB Indexer",
      "description": "Same S3 endpoint as the node.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TOKIO_WORKER_THREADS",
      "service": "HydraDB Indexer",
      "description": "Async runtime worker threads. auto = the core count, at least 2.",
      "secret": false,
      "strategy": "default",
      "default": "auto"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "HydraDB Indexer",
      "description": "Same bucket secret key as the node.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HYDRADB_S3_ADDRESSING",
      "service": "HydraDB Indexer",
      "description": "Same addressing style as the node.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HYDRADB_MEMORY_LIMIT_MB",
      "service": "HydraDB Indexer",
      "description": "Memory budget for the auto sizes. auto = the container limit (2 GiB if none is visible); or MiB.",
      "secret": false,
      "strategy": "default",
      "default": "auto"
    },
    {
      "key": "GRAPH_INDEXER_BUILD_MODE",
      "service": "HydraDB Indexer",
      "description": "full rebuilds each index generation (upstream default); incremental reuses the previous one.",
      "secret": false,
      "strategy": "default",
      "default": "full"
    },
    {
      "key": "GRAPH_INDEXER_INTERVAL_MS",
      "service": "HydraDB Indexer",
      "description": "Full sweep interval over all graph scopes (upstream default).",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "GRAPH_SLATE_DB_CACHE_BYTES",
      "service": "HydraDB Indexer",
      "description": "SlateDB RAM cache. auto = 5/16 of the memory budget, 64 MiB to 2 GiB; or bytes.",
      "secret": false,
      "strategy": "default",
      "default": "auto"
    },
    {
      "key": "GRAPH_INDEXER_RETAIN_PREVIOUS",
      "service": "HydraDB Indexer",
      "description": "Older index generations kept in the Bucket for readers still using them.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "HydraDB Indexer",
      "description": "Seconds between SIGTERM and SIGKILL, so an index build can stop cleanly.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "GRAPH_INDEXER_DIRTY_POLL_INTERVAL_MS",
      "service": "HydraDB Indexer",
      "description": "Poll for changed graphs (50-60000). 1000 instead of upstream's 250: the node already wakes the indexer.",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "PORT",
      "service": "HydraDB",
      "description": "Admin port. Railway's healthcheck GETs /readyz here; ready once the Bucket passes the write probe.",
      "secret": false,
      "strategy": "default",
      "default": "9090"
    },
    {
      "key": "GRAPH_ID",
      "service": "HydraDB",
      "description": "Graph id, used in the HTTP path /v1/graphs/{id}/query.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "RUST_LOG",
      "service": "HydraDB",
      "description": "Log filter (JSON logs). e.g. info,hydradb=debug for more detail.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "NEO4J_URI",
      "service": "HydraDB",
      "description": "Same as HYDRADB_BOLT_URL, under the name Neo4j-driver apps usually read.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_REGION",
      "service": "HydraDB",
      "description": "Bucket region used to sign S3 requests.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GRAPH_CELLS",
      "service": "HydraDB",
      "description": "All cells of the graph, comma-separated. Must contain GRAPH_CELL_ID.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HYDRADB_TLS",
      "service": "HydraDB",
      "description": "off = plaintext behind Railway's HTTPS edge. self-signed = TLS on Bolt and HTTP (breaks the public domain).",
      "secret": false,
      "strategy": "default",
      "default": "off"
    },
    {
      "key": "HYDRADB_URL",
      "service": "HydraDB",
      "description": "HTTP query API base URL on the private network. Reference it as ${{HydraDB.HYDRADB_URL}}.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "HYDRADB_HOST",
      "service": "HydraDB",
      "description": "Private host name for clients that take host and port separately.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "HYDRADB_ROLE",
      "service": "HydraDB",
      "description": "Program this service runs: node = graph-node (Bolt 7687, HTTP query API 8443, admin 9090).",
      "secret": false,
      "strategy": "default",
      "default": "node"
    },
    {
      "key": "GRAPH_CELL_ID",
      "service": "HydraDB",
      "description": "Partition (cell) this node owns. Every HTTP query must send it as cell_id.",
      "secret": false,
      "strategy": "default",
      "default": "cell-0"
    },
    {
      "key": "GRAPH_NODE_ID",
      "service": "HydraDB",
      "description": "Stable node id used for heartbeats, writer leases and Bolt routing tables.",
      "secret": false,
      "strategy": "default",
      "default": "hydradb-0"
    },
    {
      "key": "CLOUD_PROVIDER",
      "service": "HydraDB",
      "description": "Object store type read by SlateDB. aws = any S3-compatible store, here the Railway Bucket.",
      "secret": false,
      "strategy": "default",
      "default": "aws"
    },
    {
      "key": "GRAPH_DATABASE",
      "service": "HydraDB",
      "description": "Bolt database name: pass it as the session database in Neo4j drivers.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "NEO4J_DATABASE",
      "service": "HydraDB",
      "description": "Bolt session database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEO4J_PASSWORD",
      "service": "HydraDB",
      "description": "Bolt password = the bearer token.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEO4J_USERNAME",
      "service": "HydraDB",
      "description": "Bolt user name. HydraDB ignores it; any value works.",
      "secret": false,
      "strategy": "default",
      "default": "neo4j"
    },
    {
      "key": "AWS_BUCKET_NAME",
      "service": "HydraDB",
      "description": "Bucket that holds the graph (records, WALs, leases, indexes). The source of truth for all data.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GRAPH_DATA_PATH",
      "service": "HydraDB",
      "description": "Prefix inside the Bucket for all HydraDB objects. Do not change after the first write.",
      "secret": false,
      "strategy": "default",
      "default": "hydradb"
    },
    {
      "key": "GRAPH_NAMESPACE",
      "service": "HydraDB",
      "description": "Namespace of the graph. With 'default' the X-Graph-Namespace HTTP header is optional.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "HYDRADB_BOLT_URL",
      "service": "HydraDB",
      "description": "Bolt URL for Neo4j drivers on the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "HydraDB",
      "description": "Bucket access key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HYDRADB_CPU_LIMIT",
      "service": "HydraDB",
      "description": "Cores for thread pools. auto = the container CPU quota (else nproc), capped at 8; or a number.",
      "secret": false,
      "strategy": "default",
      "default": "auto"
    },
    {
      "key": "HYDRADB_QUERY_URL",
      "service": "HydraDB",
      "description": "POST endpoint for queries (JSON body with cell_id and query; bearer token).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GRAPHBLAS_NTHREADS",
      "service": "HydraDB",
      "description": "SuiteSparse GraphBLAS threads. auto = HYDRADB_CPU_LIMIT's core count.",
      "secret": false,
      "strategy": "default",
      "default": "auto"
    },
    {
      "key": "HYDRADB_AUTH_TOKEN",
      "service": "HydraDB",
      "description": "Bearer token for the HTTP API and the Bolt password (any user name). 32+ chars of A-Z a-z 0-9 . _ ~ -.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "HYDRADB_PUBLIC_URL",
      "service": "HydraDB",
      "description": "HTTPS query API on the public domain (token required). Egress-billed; prefer the private URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "GRAPH_CYPHER_ENGINE",
      "service": "HydraDB",
      "description": "legacy = the documented OpenCypher subset. experimental = upstream's newer engine (not for production).",
      "secret": false,
      "strategy": "default",
      "default": "legacy"
    },
    {
      "key": "HYDRADB_CACHE_RESET",
      "service": "HydraDB",
      "description": "true empties the disk cache at every start. Use once after emptying or replacing the Bucket's data.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "HYDRADB_METRICS_URL",
      "service": "HydraDB",
      "description": "Prometheus scrape URL on the private network (no auth, never public).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "HYDRADB_S3_ENDPOINT",
      "service": "HydraDB",
      "description": "S3 endpoint without the bucket name. The start script derives AWS_ENDPOINT from it.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TOKIO_WORKER_THREADS",
      "service": "HydraDB",
      "description": "Async runtime worker threads. auto = the core count, at least 2.",
      "secret": false,
      "strategy": "default",
      "default": "auto"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "HydraDB",
      "description": "Bucket secret key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HYDRADB_S3_ADDRESSING",
      "service": "HydraDB",
      "description": "virtual = https://{bucket}.{endpoint host} (new Railway Buckets); path for older buckets (see Credentials tab).",
      "secret": false,
      "strategy": "default",
      "default": "virtual"
    },
    {
      "key": "GRAPH_DATA_CACHE_BYTES",
      "service": "HydraDB",
      "description": "SlateDB disk cache on the volume. auto = 75% of the volume, 64 MiB to 8 GiB; or a number of bytes.",
      "secret": false,
      "strategy": "default",
      "default": "auto"
    },
    {
      "key": "HYDRADB_MEMORY_LIMIT_MB",
      "service": "HydraDB",
      "description": "Memory budget for the auto sizes. auto = the container limit (2 GiB if none is visible); or MiB.",
      "secret": false,
      "strategy": "default",
      "default": "auto"
    },
    {
      "key": "GRAPH_INDEXER_NOTIFY_URL",
      "service": "HydraDB",
      "description": "Wakes the indexer after writes (sent with the bearer token). Empty = the indexer only polls.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "GRAPH_MAX_GRAPHBLAS_BYTES",
      "service": "HydraDB",
      "description": "Memory for compiled GraphBLAS matrices. auto = 1/16 of the memory budget, 32 to 512 MiB; or bytes.",
      "secret": false,
      "strategy": "default",
      "default": "auto"
    },
    {
      "key": "GRAPH_ADVERTISED_BOLT_ADDR",
      "service": "HydraDB",
      "description": "Bolt address this node puts in routing tables (neo4j:// URIs). Private network by default.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "GRAPH_SLATE_DB_CACHE_BYTES",
      "service": "HydraDB",
      "description": "SlateDB RAM cache. auto = 5/16 of the memory budget, 64 MiB to 2 GiB; or bytes (0 disables it).",
      "secret": false,
      "strategy": "default",
      "default": "auto"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "HydraDB",
      "description": "Seconds between SIGTERM and SIGKILL, so the node drains queries and hands back its writer lease.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "hydradb-v03-graph-database-on-object-sto"
      }
    },
    "cli": "railway deploy --template hydradb-v03-graph-database-on-object-sto",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c0f6b1ae-aecf-4a3d-abe0-e1eaa753526c",
            "serializedConfig": {
              "buckets": {
                "0d9310c0-bf99-51f2-97f7-6d48176da91c": {
                  "name": "Bucket"
                }
              },
              "services": {
                "b8bb1fad-206f-5506-8358-ac2e28a32d15": {
                  "icon": "https://cdn.jsdelivr.net/gh/hydra-db/benchmark@f4598348cb9fe448cda62ab1408381fa1e9863c0/docs/favicon.svg",
                  "name": "HydraDB Indexer",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/readyz",
                    "restartPolicyType": "ALWAYS",
                    "healthcheckTimeout": 300
                  },
                  "source": {
                    "repo": "baranberkay96/hydradb-railway",
                    "branch": "main",
                    "rootDirectory": "/services/hydradb"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Indexer admin port. Railway's healthcheck GETs /readyz here.",
                      "defaultValue": "9091"
                    },
                    "GRAPH_ID": {
                      "isOptional": true,
                      "description": "Same graph id as the node.",
                      "defaultValue": "${{HydraDB.GRAPH_ID}}"
                    },
                    "RUST_LOG": {
                      "isOptional": true,
                      "description": "Log filter (JSON logs).",
                      "defaultValue": "info"
                    },
                    "AWS_REGION": {
                      "isOptional": true,
                      "description": "Same region as the node.",
                      "defaultValue": "${{HydraDB.AWS_REGION}}"
                    },
                    "GRAPH_CELLS": {
                      "isOptional": true,
                      "description": "Same cells as the node.",
                      "defaultValue": "${{HydraDB.GRAPH_CELLS}}"
                    },
                    "HYDRADB_ROLE": {
                      "isOptional": true,
                      "description": "Program this service runs: indexer = graph-indexer (builds traversal indexes; admin 9091).",
                      "defaultValue": "indexer"
                    },
                    "CLOUD_PROVIDER": {
                      "isOptional": true,
                      "description": "Same object store as the node.",
                      "defaultValue": "${{HydraDB.CLOUD_PROVIDER}}"
                    },
                    "AWS_BUCKET_NAME": {
                      "isOptional": true,
                      "description": "Same bucket as the node.",
                      "defaultValue": "${{HydraDB.AWS_BUCKET_NAME}}"
                    },
                    "GRAPH_DATA_PATH": {
                      "isOptional": true,
                      "description": "Same data prefix as the node.",
                      "defaultValue": "${{HydraDB.GRAPH_DATA_PATH}}"
                    },
                    "GRAPH_NAMESPACE": {
                      "isOptional": true,
                      "description": "Same namespace as the node.",
                      "defaultValue": "${{HydraDB.GRAPH_NAMESPACE}}"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": true,
                      "description": "Same bucket access key as the node.",
                      "defaultValue": "${{HydraDB.AWS_ACCESS_KEY_ID}}"
                    },
                    "HYDRADB_CPU_LIMIT": {
                      "isOptional": true,
                      "description": "Cores for thread pools. auto = the container CPU quota (else nproc), capped at 8; or a number.",
                      "defaultValue": "auto"
                    },
                    "GRAPHBLAS_NTHREADS": {
                      "isOptional": true,
                      "description": "SuiteSparse GraphBLAS threads. auto = HYDRADB_CPU_LIMIT's core count.",
                      "defaultValue": "auto"
                    },
                    "HYDRADB_AUTH_TOKEN": {
                      "isOptional": true,
                      "description": "The node's token. The indexer accepts change notifications only with it.",
                      "defaultValue": "${{HydraDB.HYDRADB_AUTH_TOKEN}}"
                    },
                    "HYDRADB_S3_ENDPOINT": {
                      "isOptional": true,
                      "description": "Same S3 endpoint as the node.",
                      "defaultValue": "${{HydraDB.HYDRADB_S3_ENDPOINT}}"
                    },
                    "TOKIO_WORKER_THREADS": {
                      "isOptional": true,
                      "description": "Async runtime worker threads. auto = the core count, at least 2.",
                      "defaultValue": "auto"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": true,
                      "description": "Same bucket secret key as the node.",
                      "defaultValue": "${{HydraDB.AWS_SECRET_ACCESS_KEY}}"
                    },
                    "HYDRADB_S3_ADDRESSING": {
                      "isOptional": true,
                      "description": "Same addressing style as the node.",
                      "defaultValue": "${{HydraDB.HYDRADB_S3_ADDRESSING}}"
                    },
                    "HYDRADB_MEMORY_LIMIT_MB": {
                      "isOptional": true,
                      "description": "Memory budget for the auto sizes. auto = the container limit (2 GiB if none is visible); or MiB.",
                      "defaultValue": "auto"
                    },
                    "GRAPH_INDEXER_BUILD_MODE": {
                      "isOptional": true,
                      "description": "full rebuilds each index generation (upstream default); incremental reuses the previous one.",
                      "defaultValue": "full"
                    },
                    "GRAPH_INDEXER_INTERVAL_MS": {
                      "isOptional": true,
                      "description": "Full sweep interval over all graph scopes (upstream default).",
                      "defaultValue": "5000"
                    },
                    "GRAPH_SLATE_DB_CACHE_BYTES": {
                      "isOptional": true,
                      "description": "SlateDB RAM cache. auto = 5/16 of the memory budget, 64 MiB to 2 GiB; or bytes.",
                      "defaultValue": "auto"
                    },
                    "GRAPH_INDEXER_RETAIN_PREVIOUS": {
                      "isOptional": true,
                      "description": "Older index generations kept in the Bucket for readers still using them.",
                      "defaultValue": "1"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Seconds between SIGTERM and SIGKILL, so an index build can stop cleanly.",
                      "defaultValue": "60"
                    },
                    "GRAPH_INDEXER_DIRTY_POLL_INTERVAL_MS": {
                      "isOptional": true,
                      "description": "Poll for changed graphs (50-60000). 1000 instead of upstream's 250: the node already wakes the indexer.",
                      "defaultValue": "1000"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "ffba4326-36e2-528a-bf35-ff527903eede": {
                  "icon": "https://cdn.jsdelivr.net/gh/hydra-db/benchmark@f4598348cb9fe448cda62ab1408381fa1e9863c0/docs/favicon.svg",
                  "name": "HydraDB",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/readyz",
                    "restartPolicyType": "ALWAYS",
                    "healthcheckTimeout": 300
                  },
                  "source": {
                    "repo": "baranberkay96/hydradb-railway",
                    "branch": "main",
                    "rootDirectory": "/services/hydradb"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Admin port. Railway's healthcheck GETs /readyz here; ready once the Bucket passes the write probe.",
                      "defaultValue": "9090"
                    },
                    "GRAPH_ID": {
                      "isOptional": true,
                      "description": "Graph id, used in the HTTP path /v1/graphs/{id}/query.",
                      "defaultValue": "default"
                    },
                    "RUST_LOG": {
                      "isOptional": true,
                      "description": "Log filter (JSON logs). e.g. info,hydradb=debug for more detail.",
                      "defaultValue": "info"
                    },
                    "NEO4J_URI": {
                      "isOptional": true,
                      "description": "Same as HYDRADB_BOLT_URL, under the name Neo4j-driver apps usually read.",
                      "defaultValue": "${{HYDRADB_BOLT_URL}}"
                    },
                    "AWS_REGION": {
                      "isOptional": true,
                      "description": "Bucket region used to sign S3 requests.",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "GRAPH_CELLS": {
                      "isOptional": true,
                      "description": "All cells of the graph, comma-separated. Must contain GRAPH_CELL_ID.",
                      "defaultValue": "${{GRAPH_CELL_ID}}"
                    },
                    "HYDRADB_TLS": {
                      "isOptional": true,
                      "description": "off = plaintext behind Railway's HTTPS edge. self-signed = TLS on Bolt and HTTP (breaks the public domain).",
                      "defaultValue": "off"
                    },
                    "HYDRADB_URL": {
                      "isOptional": true,
                      "description": "HTTP query API base URL on the private network. Reference it as ${{HydraDB.HYDRADB_URL}}.",
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:8443"
                    },
                    "HYDRADB_HOST": {
                      "isOptional": true,
                      "description": "Private host name for clients that take host and port separately.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "HYDRADB_ROLE": {
                      "isOptional": true,
                      "description": "Program this service runs: node = graph-node (Bolt 7687, HTTP query API 8443, admin 9090).",
                      "defaultValue": "node"
                    },
                    "GRAPH_CELL_ID": {
                      "isOptional": true,
                      "description": "Partition (cell) this node owns. Every HTTP query must send it as cell_id.",
                      "defaultValue": "cell-0"
                    },
                    "GRAPH_NODE_ID": {
                      "isOptional": true,
                      "description": "Stable node id used for heartbeats, writer leases and Bolt routing tables.",
                      "defaultValue": "hydradb-0"
                    },
                    "CLOUD_PROVIDER": {
                      "isOptional": true,
                      "description": "Object store type read by SlateDB. aws = any S3-compatible store, here the Railway Bucket.",
                      "defaultValue": "aws"
                    },
                    "GRAPH_DATABASE": {
                      "isOptional": true,
                      "description": "Bolt database name: pass it as the session database in Neo4j drivers.",
                      "defaultValue": "default"
                    },
                    "NEO4J_DATABASE": {
                      "isOptional": true,
                      "description": "Bolt session database.",
                      "defaultValue": "${{GRAPH_DATABASE}}"
                    },
                    "NEO4J_PASSWORD": {
                      "isOptional": true,
                      "description": "Bolt password = the bearer token.",
                      "defaultValue": "${{HYDRADB_AUTH_TOKEN}}"
                    },
                    "NEO4J_USERNAME": {
                      "isOptional": true,
                      "description": "Bolt user name. HydraDB ignores it; any value works.",
                      "defaultValue": "neo4j"
                    },
                    "AWS_BUCKET_NAME": {
                      "isOptional": true,
                      "description": "Bucket that holds the graph (records, WALs, leases, indexes). The source of truth for all data.",
                      "defaultValue": "${{Bucket.BUCKET}}"
                    },
                    "GRAPH_DATA_PATH": {
                      "isOptional": true,
                      "description": "Prefix inside the Bucket for all HydraDB objects. Do not change after the first write.",
                      "defaultValue": "hydradb"
                    },
                    "GRAPH_NAMESPACE": {
                      "isOptional": true,
                      "description": "Namespace of the graph. With 'default' the X-Graph-Namespace HTTP header is optional.",
                      "defaultValue": "default"
                    },
                    "HYDRADB_BOLT_URL": {
                      "isOptional": true,
                      "description": "Bolt URL for Neo4j drivers on the private network.",
                      "defaultValue": "bolt://${{RAILWAY_PRIVATE_DOMAIN}}:7687"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": true,
                      "description": "Bucket access key.",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "HYDRADB_CPU_LIMIT": {
                      "isOptional": true,
                      "description": "Cores for thread pools. auto = the container CPU quota (else nproc), capped at 8; or a number.",
                      "defaultValue": "auto"
                    },
                    "HYDRADB_QUERY_URL": {
                      "isOptional": true,
                      "description": "POST endpoint for queries (JSON body with cell_id and query; bearer token).",
                      "defaultValue": "${{HYDRADB_URL}}/v1/graphs/${{GRAPH_ID}}/query"
                    },
                    "GRAPHBLAS_NTHREADS": {
                      "isOptional": true,
                      "description": "SuiteSparse GraphBLAS threads. auto = HYDRADB_CPU_LIMIT's core count.",
                      "defaultValue": "auto"
                    },
                    "HYDRADB_AUTH_TOKEN": {
                      "isOptional": true,
                      "description": "Bearer token for the HTTP API and the Bolt password (any user name). 32+ chars of A-Z a-z 0-9 . _ ~ -.",
                      "defaultValue": "{{HYDRADB_AUTH_TOKEN}}"
                    },
                    "HYDRADB_PUBLIC_URL": {
                      "isOptional": true,
                      "description": "HTTPS query API on the public domain (token required). Egress-billed; prefer the private URL.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "GRAPH_CYPHER_ENGINE": {
                      "isOptional": true,
                      "description": "legacy = the documented OpenCypher subset. experimental = upstream's newer engine (not for production).",
                      "defaultValue": "legacy"
                    },
                    "HYDRADB_CACHE_RESET": {
                      "isOptional": true,
                      "description": "true empties the disk cache at every start. Use once after emptying or replacing the Bucket's data.",
                      "defaultValue": "false"
                    },
                    "HYDRADB_METRICS_URL": {
                      "isOptional": true,
                      "description": "Prometheus scrape URL on the private network (no auth, never public).",
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:9090/metrics"
                    },
                    "HYDRADB_S3_ENDPOINT": {
                      "isOptional": true,
                      "description": "S3 endpoint without the bucket name. The start script derives AWS_ENDPOINT from it.",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "TOKIO_WORKER_THREADS": {
                      "isOptional": true,
                      "description": "Async runtime worker threads. auto = the core count, at least 2.",
                      "defaultValue": "auto"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": true,
                      "description": "Bucket secret key.",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}"
                    },
                    "HYDRADB_S3_ADDRESSING": {
                      "isOptional": true,
                      "description": "virtual = https://{bucket}.{endpoint host} (new Railway Buckets); path for older buckets (see Credentials tab).",
                      "defaultValue": "virtual"
                    },
                    "GRAPH_DATA_CACHE_BYTES": {
                      "isOptional": true,
                      "description": "SlateDB disk cache on the volume. auto = 75% of the volume, 64 MiB to 8 GiB; or a number of bytes.",
                      "defaultValue": "auto"
                    },
                    "HYDRADB_MEMORY_LIMIT_MB": {
                      "isOptional": true,
                      "description": "Memory budget for the auto sizes. auto = the container limit (2 GiB if none is visible); or MiB.",
                      "defaultValue": "auto"
                    },
                    "GRAPH_INDEXER_NOTIFY_URL": {
                      "isOptional": true,
                      "description": "Wakes the indexer after writes (sent with the bearer token). Empty = the indexer only polls.",
                      "defaultValue": "http://${{HydraDB Indexer.RAILWAY_PRIVATE_DOMAIN}}:9091/v1/changes:process"
                    },
                    "GRAPH_MAX_GRAPHBLAS_BYTES": {
                      "isOptional": true,
                      "description": "Memory for compiled GraphBLAS matrices. auto = 1/16 of the memory budget, 32 to 512 MiB; or bytes.",
                      "defaultValue": "auto"
                    },
                    "GRAPH_ADVERTISED_BOLT_ADDR": {
                      "isOptional": true,
                      "description": "Bolt address this node puts in routing tables (neo4j:// URIs). Private network by default.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}:7687"
                    },
                    "GRAPH_SLATE_DB_CACHE_BYTES": {
                      "isOptional": true,
                      "description": "SlateDB RAM cache. auto = 5/16 of the memory budget, 64 MiB to 2 GiB; or bytes (0 disables it).",
                      "defaultValue": "auto"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Seconds between SIGTERM and SIGKILL, so the node drains queries and hands back its writer lease.",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:8443": {
                        "port": 8443
                      }
                    }
                  },
                  "volumeMounts": {
                    "77f9a5ce-095b-5d3e-b565-84564dcd853e": {
                      "mountPath": "/var/cache/slatedb"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "HydraDB",
      "method": "GET",
      "path": "/readyz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-30T16:14:57.468Z",
  "generator_version": "0.1.0"
}
