{"id":15460274,"url":"https://github.com/schollz/browsersync","last_synced_at":"2025-04-22T10:37:24.065Z","repository":{"id":57491943,"uuid":"170404089","full_name":"schollz/browsersync","owner":"schollz","description":"A simple live-reloading tool for developing HTML.","archived":false,"fork":false,"pushed_at":"2024-11-30T16:41:32.000Z","size":47,"stargazers_count":31,"open_issues_count":3,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-22T10:36:51.926Z","etag":null,"topics":["browsersync","development","html","live-reload"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/schollz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-02-12T22:55:38.000Z","updated_at":"2025-03-02T10:59:10.000Z","dependencies_parsed_at":"2024-06-20T07:24:23.094Z","dependency_job_id":"58185426-0d81-4259-96d7-e6eac6650902","html_url":"https://github.com/schollz/browsersync","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schollz%2Fbrowsersync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schollz%2Fbrowsersync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schollz%2Fbrowsersync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schollz%2Fbrowsersync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schollz","download_url":"https://codeload.github.com/schollz/browsersync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250221890,"owners_count":21394780,"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":["browsersync","development","html","live-reload"],"created_at":"2024-10-01T23:21:18.949Z","updated_at":"2025-04-22T10:37:23.770Z","avatar_url":"https://github.com/schollz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# browsersync\n\n\u003ca href=\"https://travis-ci.org/schollz/browsersync\"\u003e\u003cimg src=\"https://img.shields.io/travis/schollz/browsersync.svg?style=flat-square\" alt=\"Build Status\"\u003e\u003c/a\u003e\n\nThis tool is a Golang version of a paired down [browsersync](https://www.browsersync.io/), which features live-reloading of HTML (the only feature I need) in a simple single-binary executable. It works by prepending the `\u003c/body\u003e` of HTML pages with some [Javascript](https://github.com/schollz/browsersync/blob/master/data/sync.js) that caches the current scroll and also listens to a websockets for file changes to trigger a browser reload.\n\n## Install\n\n```\ngo install -v github.com/schollz/browsersync@latest\n```\n\n## Usage \n\n### Basic usage\n\nYou can just run `browsersync` in a directory:\n\n```bash\n$ browsersync\n```\n\nAnd then load your browser to `localhost:8003` which will render `index.html`. Any other URL will load the respective file on the computer.\n\n### Rendering Markdown\n\nYou can also use this to render markdown. The simplest way is to use\n\n```\n$ browersync --index README.md\n```\n\nwhich will define the `README.md` to be the index page and automatically turn on Markdown rendering.\n\nAlternatively, if you want to use your own styling, you simply make an HTML page, like `index.html` with the following:\n\n```html\n\u003chtml\u003e\n    \u003cbody\u003e\n        {{ MarkdownToHTML \"../README.md\" }}\n    \u003c/body\u003e\n\u003c/html\u003e\n```\n\nWhen you go to that page, the `browsersync` will automatically convert the specified markdown file (e.g. `README.md` in that example) and any changes in the file will be shown in the browser. See [`example`](https://github.com/schollz/browsersync/tree/master/example) for more info.\n\n\n## Contributing\n\nPull requests are welcome. Feel free to...\n\n- Revise documentation\n- Add new features\n- Fix bugs\n- Suggest improvements\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschollz%2Fbrowsersync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschollz%2Fbrowsersync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschollz%2Fbrowsersync/lists"}