{"id":13726573,"url":"https://github.com/bloodyowl/reshowcase","last_synced_at":"2025-08-18T09:13:11.807Z","repository":{"id":39557363,"uuid":"174364111","full_name":"bloodyowl/reshowcase","owner":"bloodyowl","description":"A tool to create demos for your ReScript React components","archived":false,"fork":false,"pushed_at":"2023-11-03T11:08:53.000Z","size":1808,"stargazers_count":57,"open_issues_count":9,"forks_count":11,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-06T04:41:18.498Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://bloodyowl.github.io/reshowcase","language":"ReScript","has_issues":true,"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/bloodyowl.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["bloodyowl"]}},"created_at":"2019-03-07T14:49:41.000Z","updated_at":"2025-02-26T13:24:35.000Z","dependencies_parsed_at":"2024-01-10T19:10:48.339Z","dependency_job_id":null,"html_url":"https://github.com/bloodyowl/reshowcase","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/bloodyowl/reshowcase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloodyowl%2Freshowcase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloodyowl%2Freshowcase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloodyowl%2Freshowcase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloodyowl%2Freshowcase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bloodyowl","download_url":"https://codeload.github.com/bloodyowl/reshowcase/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloodyowl%2Freshowcase/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270969132,"owners_count":24677256,"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-08-18T02:00:08.743Z","response_time":89,"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":[],"created_at":"2024-08-03T01:03:13.305Z","updated_at":"2025-08-18T09:13:11.755Z","avatar_url":"https://github.com/bloodyowl.png","language":"ReScript","funding_links":["https://github.com/sponsors/bloodyowl"],"categories":["ReScript"],"sub_categories":[],"readme":"# Reshowcase\n\n\u003e A tool to create demos for your ReScript React components\n\n![Screenshot](./example/example-2021.png)\n\n```rescript\nopen Reshowcase.Entry\n\n// Create a demo\ndemo(({addCategory}) =\u003e {\n  addCategory(\"Title\", ({addDemo}) =\u003e {\n    // Add an example\n    addDemo(\"normal\", ({string}) =\u003e\n      // Register \"handles\" from your JSX directly\n      \u003ch1\u003e {string(\"text\", \"hello\")-\u003eReact.string} \u003c/h1\u003e\n    )\n    addDemo(\"font-size\", ({string, int}) =\u003e\n      \u003ch1\n        style={ReactDOM.Style.make(\n          ~fontSize=// Handles can be strings, ints, floats and booleans\n\n          {\n            let size = int(\"font size\", {min: 0, max: 100, initial: 30, step: 1})\n            `${size-\u003eBelt.Int.toString}px`\n          },\n          (),\n        )}\u003e\n        {string(\"text\", \"hello\")-\u003eReact.string}\n      \u003c/h1\u003e\n    )\n  })\n})\n\ndemo(({addCategory}) =\u003e\n  addCategory(\"Button\", ({addDemo}) =\u003e\n    addDemo(\"normal\", ({string, bool}) =\u003e\n      \u003cbutton disabled={bool(\"disabled\", false)}\u003e {string(\"text\", \"hello\")-\u003eReact.string} \u003c/button\u003e\n    )\n  )\n)\n\nstart()\n```\n\n## Install\n\n```console\nyarn add --dev reshowcase\n```\n\nThen add to your `\"reshowcase\"` to `bs-dependencies` in your `bsconfig.json`.\n\n\u003e If you're still using JSX 2, install `reshowcase@1.4.0`.\n\n## Usage\n\n### To start / develop:\n\n```console\n$ reshowcase start --entry=path/to/Demo.bs.js\n```\n\n### To build bundle:\n\n```console\n$ reshowcase build --entry=path/to/Demo.bs.js --output=path/to/bundle\n```\n\nIf you need custom webpack options, create the `.reshowcase/config.js` and export the webpack config, plugins and modules will be merged.\n\nIf you need a custom template, pass `--template=./path/to/template.html`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbloodyowl%2Freshowcase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbloodyowl%2Freshowcase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbloodyowl%2Freshowcase/lists"}