{"id":14155343,"url":"https://github.com/bbusse/swayvnc-firefox","last_synced_at":"2026-01-17T02:24:51.746Z","repository":{"id":37232770,"uuid":"299039809","full_name":"bbusse/swayvnc-firefox","owner":"bbusse","description":"Headless wayland browser vnc sessions in a container","archived":false,"fork":false,"pushed_at":"2024-11-24T15:07:36.000Z","size":26,"stargazers_count":16,"open_issues_count":4,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-24T15:33:34.909Z","etag":null,"topics":["container","desktop","firefox","headless","remote","sway","vnc"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bbusse.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-27T13:37:11.000Z","updated_at":"2024-10-07T21:37:05.000Z","dependencies_parsed_at":"2024-08-17T08:16:46.636Z","dependency_job_id":null,"html_url":"https://github.com/bbusse/swayvnc-firefox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbusse%2Fswayvnc-firefox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbusse%2Fswayvnc-firefox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbusse%2Fswayvnc-firefox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbusse%2Fswayvnc-firefox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbusse","download_url":"https://codeload.github.com/bbusse/swayvnc-firefox/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228821404,"owners_count":17977166,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["container","desktop","firefox","headless","remote","sway","vnc"],"created_at":"2024-08-17T08:02:54.169Z","updated_at":"2026-01-17T02:24:51.719Z","avatar_url":"https://github.com/bbusse.png","language":"Dockerfile","funding_links":[],"categories":["firefox"],"sub_categories":[],"readme":"# swayvnc-firefox\nVNC Desktop Browser Session in a Container\n---\nswayvnc-firefox uses [Sway](https://swaywm.org) with [wayvnc](https://github.com/any1/wayvnc) to create a headless wayland desktop with a browser payload (firefox), to display one or several web pages\n\n## Build\n### Build dependency\nUses [swayvnc](https://github.com/bbusse/swayvnc) as base image\n\n### Build container\n```\n$ podman build -t swayvnc-firefox .\n```\n\n## Run Container\n```\n$ export LISTEN_ADDRESS=\"127.0.0.1\" \\\n  podman run -e XDG_RUNTIME_DIR=/tmp \\\n             -e WLR_BACKENDS=headless \\\n             -e WLR_LIBINPUT_NO_DEVICES=1 \\\n             -e SWAYSOCK=/tmp/sway-ipc.sock \\\n             -e MOZ_ENABLE_WAYLAND=1 \\\n             -e TARGET=\"grafana\" \\\n             -e URL=\"https://grafana.example.com\" \\\n             -e LOGIN_USER=\"foo\" \\\n             -e LOGIN_PW=\"c3VwZXJTZWNyZXRQYXNzd3JvZAo=\" \\\n             -e BROWSER_FULLSCREEN=1 \\\n             -p${LISTEN_ADDRESS}:5000:5000 \\\n             -p${LISTEN_ADDRESS}:5100:5100 \\\n             -p${LISTEN_ADDRESS}:7023:7023 swayvnc-firefox\n# or\n$ ./run.sh\n```\n\n## Run Commands\nRun commands with swaymsg by using socat to put them on the network\nReplace $IP with the actual IP you want to listen on\n```\n$ socat UNIX-LISTEN:/tmp/sway-ipc.sock,fork TCP:$IP:7023\n$ SWAYSOCK=/tmp/sway-ipc.sock swaymsg exec \"firefox [URL]\"\n```\n\n## Connect\nUse a vnc client to connect to the server\n```\n$ wlvncc \u003cvnc-server\u003e\n# or\n$ vinagre [vnc-server:5910]\n```\n\n## TODO\n* Add tab rotation for the browser payload\n\n## Resources\n[W3C WebDriver Specification](https://w3c.github.io/webdriver/)  \n[Selenium/WebDriver Documentation](ww.selenium.dev/documentation/en/getting_started_with_webdriver)  \n[Mozilla geckodriver](https://github.com/mozilla/geckodriver)  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbusse%2Fswayvnc-firefox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbusse%2Fswayvnc-firefox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbusse%2Fswayvnc-firefox/lists"}