{"id":24764468,"url":"https://github.com/seamapi/react-repl","last_synced_at":"2025-10-11T14:30:42.528Z","repository":{"id":46997860,"uuid":"336206817","full_name":"seamapi/react-repl","owner":"seamapi","description":"React component for creating a REPL or interactive command line interface","archived":false,"fork":false,"pushed_at":"2024-12-10T00:45:26.000Z","size":2738,"stargazers_count":23,"open_issues_count":5,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-28T03:13:08.091Z","etag":null,"topics":["react","react-component","repl"],"latest_commit_sha":null,"homepage":"https://seamapi.github.io/react-repl/?path=/story/reactrepljs--main","language":"JavaScript","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/seamapi.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":"2021-02-05T08:15:11.000Z","updated_at":"2024-11-04T16:46:37.000Z","dependencies_parsed_at":"2024-06-21T14:13:01.616Z","dependency_job_id":"3199df2c-ad44-4fbf-9d4c-c0c786da1053","html_url":"https://github.com/seamapi/react-repl","commit_stats":null,"previous_names":["seveibar/react-repl"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seamapi%2Freact-repl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seamapi%2Freact-repl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seamapi%2Freact-repl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seamapi%2Freact-repl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seamapi","download_url":"https://codeload.github.com/seamapi/react-repl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236101910,"owners_count":19095194,"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":["react","react-component","repl"],"created_at":"2025-01-28T22:31:28.092Z","updated_at":"2025-10-11T14:30:37.100Z","avatar_url":"https://github.com/seamapi.png","language":"JavaScript","readme":"# (Awesome) React Repl\n\nDisplay or interact with a REPL (Read Eval Print Loop). Create an interactive terminal for Python,\nJavascript or whatever in React.\n\n[Try it out](https://seamapi.github.io/react-repl/?path=/story/reactrepljs--main)\n\n\n![promises](https://user-images.githubusercontent.com/1910070/107008052-50cc7f80-6761-11eb-8ccc-61f79167f24b.png)\n![error](https://user-images.githubusercontent.com/1910070/107008157-7194d500-6761-11eb-8816-03111757ccf4.png)\n\n## Usage\n\n`npm install awesome-react-repl`\n\n\n### Javascript REPL\n\n```javascript\nimport { ReactReplJS } from \"awesome-react-repl\"\n\nconst JavascriptRepl = () =\u003e {\n  return  (\n    \u003cReactReplJS\n      title=\"My Javascript Repl!\"\n      height={300}\n      initiallyExecute={[\"a = 3\", \"b = 4\", \"a * b\"]}\n    /\u003e\n  )\n}\n```\n\n### General-Purpose REPL UI\n\n```javascript\nimport { ReactReplView } from \"awesome-react-repl\"\n\nconst GeneralPurposeReplUI = () =\u003e {\n  return  (\n    \u003cReactReplView\n      title={`My Awesome Repl!`}\n      tabs={[\"Javascript\", \"Python\"]}\n      selectedTab=\"Javascript\"\n      onChangeTab={action(\"onChangeTab\")}\n      onSubmit={action(\"onSubmit\")}\n      onClear={action(\"onClear\")}\n      height={200}\n      lines={[\n        { type: \"input\", value: \"obj = { something: 2 }\" },\n        { type: \"output\", value: '{ \"something\": 2 }' },\n        { type: \"input\", value: \"b\" },\n        { type: \"error\", value: \"TypeError: b is not defined\" },\n      ]}\n    /\u003e\n  )\n}\n```\n\n## Advanced Javascript REPL Usage\n\n```javascript\nimport { useReactReplJS } from \"awesome-react-repl\"\n\nconst JavascriptRepl = () =\u003e {\n  const { submitCode, ReactRepl } = useReactReplJS() \n  return  (\n    \u003cdiv\u003e\n      \u003cReactRepl\n        title=\"My Javascript Repl!\"\n        height={300}\n        initiallyExecute={[\"a = 3\", \"b = 4\", \"a * b\"]}\n      /\u003e\n      \u003cbutton onClick={() =\u003e submitCode('alert(`Button pressed! a=${a}! This will appear in the REPL!`)')}\u003eAlert!\u003c/button\u003e\n    \u003c/div\u003e\n  )\n}\n```\n\n## Development\n\n1. Run `yarn install`\n2. Run `yarn storybook`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseamapi%2Freact-repl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseamapi%2Freact-repl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseamapi%2Freact-repl/lists"}