{
  "manifest_version": "1.0.0",
  "template": {
    "id": "866536f3-77d3-4f5a-85cc-814123564fdd",
    "slug": "open-notebook-notebooklm",
    "name": "Open Notebook | Open Source NotebookLM Alternative",
    "description": "Self-hosted NotebookLM alternative - chat with docs, notes, podcasts",
    "url": "https://railway.com/deploy/open-notebook-notebooklm",
    "upstream": {
      "image": "lfnovo/open_notebook:1.14.0"
    }
  },
  "services": [
    {
      "name": "SurrealDB",
      "source": {
        "image": "surrealdb/surrealdb:v2.6.5"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Open Notebook",
      "source": {
        "image": "lfnovo/open_notebook:1.14.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "SURREAL_LOG",
      "service": "SurrealDB",
      "description": "SurrealDB log level (error, warn, info, debug, trace).",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "SURREAL_BIND",
      "service": "SurrealDB",
      "description": "Address SurrealDB listens on; [::] is dual-stack for Railway’s private IPv6 network.",
      "secret": false,
      "strategy": "default",
      "default": "[::]:8000"
    },
    {
      "key": "SURREAL_PASS",
      "service": "SurrealDB",
      "description": "SurrealDB root password (auto-generated).",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SURREAL_PATH",
      "service": "SurrealDB",
      "description": "Storage engine and path on the persistent volume.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SURREAL_USER",
      "service": "SurrealDB",
      "description": "SurrealDB root username (auto-generated).",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "SurrealDB",
      "description": "Run as root so SurrealDB can write to the root-owned Railway volume.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "SURREAL_CAPS_ALLOW_ALL",
      "service": "SurrealDB",
      "description": "Allow all SurrealDB capabilities — Open Notebook needs functions/scripting.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "API_URL",
      "service": "Open Notebook",
      "description": "Public URL of this app, used for callbacks/webhooks.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SURREAL_URL",
      "service": "Open Notebook",
      "description": "SurrealDB RPC endpoint on the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SURREAL_USER",
      "service": "Open Notebook",
      "description": "SurrealDB username (from the SurrealDB service).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SURREAL_DATABASE",
      "service": "Open Notebook",
      "description": "SurrealDB database name Open Notebook uses.",
      "secret": false,
      "strategy": "default",
      "default": "open_notebook"
    },
    {
      "key": "SURREAL_PASSWORD",
      "service": "Open Notebook",
      "description": "SurrealDB password (from the SurrealDB service).",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SURREAL_NAMESPACE",
      "service": "Open Notebook",
      "description": "SurrealDB namespace Open Notebook uses.",
      "secret": false,
      "strategy": "default",
      "default": "open_notebook"
    },
    {
      "key": "OPEN_NOTEBOOK_PASSWORD",
      "service": "Open Notebook",
      "description": "Access password. Copy this value from here and enter it at first login.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "OPEN_NOTEBOOK_ENCRYPTION_KEY",
      "service": "Open Notebook",
      "description": "Encrypts the AI provider API keys you save in the database. Required.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "open-notebook-notebooklm"
      }
    },
    "cli": "railway deploy --template open-notebook-notebooklm",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "866536f3-77d3-4f5a-85cc-814123564fdd",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "9bb5d65e-6527-4f2e-95a4-47c00636026d": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/surrealdb.svg",
                  "name": "SurrealDB",
                  "deploy": {
                    "startCommand": "/surreal start --deny-guests --no-banner",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 2
                  },
                  "source": {
                    "image": "surrealdb/surrealdb:v2.6.5"
                  },
                  "variables": {
                    "SURREAL_LOG": {
                      "isOptional": false,
                      "description": "SurrealDB log level (error, warn, info, debug, trace).",
                      "defaultValue": "info"
                    },
                    "SURREAL_BIND": {
                      "isOptional": false,
                      "description": "Address SurrealDB listens on; [::] is dual-stack for Railway’s private IPv6 network.",
                      "defaultValue": "[::]:8000"
                    },
                    "SURREAL_PASS": {
                      "isOptional": false,
                      "description": "SurrealDB root password (auto-generated).",
                      "defaultValue": "{{SURREAL_PASS}}"
                    },
                    "SURREAL_PATH": {
                      "isOptional": false,
                      "description": "Storage engine and path on the persistent volume.",
                      "defaultValue": "rocksdb:${{ RAILWAY_VOLUME_MOUNT_PATH }}/surrealdb.db"
                    },
                    "SURREAL_USER": {
                      "isOptional": false,
                      "description": "SurrealDB root username (auto-generated).",
                      "defaultValue": "{{SURREAL_USER}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Run as root so SurrealDB can write to the root-owned Railway volume.",
                      "defaultValue": "0"
                    },
                    "SURREAL_CAPS_ALLOW_ALL": {
                      "isOptional": false,
                      "description": "Allow all SurrealDB capabilities — Open Notebook needs functions/scripting.",
                      "defaultValue": "true"
                    }
                  },
                  "volumeMounts": {
                    "9bb5d65e-6527-4f2e-95a4-47c00636026d": {
                      "mountPath": "/data"
                    }
                  }
                },
                "ce07e2d0-27fc-48e8-99d4-d960b7fee15a": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/open-notebook.svg",
                  "name": "Open Notebook",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 3
                  },
                  "source": {
                    "image": "lfnovo/open_notebook:1.14.0"
                  },
                  "variables": {
                    "API_URL": {
                      "isOptional": false,
                      "description": "Public URL of this app, used for callbacks/webhooks.",
                      "defaultValue": "https://${{ RAILWAY_PUBLIC_DOMAIN }}"
                    },
                    "SURREAL_URL": {
                      "isOptional": false,
                      "description": "SurrealDB RPC endpoint on the private network.",
                      "defaultValue": "ws://${{ SurrealDB.RAILWAY_PRIVATE_DOMAIN }}:8000/rpc"
                    },
                    "SURREAL_USER": {
                      "isOptional": false,
                      "description": "SurrealDB username (from the SurrealDB service).",
                      "defaultValue": "${{ SurrealDB.SURREAL_USER }}"
                    },
                    "SURREAL_DATABASE": {
                      "isOptional": false,
                      "description": "SurrealDB database name Open Notebook uses.",
                      "defaultValue": "open_notebook"
                    },
                    "SURREAL_PASSWORD": {
                      "isOptional": false,
                      "description": "SurrealDB password (from the SurrealDB service).",
                      "defaultValue": "${{ SurrealDB.SURREAL_PASS }}"
                    },
                    "SURREAL_NAMESPACE": {
                      "isOptional": false,
                      "description": "SurrealDB namespace Open Notebook uses.",
                      "defaultValue": "open_notebook"
                    },
                    "OPEN_NOTEBOOK_PASSWORD": {
                      "isOptional": false,
                      "description": "Access password. Copy this value from here and enter it at first login.",
                      "defaultValue": "{{OPEN_NOTEBOOK_PASSWORD}}"
                    },
                    "OPEN_NOTEBOOK_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Encrypts the AI provider API keys you save in the database. Required.",
                      "defaultValue": "{{OPEN_NOTEBOOK_ENCRYPTION_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8502": {
                        "port": 8502
                      }
                    }
                  },
                  "volumeMounts": {
                    "ce07e2d0-27fc-48e8-99d4-d960b7fee15a": {
                      "mountPath": "/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T10:14:42.516Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T18:45:55.052Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_01a4cc1bf6944df985ac",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 66,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "Open Notebook"
  }
}
