{"id":13726310,"url":"https://github.com/reasonml/reason-tools","last_synced_at":"2025-07-26T04:04:03.223Z","repository":{"id":66125952,"uuid":"71732507","full_name":"reasonml/reason-tools","owner":"reasonml","description":"Adds Reason to the browser","archived":false,"fork":false,"pushed_at":"2018-06-03T20:16:36.000Z","size":22852,"stargazers_count":372,"open_issues_count":25,"forks_count":15,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-06-01T16:19:56.769Z","etag":null,"topics":["browser-extension","chrome","ocaml","reason","reasonml","refmt"],"latest_commit_sha":null,"homepage":"","language":"OCaml","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/reasonml.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}},"created_at":"2016-10-23T22:05:52.000Z","updated_at":"2025-05-06T01:39:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"805d5c90-0abf-49b4-bd27-f5212a4993ba","html_url":"https://github.com/reasonml/reason-tools","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/reasonml/reason-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reasonml%2Freason-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reasonml%2Freason-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reasonml%2Freason-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reasonml%2Freason-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reasonml","download_url":"https://codeload.github.com/reasonml/reason-tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reasonml%2Freason-tools/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267116188,"owners_count":24038623,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["browser-extension","chrome","ocaml","reason","reasonml","refmt"],"created_at":"2024-08-03T01:02:58.854Z","updated_at":"2025-07-26T04:04:03.198Z","avatar_url":"https://github.com/reasonml.png","language":"OCaml","funding_links":[],"categories":["OCaml","Reason"],"sub_categories":["Tools"],"readme":"# Reason Tools\n\nAdds [Reason](http://reasonml.github.io/) to the browser.\n\n## Getting started\n\nDirectly in the browser: https://reasonml.github.io/reason-tools/popup.html\n\nOr, browser extensions: [Chrome](https://chrome.google.com/webstore/detail/reason-tools/kmdelnjbembbiodplmhgfjpecibfhadd) | [Firefox](https://addons.mozilla.org/en-US/firefox/addon/reason-tools/)\n\n![demo of reason-tools](https://raw.githubusercontent.com/rickyvetter/reason-tools/master/assets/demo.gif)\n\nWhen you trigger the extension, it will copy the text you have highlighted and put it into an editor. The text is then translated into the corresponding Reason/OCaml text. Reason Tools will automatically convert between `.re`, `.ml`, `.rei`, and `.mli` text. In browsers that support it (currently just Chrome), a shortcut is added to open the extension with the highlighted text: `Alt+D`.\n\n![before and after of auto conversion](https://cloud.githubusercontent.com/assets/1909539/21284240/f5828a68-c3ca-11e6-9e29-13cf1a4f05fa.png)\n\n### OCaml Documentation\n\nReason Tools tries to detect OCaml documentation pages and automatically convert between Reason and OCaml syntaxes. It provides an escape hatch for use if there is a false positive detection, or if you prefer the default OCamlDoc styles.\n\n### Github Integration\n\nReason Tools adds a shortcut from interface to implementation files (`.re` \u003c=\u003e `.rei`, `.ml` \u003c=\u003e `.mli`) on Github when it's detected. Triggered by `Alt+I` by default (\u003e v0.0.19).\n\n## Contribute\n\nTo get started contributing you can clone and build the extension:\n\n```sh\ngit clone https://github.com/rickyvetter/reason-tools.git\ncd reason-tools\nnpm install # this will take a few minutes\n```\n\n`npm run build` to build the project. You also have the granular steps `build:self` and `build:js` for faster iteration.\n\nTo load in Chrome, go to `chrome://extensions/` and turn on Developer Mode. From there you should be able to select \"Load unpacked extension...\" and choose `reason-tools/_build/extension`.\n\n### Build Systems\n\nThis project is a bit unconventional in nature (compiling a compiler and a parser/printer to web), so it uses a few build systems currently.\n\n- A custom `shell.sh` is used to compile Reason and the compiler to JavaScript.\n- [Bsb](http://bucklescript.github.io/bucklescript/Manual.html#_build_system_support) is used to build its Reason logic. Nothing special.\n- [Webpack](http://webpack.github.io/) is used to bundle the whole js output into a single pack.\n\n## Thanks\n\nThe foundation of the project is, without a doubt, [refmt-web](https://github.com/Schmavery/refmt-web). This is an awesome project by @Schmavery which does the same refmt in a web page.\n\n[reason-web-toplevel](https://github.com/Engil/reason-web-toplevel), by @Engil was also an awesome project where a lot of the work in this project came from.\n\nAlso huge thanks to the [js_of_ocaml](https://github.com/ocsigen/js_of_ocaml) team for building a compiler that pretty effortlessly builds Reason and refmt utils in JS.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freasonml%2Freason-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freasonml%2Freason-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freasonml%2Freason-tools/lists"}