{"id":24176730,"url":"https://github.com/cropalato/obs_switchscene","last_synced_at":"2026-05-04T18:34:11.225Z","repository":{"id":64306889,"uuid":"364382855","full_name":"cropalato/obs_switchscene","owner":"cropalato","description":"A lightweight command-line tool to quickly switch between OBS Studio scenes. Perfect for streamers and content creators who need fast scene transitions through hotkeys or automation.","archived":false,"fork":false,"pushed_at":"2024-10-31T16:37:28.000Z","size":4352,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T16:13:17.186Z","etag":null,"topics":["automation","broadcast","cli","content-creation","go","golang","obs","obs-studio","scene-switcher","streamdeck","streaming","streaming-tools","twitch","websocket","youtube"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cropalato.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-04T20:51:28.000Z","updated_at":"2024-10-31T18:17:39.000Z","dependencies_parsed_at":"2023-01-15T10:45:45.687Z","dependency_job_id":null,"html_url":"https://github.com/cropalato/obs_switchscene","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cropalato/obs_switchscene","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cropalato%2Fobs_switchscene","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cropalato%2Fobs_switchscene/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cropalato%2Fobs_switchscene/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cropalato%2Fobs_switchscene/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cropalato","download_url":"https://codeload.github.com/cropalato/obs_switchscene/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cropalato%2Fobs_switchscene/sbom","scorecard":{"id":309419,"data":{"date":"2025-08-11","repo":{"name":"github.com/cropalato/obs_switchscene","commit":"e1e51764a6f7a8dbba23fddb0af1b4eaf0babf30"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/11 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/cropalato/obs_switchscene/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/cropalato/obs_switchscene/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/cropalato/obs_switchscene/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/cropalato/obs_switchscene/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/cropalato/obs_switchscene/release.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release.yml:7"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":4,"reason":"1 out of the last 2 releases have a total of 1 signed artifacts.","details":["Warn: release artifact v0.2.0 not signed: https://api.github.com/repos/cropalato/obs_switchscene/releases/182963752","Info: signed release artifact: obs_switchscene_0.1.0_SHA256SUMS.sig: https://github.com/cropalato/obs_switchscene/releases/tag/v0.1.0","Warn: release artifact v0.2.0 does not have provenance: https://api.github.com/repos/cropalato/obs_switchscene/releases/182963752","Warn: release artifact v0.1.0 does not have provenance: https://api.github.com/repos/cropalato/obs_switchscene/releases/42442104"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T22:53:13.058Z","repository_id":64306889,"created_at":"2025-08-17T22:53:13.058Z","updated_at":"2025-08-17T22:53:13.058Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32619813,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","broadcast","cli","content-creation","go","golang","obs","obs-studio","scene-switcher","streamdeck","streaming","streaming-tools","twitch","websocket","youtube"],"created_at":"2025-01-13T03:17:38.008Z","updated_at":"2026-05-04T18:34:11.220Z","avatar_url":"https://github.com/cropalato.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OBS Scene Switcher\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\nA robust Go utility to toggle between two OBS Studio scenes with configurable options and improved error handling.\n\n## Features\n\n- Quick switching between two predefined scenes in OBS Studio\n- Configurable connection settings (host, port, timeout)\n- Scene validation to prevent errors\n- Verbose logging option for debugging\n- Connection timeout protection\n- Lightweight and easy to use\n- Uses OBS WebSocket for secure scene management\n\n## Prerequisites\n\n- OBS Studio\n- OBS WebSocket plugin installed and configured\n- Go programming environment (1.13 or higher recommended)\n\n## Installation\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/your-username/obs_switchscene.git\ncd obs_switchscene\n```\n\n2. Build the project:\n\n```bash\ngo build\n```\n\n## Usage\n\n### Basic Usage\n\n```bash\n./obs_switchscene \u003cscene1\u003e \u003cscene2\u003e\n```\n\n### Advanced Usage with Options\n\n```bash\n./obs_switchscene [options] \u003cscene1\u003e \u003cscene2\u003e\n```\n\n### Available Options\n\n```\n-host string\n      OBS WebSocket host (default \"localhost\")\n-port string\n      OBS WebSocket port (default \"4455\")\n-password string\n      OBS WebSocket password\n-password-file string\n      Path to file containing OBS WebSocket password (default \"~/.obspwd\")\n-timeout duration\n      Connection timeout (default 5s)\n-verbose\n      Enable verbose logging\n```\n\n**Notes**:\n- If both `-password` and `-password-file` are provided, the `-password` flag takes precedence.\n- If connection fails without any password specified, the application will automatically retry using the password from the default file (`~/.obspwd`).\n\n### Examples\n\nBasic scene switching:\n\n```bash\n./obs_switchscene \"Gaming\" \"Streaming\"\n```\n\nCustom host and port:\n\n```bash\n./obs_switchscene -host=192.168.1.100 -port=4455 \"Gaming\" \"Streaming\"\n```\n\nWith password authentication:\n\n```bash\n# Using command-line password\n./obs_switchscene -password=\"your-password\" \"Gaming\" \"Streaming\"\n\n# Using password from default file (~/.obspwd)\necho \"your-password\" \u003e ~/.obspwd\nchmod 600 ~/.obspwd\n./obs_switchscene \"Gaming\" \"Streaming\"\n\n# Using password from custom file\n./obs_switchscene -password-file=\"/path/to/password\" \"Gaming\" \"Streaming\"\n```\n\nWith longer timeout and verbose logging:\n\n```bash\n./obs_switchscene -timeout=10s -verbose \"Gaming\" \"Streaming\"\n```\n\n## Configuration\n\nThe program supports various configuration options through command-line flags:\n\n| Flag          | Description                          | Default    |\n| ------------- | ------------------------------------ | ---------- |\n| host          | OBS WebSocket host address           | localhost  |\n| port          | OBS WebSocket port number            | 4455       |\n| password      | OBS WebSocket password               |            |\n| password-file | Path to file with password           | ~/.obspwd  |\n| timeout       | Connection timeout duration          | 5s         |\n| verbose       | Enable detailed logging              | false      |\n\n## Error Handling\n\nThe program includes robust error handling for common scenarios:\n\n- Connection timeouts\n- Invalid scene names\n- OBS connection failures\n- Scene switching failures\n\nWhen running with `-verbose`, detailed error information and operational status will be logged.\n\n## Dependencies\n\n- [goobs](https://github.com/andreykaipov/goobs) - OBS WebSocket 5.x client library\n\n## Contributing\n\nContributions are welcome! Here are some ways you can contribute:\n\n- Report bugs\n- Suggest new features\n- Submit pull requests\n- Improve documentation\n\n### Development Setup\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## Planned Features\n\n- Configuration file support\n- Scene transition effects\n- Connection health monitoring\n- Multiple scene group support\n\n## Troubleshooting\n\n### Common Issues\n\n1. **Connection Timeout**\n\n   - Verify OBS is running\n   - Check if OBS WebSocket plugin is installed\n   - Confirm the correct host and port settings\n\n2. **Scene Not Found**\n\n   - Verify scene names match exactly (case-sensitive)\n   - Check for extra spaces in scene names\n   - Use `-verbose` flag to see available scenes\n\n3. **Port Already in Use**\n   - Verify no other instance is running\n   - Check if the specified port is available\n\n## Support\n\nFor support, please:\n\n1. Check the troubleshooting section\n2. Enable verbose logging with `-verbose` flag\n3. Open an issue on GitHub with the error logs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcropalato%2Fobs_switchscene","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcropalato%2Fobs_switchscene","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcropalato%2Fobs_switchscene/lists"}