{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4674ee2c-2f52-44cf-83cf-33fd90c5ac3a",
    "slug": "calnode-clone",
    "name": "Calnode",
    "description": "Calnode — self-hosted Calendly alt. Go binary + SQLite, MCP-native.",
    "url": "https://railway.com/deploy/calnode-clone",
    "upstream": {
      "repo_url": "https://github.com/mc9max/calnode"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "calnode",
      "source": {
        "repo": "https://github.com/mc9max/calnode"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "calnode",
      "description": "Timezone for meeting times, reminders, log timestamps. Set to you, e.g. America/New_York.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "calnode",
      "description": "HTTP listen port. Calnode defaults to 3000; Railway maps the public domain to this port.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "BASE_URL",
      "service": "calnode",
      "description": "Public identity host (e.g. https://book.example.com or https://<your-domain>.up.railway.app after deploy). Drives OAuth callbacks, the admin UI, and team-invite links. Set your real domain after the first deploy and redeploy — OAuth redirect URIs are computed from this value.",
      "secret": false,
      "strategy": "default",
      "default": "http://localhost:3000"
    },
    {
      "key": "DATABASE_URL",
      "service": "calnode",
      "description": "SQLite driver pointing at the Railway volume mount. SQLite is the only store (pure-Go, no CGO, no Postgres). Keep this path — the directory is on the calnode-data volume.",
      "secret": false,
      "strategy": "default",
      "default": "sqlite:///data/calnode.db"
    },
    {
      "key": "EMAIL_FROM_NAME",
      "service": "calnode",
      "description": "Optional — Display name for booking email sender.",
      "secret": false,
      "strategy": "default",
      "default": "Calnode"
    },
    {
      "key": "EMAIL_SMTP_PORT",
      "service": "calnode",
      "description": "Optional — SMTP port (default 587, STARTTLS).",
      "secret": false,
      "strategy": "default",
      "default": "587"
    },
    {
      "key": "MICROSOFT_TENANT",
      "service": "calnode",
      "description": "Microsoft tenant. Default 'common' allows personal + work/school Microsoft accounts. Set to a specific tenant ID to restrict to one organisation.",
      "secret": false,
      "strategy": "default",
      "default": "common"
    },
    {
      "key": "CALNODE_ENCRYPTION_KEY",
      "service": "calnode",
      "description": "Envelope-encryption master key; auto-generated per deployment. REQUIRED for production (https BASE_URL). Rotatable later with `calnode rotate-key`.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "calnode-clone"
      }
    },
    "cli": "railway deploy --template calnode-clone",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4674ee2c-2f52-44cf-83cf-33fd90c5ac3a",
            "serializedConfig": {
              "services": {
                "c40c5ece-ffb5-45b2-9afe-20e7312d3c53": {
                  "icon": null,
                  "name": "calnode",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/mc9max/calnode",
                    "rootDirectory": null
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Timezone for meeting times, reminders, log timestamps. Set to you, e.g. America/New_York.",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP listen port. Calnode defaults to 3000; Railway maps the public domain to this port.",
                      "defaultValue": "3000"
                    },
                    "BASE_URL": {
                      "isOptional": false,
                      "description": "Public identity host (e.g. https://book.example.com or https://<your-domain>.up.railway.app after deploy). Drives OAuth callbacks, the admin UI, and team-invite links. Set your real domain after the first deploy and redeploy — OAuth redirect URIs are computed from this value.",
                      "defaultValue": "http://localhost:3000"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "SQLite driver pointing at the Railway volume mount. SQLite is the only store (pure-Go, no CGO, no Postgres). Keep this path — the directory is on the calnode-data volume.",
                      "defaultValue": "sqlite:///data/calnode.db"
                    },
                    "EMAIL_FROM_NAME": {
                      "description": "Optional — Display name for booking email sender.",
                      "defaultValue": "Calnode"
                    },
                    "EMAIL_SMTP_HOST": {
                      "isOptional": true,
                      "description": "Optional — SMTP host for booking invitation / confirmation / reminder emails. Blank = emails are skipped (app still works; users get links in the UI).",
                      "defaultValue": ""
                    },
                    "EMAIL_SMTP_PASS": {
                      "isOptional": true,
                      "description": "Optional — SMTP password.",
                      "defaultValue": ""
                    },
                    "EMAIL_SMTP_PORT": {
                      "description": "Optional — SMTP port (default 587, STARTTLS).",
                      "defaultValue": "587"
                    },
                    "EMAIL_SMTP_USER": {
                      "isOptional": true,
                      "description": "Optional — SMTP username.",
                      "defaultValue": ""
                    },
                    "PUBLIC_BASE_URL": {
                      "isOptional": true,
                      "description": "Optional booker-facing host for public booking links and outbound emails. Blank = inherits BASE_URL. Only set if your booking pages live on a different host than admin.",
                      "defaultValue": ""
                    },
                    "GOOGLE_CLIENT_ID": {
                      "isOptional": true,
                      "description": "Optional — Google OAuth client ID (console.cloud.google.com). Add redirect URIs: {BASE_URL}/v1/auth/callback and {BASE_URL}/v1/calendar/callback.",
                      "defaultValue": ""
                    },
                    "MICROSOFT_TENANT": {
                      "description": "Microsoft tenant. Default 'common' allows personal + work/school Microsoft accounts. Set to a specific tenant ID to restrict to one organisation.",
                      "defaultValue": "common"
                    },
                    "LITESTREAM_REGION": {
                      "isOptional": true,
                      "description": "Optional — S3 region (required by some providers, optional by others).",
                      "defaultValue": ""
                    },
                    "EMAIL_FROM_ADDRESS": {
                      "isOptional": true,
                      "description": "Optional — From address for booking emails, e.g. bookings@yourdomain.com.",
                      "defaultValue": ""
                    },
                    "LITESTREAM_ENDPOINT": {
                      "isOptional": true,
                      "description": "Optional — S3 endpoint host. Required for any non-AWS provider (R2, B2, MinIO). Blank = AWS us-east-1.",
                      "defaultValue": ""
                    },
                    "MICROSOFT_CLIENT_ID": {
                      "isOptional": true,
                      "description": "Optional — Microsoft 365 / Outlook client ID (Azure App registration). Web redirect URIs: {BASE_URL}/v1/auth/microsoft/callback and {BASE_URL}/v1/calendar/callback.",
                      "defaultValue": ""
                    },
                    "GOOGLE_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "Optional — Google OAuth client secret (pair with GOOGLE_CLIENT_ID).",
                      "defaultValue": ""
                    },
                    "CALNODE_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Envelope-encryption master key; auto-generated per deployment. REQUIRED for production (https BASE_URL). Rotatable later with `calnode rotate-key`.",
                      "defaultValue": "{{CALNODE_ENCRYPTION_KEY}}"
                    },
                    "LITESTREAM_REPLICA_URL": {
                      "isOptional": true,
                      "description": "Optional — S3-compatible bucket for continuous SQLite backups (Litestream) and meeting recordings. e.g. s3://your-bucket/calnode. Blank = no remote backups; the calnode-data volume still holds the primary DB.",
                      "defaultValue": ""
                    },
                    "CALNODE_RECOVERY_SECRET": {
                      "isOptional": true,
                      "description": "Optional break-glass escrow. When set, a recovery-wrapped copy of the data key is stored so you can re-establish access with `calnode recover-key` if CALNODE_ENCRYPTION_KEY is ever lost.",
                      "defaultValue": ""
                    },
                    "MICROSOFT_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "Optional — Microsoft client secret (pair with MICROSOFT_CLIENT_ID).",
                      "defaultValue": ""
                    },
                    "LITESTREAM_ACCESS_KEY_ID": {
                      "isOptional": true,
                      "description": "Optional — S3 access key for Litestream uploads (pair with LITESTREAM_REPLICA_URL).",
                      "defaultValue": ""
                    },
                    "LITESTREAM_SECRET_ACCESS_KEY": {
                      "isOptional": true,
                      "description": "Optional — S3 secret key for Litestream uploads (pair with LITESTREAM_REPLICA_URL).",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "c40c5ece-ffb5-45b2-9afe-20e7312d3c53": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-11-02T10:15:11.649Z",
  "generator_version": "0.1.0"
}
