{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a36816c7-5b00-4f98-b09e-a48271b14d88",
    "slug": "open-notebook-1",
    "name": "Open Notebook",
    "description": "Open source, privacy‑focused alternative to Google Notebook LM",
    "url": "https://railway.com/deploy/open-notebook-1",
    "upstream": {
      "image": "lfnovo/open_notebook:v1-latest"
    }
  },
  "services": [
    {
      "name": "OpenNotebook",
      "source": {
        "image": "lfnovo/open_notebook:v1-latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    },
    {
      "name": "SurrealDB",
      "source": {
        "image": "surrealdb/surrealdb:v2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "API_URL",
      "service": "OpenNotebook",
      "description": "Public URL for the Open Notebook API.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "HOSTNAME",
      "service": "OpenNotebook",
      "description": "Address the backend listens on (keep 0.0.0.0).",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "SURREAL_URL",
      "service": "OpenNotebook",
      "description": "Provide a value for SURREAL_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SURREAL_USER",
      "service": "OpenNotebook",
      "description": "Username Open Notebook uses to log into SurrealDB.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SURREAL_DATABASE",
      "service": "OpenNotebook",
      "description": "Database name used inside the SurrealDB namespace.",
      "secret": false,
      "strategy": "default",
      "default": "open_notebook"
    },
    {
      "key": "SURREAL_PASSWORD",
      "service": "OpenNotebook",
      "description": "Password for the SurrealDB user.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SURREAL_NAMESPACE",
      "service": "OpenNotebook",
      "description": "SurrealDB namespace where this app stores data.",
      "secret": false,
      "strategy": "default",
      "default": "open_notebook"
    },
    {
      "key": "OPEN_NOTEBOOK_PASSWORD",
      "service": "OpenNotebook",
      "description": "Connection URL for the SurrealDB service.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SURREAL_URL",
      "service": "SurrealDB",
      "description": "URL clients use to connect to SurrealDB.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SURREAL_BIND",
      "service": "SurrealDB",
      "description": "Host and port SurrealDB listens on.",
      "secret": false,
      "strategy": "default",
      "default": "[::]:8000"
    },
    {
      "key": "SURREAL_PASS",
      "service": "SurrealDB",
      "description": "Password for the configured SurrealDB user.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SURREAL_PATH",
      "service": "SurrealDB",
      "description": "Filesystem path where SurrealDB stores its data.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SURREAL_USER",
      "service": "SurrealDB",
      "description": "Username for the configured SurrealDB user.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "SurrealDB",
      "description": "User ID SurrealDB runs as inside the container.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "open-notebook-1"
      }
    },
    "cli": "railway deploy --template open-notebook-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a36816c7-5b00-4f98-b09e-a48271b14d88",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "5b48bd49-22c3-482e-b1b1-dee211d670fa": {
                  "icon": "https://www.open-notebook.ai/hero.svg",
                  "name": "OpenNotebook",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "lfnovo/open_notebook:v1-latest"
                  },
                  "variables": {
                    "API_URL": {
                      "isOptional": false,
                      "description": "Public URL for the Open Notebook API.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "HOSTNAME": {
                      "isOptional": false,
                      "description": "Address the backend listens on (keep 0.0.0.0).",
                      "defaultValue": "0.0.0.0"
                    },
                    "SURREAL_URL": {
                      "isOptional": false,
                      "defaultValue": "${{SurrealDB.SURREAL_URL}}"
                    },
                    "SURREAL_USER": {
                      "isOptional": false,
                      "description": "Username Open Notebook uses to log into SurrealDB.",
                      "defaultValue": "${{SurrealDB.SURREAL_USER}}"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "API key for your OpenAI.",
                      "defaultValue": ""
                    },
                    "SURREAL_DATABASE": {
                      "isOptional": false,
                      "description": "Database name used inside the SurrealDB namespace.",
                      "defaultValue": "open_notebook"
                    },
                    "SURREAL_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the SurrealDB user.",
                      "defaultValue": "${{SurrealDB.SURREAL_PASS}}"
                    },
                    "SURREAL_NAMESPACE": {
                      "isOptional": false,
                      "description": "SurrealDB namespace where this app stores data.",
                      "defaultValue": "open_notebook"
                    },
                    "OPEN_NOTEBOOK_PASSWORD": {
                      "description": "Connection URL for the SurrealDB service.",
                      "defaultValue": "{{OPEN_NOTEBOOK_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8502": {
                        "port": 8502
                      }
                    }
                  },
                  "volumeMounts": {
                    "5b48bd49-22c3-482e-b1b1-dee211d670fa": {
                      "mountPath": "/app/data"
                    }
                  }
                },
                "b2378f90-e440-4838-b9b8-f7d16d039435": {
                  "icon": "https://surrealdb.com/_astro/icon.CcY9wmH1.svg",
                  "name": "SurrealDB",
                  "deploy": {
                    "startCommand": "./surreal start",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "surrealdb/surrealdb:v2"
                  },
                  "variables": {
                    "SURREAL_URL": {
                      "isOptional": false,
                      "description": "URL clients use to connect to SurrealDB.",
                      "defaultValue": "ws://${{RAILWAY_PRIVATE_DOMAIN}}:8000/rpc"
                    },
                    "SURREAL_BIND": {
                      "isOptional": false,
                      "description": "Host and port SurrealDB listens on.",
                      "defaultValue": "[::]:8000"
                    },
                    "SURREAL_PASS": {
                      "isOptional": false,
                      "description": "Password for the configured SurrealDB user.",
                      "defaultValue": "{{SURREAL_PASS}}"
                    },
                    "SURREAL_PATH": {
                      "isOptional": false,
                      "description": "Filesystem path where SurrealDB stores its data.",
                      "defaultValue": "rocksdb:${{RAILWAY_VOLUME_MOUNT_PATH}}/surrealdb.db"
                    },
                    "SURREAL_USER": {
                      "isOptional": false,
                      "description": "Username for the configured SurrealDB user.",
                      "defaultValue": "{{SURREAL_USER}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "User ID SurrealDB runs as inside the container.",
                      "defaultValue": "0"
                    }
                  },
                  "volumeMounts": {
                    "b2378f90-e440-4838-b9b8-f7d16d039435": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-18T12:36:21.092Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_1f9f9ba5f2b346fd9641",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 63,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "OpenNotebook"
  }
}
