{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5161fdda-6482-44d2-be35-dbbef7b4b6f8",
    "slug": "muse-1",
    "name": "muse",
    "description": "Muse — self-hosted Discord music bot with Spotify support and caching",
    "url": "https://railway.com/deploy/muse-1",
    "upstream": {
      "repo_url": "https://github.com/INAPP-Mobile/muse"
    }
  },
  "services": [
    {
      "name": "muse",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/muse"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "DATA_DIR",
      "service": "muse",
      "description": "Directory holding the SQLite database and audio cache. Must match the mount path of the attached Railway Volume.",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    },
    {
      "key": "CACHE_LIMIT",
      "service": "muse",
      "description": "Maximum disk space used by the audio cache, e.g. 2GB. Keep below your Railway Volume size.",
      "secret": false,
      "strategy": "default",
      "default": "2GB"
    },
    {
      "key": "DISCORD_TOKEN",
      "service": "muse",
      "description": "Discord bot token. Create an application at https://discord.com/developers/applications, add a Bot, then copy its token.",
      "secret": true,
      "strategy": "default",
      "default": "MTAwMDAwMDAwMDAwMDAwMDAwMQ.XXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
    },
    {
      "key": "YOUTUBE_COOKIE",
      "service": "muse",
      "description": "YouTube cookies string. Optional — may help with age-restricted videos.",
      "secret": false,
      "strategy": "default",
      "default": "CONSENT=YES+cb; VISITOR_INFO1_LIVE=XXXXXXXXXXX; YSC=XXXXXXXXXXX"
    },
    {
      "key": "YOUTUBE_API_KEY",
      "service": "muse",
      "description": "YouTube Data API v3 key from https://console.cloud.google.com/apis/credentials. Required for YouTube search and playback.",
      "secret": true,
      "strategy": "default",
      "default": "AIzaSyXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
    },
    {
      "key": "DISCORD_CLIENT_ID",
      "service": "muse",
      "description": "Discord application client ID (Developer Portal -> General Information -> Application ID). Used to build the bot invite link.",
      "secret": false,
      "strategy": "default",
      "default": "1000000000000000001"
    },
    {
      "key": "SPOTIFY_CLIENT_ID",
      "service": "muse",
      "description": "Spotify API client ID. Optional — enables resolving Spotify tracks, albums and playlists.",
      "secret": false,
      "strategy": "default",
      "default": "00000000000000000000000000000000"
    },
    {
      "key": "ENABLE_SPONSORBLOCK",
      "service": "muse",
      "description": "Skip YouTube sponsor segments using SponsorBlock data. Set to true to enable.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "DISCORD_CLIENT_SECRET",
      "service": "muse",
      "description": "Discord application client secret. Optional — only used to generate an OAuth2 invite link.",
      "secret": true,
      "strategy": "default",
      "default": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
    },
    {
      "key": "SPOTIFY_CLIENT_SECRET",
      "service": "muse",
      "description": "Spotify API client secret. Optional — required only if SPOTIFY_CLIENT_ID is set.",
      "secret": true,
      "strategy": "default",
      "default": "00000000000000000000000000000000"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "muse-1"
      }
    },
    "cli": "railway deploy --template muse-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5161fdda-6482-44d2-be35-dbbef7b4b6f8",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "48a86f70-b72a-4d6e-ba5c-9c35373bbfd3": {
                  "icon": null,
                  "name": "muse",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/muse",
                    "rootDirectory": null
                  },
                  "variables": {
                    "DATA_DIR": {
                      "isOptional": false,
                      "description": "Directory holding the SQLite database and audio cache. Must match the mount path of the attached Railway Volume.",
                      "defaultValue": "/data"
                    },
                    "CACHE_LIMIT": {
                      "description": "Maximum disk space used by the audio cache, e.g. 2GB. Keep below your Railway Volume size.",
                      "defaultValue": "2GB"
                    },
                    "DISCORD_TOKEN": {
                      "isOptional": false,
                      "description": "Discord bot token. Create an application at https://discord.com/developers/applications, add a Bot, then copy its token.",
                      "defaultValue": "MTAwMDAwMDAwMDAwMDAwMDAwMQ.XXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    },
                    "YOUTUBE_COOKIE": {
                      "description": "YouTube cookies string. Optional — may help with age-restricted videos.",
                      "defaultValue": "CONSENT=YES+cb; VISITOR_INFO1_LIVE=XXXXXXXXXXX; YSC=XXXXXXXXXXX"
                    },
                    "YOUTUBE_API_KEY": {
                      "isOptional": false,
                      "description": "YouTube Data API v3 key from https://console.cloud.google.com/apis/credentials. Required for YouTube search and playback.",
                      "defaultValue": "AIzaSyXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    },
                    "DISCORD_CLIENT_ID": {
                      "isOptional": false,
                      "description": "Discord application client ID (Developer Portal -> General Information -> Application ID). Used to build the bot invite link.",
                      "defaultValue": "1000000000000000001"
                    },
                    "SPOTIFY_CLIENT_ID": {
                      "description": "Spotify API client ID. Optional — enables resolving Spotify tracks, albums and playlists.",
                      "defaultValue": "00000000000000000000000000000000"
                    },
                    "ENABLE_SPONSORBLOCK": {
                      "description": "Skip YouTube sponsor segments using SponsorBlock data. Set to true to enable.",
                      "defaultValue": "false"
                    },
                    "DISCORD_CLIENT_SECRET": {
                      "description": "Discord application client secret. Optional — only used to generate an OAuth2 invite link.",
                      "defaultValue": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    },
                    "SPOTIFY_CLIENT_SECRET": {
                      "description": "Spotify API client secret. Optional — required only if SPOTIFY_CLIENT_ID is set.",
                      "defaultValue": "00000000000000000000000000000000"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "48a86f70-b72a-4d6e-ba5c-9c35373bbfd3": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "muse",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T22:14:43.398Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-10T15:33:38.088Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_a99060ff27af4bddb464",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 174,
    "typical_build_seconds": 48,
    "typical_start_seconds": 16,
    "slowest_service": "muse"
  }
}
