{"id":15837097,"url":"https://github.com/afeiship/react-codeflask","last_synced_at":"2026-03-01T23:03:24.233Z","repository":{"id":96088174,"uuid":"52781076","full_name":"afeiship/react-codeflask","owner":"afeiship","description":"A micro code-editor for awesome web pages.","archived":false,"fork":false,"pushed_at":"2024-08-19T08:14:30.000Z","size":295,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-21T23:02:53.087Z","etag":null,"topics":["code","codeflask","codeforces","editor","highlight","live","react"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2016-02-29T09:52:48.000Z","updated_at":"2024-08-19T08:14:34.000Z","dependencies_parsed_at":"2024-08-19T09:39:32.952Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/react-codeflask","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/react-codeflask","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-codeflask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-codeflask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-codeflask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-codeflask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/react-codeflask/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-codeflask/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29987656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T22:42:38.399Z","status":"ssl_error","status_checked_at":"2026-03-01T22:41:51.863Z","response_time":124,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["code","codeflask","codeforces","editor","highlight","live","react"],"created_at":"2024-10-05T15:20:54.475Z","updated_at":"2026-03-01T23:03:24.218Z","avatar_url":"https://github.com/afeiship.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-codeflask\n\u003e A micro code-editor for awesome web pages.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```shell\nnpm install -S @jswork/react-codeflask\n```\n\n## usage\n1. import css\n  ```scss\n  @import \"~@jswork/react-codeflask/dist/style.css\";\n\n  // or use sass\n  @import \"~@jswork/react-codeflask/dist/style.scss\";\n\n  // customize your styles:\n  $react-codeflask-options: ()\n  ```\n2. import js\n  ```js\n  import React, { useState } from 'react';\n  import ReactCodeflask from '@jswork/react-codeflask';\n  import '../../src/components/style.scss';\n  import styled from 'styled-components';\n  // import 'prismjs/themes/prism.css';\n\n  const Container = styled.div`\n    width: 80%;\n    margin: 30px auto 0;\n\n    \u003e .is-actions {\n      margin-top: 10px;\n    }\n  `;\n\n  export default () =\u003e {\n    const [val, setVal] = useState(\n      `curl 'https://api.cdnjs.com/libraries/backbone.js/tutorials/this-tutorial-doesnt-exist' | json`\n    );\n    return (\n      \u003cContainer\u003e\n        \u003cReactCodeflask\n          value={val}\n          height={0}\n          language=\"js\"\n          onChange={(e) =\u003e {\n            // console.log('current value:', e.target.value);\n            setVal(e.target.value);\n          }}\n        /\u003e\n\n        \u003cdiv className=\"is-actions\"\u003e\n          \u003cbutton\n            onClick={(e) =\u003e {\n              setVal('const for=\"bar\"; \\nlet bar=\"bc\";');\n            }}\u003e\n            Set value.\n          \u003c/button\u003e\n        \u003c/div\u003e\n      \u003c/Container\u003e\n    );\n  };\n\n  ```\n\n## preview\n- https://afeiship.github.io/react-codeflask/\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/react-codeflask/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/react-codeflask\n[version-url]: https://npmjs.org/package/@jswork/react-codeflask\n\n[license-image]: https://img.shields.io/npm/l/@jswork/react-codeflask\n[license-url]: https://github.com/afeiship/react-codeflask/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-codeflask\n[size-url]: https://github.com/afeiship/react-codeflask/blob/master/dist/react-codeflask.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/react-codeflask\n[download-url]: https://www.npmjs.com/package/@jswork/react-codeflask\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Freact-codeflask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Freact-codeflask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Freact-codeflask/lists"}