{"id":13510342,"url":"https://github.com/browserhtml/browserhtml","last_synced_at":"2025-09-28T03:30:37.843Z","repository":{"id":25372799,"uuid":"28800891","full_name":"browserhtml/browserhtml","owner":"browserhtml","description":"Experimental Servo browser built in HTML","archived":true,"fork":false,"pushed_at":"2018-07-27T05:41:33.000Z","size":37088,"stargazers_count":2613,"open_issues_count":34,"forks_count":160,"subscribers_count":110,"default_branch":"master","last_synced_at":"2024-09-27T02:01:29.882Z","etag":null,"topics":["browser","servo"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/browserhtml.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-05T06:39:24.000Z","updated_at":"2024-09-22T14:45:55.000Z","dependencies_parsed_at":"2022-07-25T12:32:13.405Z","dependency_job_id":null,"html_url":"https://github.com/browserhtml/browserhtml","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserhtml%2Fbrowserhtml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserhtml%2Fbrowserhtml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserhtml%2Fbrowserhtml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserhtml%2Fbrowserhtml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/browserhtml","download_url":"https://codeload.github.com/browserhtml/browserhtml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234479935,"owners_count":18840181,"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":["browser","servo"],"created_at":"2024-08-01T02:01:34.902Z","updated_at":"2025-09-28T03:30:32.082Z","avatar_url":"https://github.com/browserhtml.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","browser"],"sub_categories":[],"readme":"This project has been retired: https://groups.google.com/d/msg/mozilla.dev.servo/U5zhsBLXovM/HbRL69zZBAAJ\n\n___\n\n# Browser.html\n\n*Browser.html* is a research project aimed at building an experimental [Servo][] browser in HTML. This project has 2 major pieces:\n\n- _Graphene_: a runtime for building native apps in HTML. It's currently in development and part of Servo.\n- _Browser.html_: an experimental browser UI for desktop.\n\nThis repository is for Browser.html (the front-end). Active development of Graphene happens in the [Servo][] repository. Questions? Check out the [FAQ](https://github.com/browserhtml/browserhtml/wiki/FAQ).\n\n![browser](./browser.gif)\n\n## Contributing\n\nWe welcome contributions from anyone. See [CONTRIBUTING.md](https://github.com/browserhtml/browserhtml/blob/master/CONTRIBUTING.md) for help getting started.\n\n\n## Development\n\nThere are two major components to the browser.html application.\n\n1. Local server that serves application UI.\n2. Client that is a application shell that connects to the server and renders served UI.\n\n\n### Server\n\nIf you're working on the Browser.html front-end, you'll need [Node.js][] to install all dependencies and run the development toolchain.\n\n``` sh\ngit clone https://github.com/browserhtml/browserhtml.git\ncd browserhtml\nnpm install --no-optional\n```\n\nOnce all dependencies are installed, you can run the server component with the following command:\n\n``` sh\nnpm run build-server\n```\n\nAny changes to the source code will trigger a build, which is then automatically served. That will allow you to reload a client in order to see your changes. Alternatively you can use `live-server` to not only rebuild, but also trigger an automatic live code reload for the UI such that application state is preserved:\n\n```sh\nnpm run live-server\n```\n\n### Client\n\nIn order to run the browser.html application itself, you will need a client component. This would be a Servo binary with the Graphene runtime. You can either [download][download servo] pre-built nightly snapshots or [build it yourself][build servo] and run with the `--browserhtml` flag. Assuming you have a pre-built snapshot in the default location on a Mac you can run the browser.html application with the following command:\n\n\n``` sh\n /Applications/Servo.app/Contents/MacOS/servo -b -w --pref dom.mozbrowser.enabled --pref dom.forcetouch.enabled --pref shell.builtin-key-shortcuts.enabled=false http://localhost:6060\n```\n\n### Gecko Client\n\nBrowser.html can also be run on top of a Gecko-based version of Graphene. We used to use this variant to test and debug features that were not yet in Servo. You can either [download][download gecko] pre-built nightly snapshots or [build it yourself][build gecko]. Assuming you have a pre-built snapshot in default location on a Mac you can run the browser.html application with the following command:\n\n```sh\n/Applications/B2G.app/Contents/MacOS/b2g-bin --start-manifest=http://localhost:6060/manifest.webapp --profile ./.profile\n```\n\n### Electron Client\n\nBrowser.html can also run as an [Electron][] application. Assuming you have `electron` installed you can run the browser.html application with the following command (must be run from the project root):\n\n```sh\nelectron .\n```\n\n### Browser Client\n\nYou can also just load http://localhost:6060/ in your favourite web browser, but be aware that many features will not work because they require APIs not available to web content.\n\n\n[build gecko]:https://github.com/browserhtml/browserhtml/wiki/Building-Graphene-%28Gecko-flavor%29\n[build servo]:https://github.com/servo/servo/blob/master/docs/HACKING_QUICKSTART.md\n[download gecko]:https://ftp.mozilla.org/pub/b2g/nightly/latest-mozilla-central/\n[download servo]:https://download.servo.org/\n[Electron]:https://electron.atom.io/\n[Node.js]:https://nodejs.org/\n[npm]:https://www.npmjs.com/\n[Servo]:https://github.com/servo/servo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserhtml%2Fbrowserhtml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrowserhtml%2Fbrowserhtml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserhtml%2Fbrowserhtml/lists"}