{"id":13393777,"url":"https://github.com/kaivi/riek","last_synced_at":"2026-01-14T02:42:16.220Z","repository":{"id":4289145,"uuid":"43670504","full_name":"kaivi/riek","owner":"kaivi","description":"An set of common form components for React, editable in-line","archived":false,"fork":false,"pushed_at":"2023-01-12T09:48:58.000Z","size":2065,"stargazers_count":364,"open_issues_count":46,"forks_count":106,"subscribers_count":16,"default_branch":"master","last_synced_at":"2026-01-04T02:14:53.331Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/kaivi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-05T07:24:58.000Z","updated_at":"2025-06-04T20:51:31.000Z","dependencies_parsed_at":"2023-01-14T11:20:07.698Z","dependency_job_id":null,"html_url":"https://github.com/kaivi/riek","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/kaivi/riek","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaivi%2Friek","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaivi%2Friek/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaivi%2Friek/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaivi%2Friek/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaivi","download_url":"https://codeload.github.com/kaivi/riek/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaivi%2Friek/sbom","scorecard":{"id":547844,"data":{"date":"2025-08-11","repo":{"name":"github.com/kaivi/riek","commit":"3956a09e6ef4969a2aa15a949a16cd0086bcf137"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":2,"reason":"Found 6/22 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 14 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"50 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-hr2v-3952-633q","Warn: Project is vulnerable to: GHSA-qrmc-fj45-qfc2","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-xf7w-r453-m56c","Warn: Project is vulnerable to: GHSA-44pw-h2cw-w3vq","Warn: Project is vulnerable to: GHSA-vfrc-7r7c-w9mx","Warn: Project is vulnerable to: GHSA-7wwv-vh3v-89cq","Warn: Project is vulnerable to: GHSA-jp4x-w63m-7wgm","Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-6g33-f262-xjp4","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-2m39-62fm-q8r3","Warn: Project is vulnerable to: GHSA-mf6x-7mm4-x2g7","Warn: Project is vulnerable to: GHSA-j44m-qm6p-hp7m","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-g7q5-pjjr-gqvp","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-662x-fhqg-9p8v","Warn: Project is vulnerable to: GHSA-394c-5j6w-4xmx","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T09:59:19.750Z","repository_id":4289145,"created_at":"2025-08-20T09:59:19.750Z","updated_at":"2025-08-20T09:59:19.750Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408712,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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-07-30T17:01:00.099Z","updated_at":"2026-01-14T02:42:16.202Z","avatar_url":"https://github.com/kaivi.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","📦 Legacy \u0026 Inactive Projects"],"sub_categories":[],"readme":"# React Inline Edit Kit\nAn assortment of common HTML form elements, editable in-line the React way.\n\nTry out [the demo](http://kaivi.github.io/riek/) and see what it looks like.\n\n# Installation\n`npm install riek --save-dev`\n\n*or*\n\n`yarn add riek --dev`\n\n*Use `--save-dev` because you don't want to build and pack JS/CSS in production*\n\n# Usage\nImport the library:\n\n```javascript\nimport { RIEToggle, RIEInput, RIETextArea, RIENumber, RIETags, RIESelect } from 'riek'\nimport _ from 'lodash'\n```\n\nSuppose we want to be able to edit title of a `Task` and send changes to server. Here is a `Task` stored flat inside of our parent React component:\n\n```javascript\nthis.state = {\n  id: 1,\n  title: 'Cover with tests',\n  completed: false\n}\n```\n\nNow we need a function which will send the single altered `{ key: value }` and upsert local state. You can implement it inside of your flux/redux/mobx store:\n\n```javascript\nconst httpTaskCallback = (task) =\u003e {\n  request.post(`/api/task/${this.state.id}`)\n    .send(task)\n    .end((err, res) =\u003e {\n      if (!err) return this.setState({ ...task })\n      // Handle HTTP error\n    })\n}\n```\n\nMeanwhile, there is a simple Express handler on our API server:\n\n```javascript\napp.use('/api/task/:id', async (req, res) =\u003e {\n  // req.body will equal to { title: 'A new title' }\n  const { id } = req.params\n  await Task.update({ ...req.body }).where({ id })\n  res.send('OK')\n})\n```\n\nFinally, in our `render` method, we add a minimal `RIEInput`:\n\n```javascript\n\u003cRIEInput\n  value={this.state.text}\n  change={this.httpTaskCallback}\n  propName='title'\n  validate={_.isString} /\u003e\n```\n\n...repeat the last step, adding a Riek component for any object property we wish to edit.\n\nComponents come unstyled, so take a look at [demo.jsx](https://github.com/kaivi/riek/blob/master/demo/demo.jsx) for examples.\n\n## Common props\n\n### Required\n* **value**: initial prop value\n* **propName**: name of the prop to return to the _change_ function\n* **change**: function which will receive a plain object with a single key, provided in _propName_\n\n### Optional\n* **validate**: validator function, returning a boolean\n* **shouldBlockWhileLoading**: disables editing until a new value is confirmed by parent\n* **shouldRemainWhileInvalid**: remain in editing mode if validation fails\n* **defaultProps**: Additional props for idle component.\n\n#### Customization\n* **classLoading**: CSS class name to use when loading\n* **classEditing**: CSS class name to apply while in editing mode\n* **classInvalid**: CSS class name to apply when _validate_ returned false\n* **className**: CSS base class\n* **editProps**: Additional props for the editing component. This allows you to, for example, specify a maxLength attribute to control the maximum number of characters in the textarea, or add `style`.\n\n#### Hooks\n* **beforeStart**: Fires before editing starts\n* **afterStart**: Fires after editing starts\n* **beforeFinish**: Fires before editing ends, before validations\n* **afterFinish**: Fires after editing ends, after validations\n\n### Component-specific props\n\n#### RIENumber\n* **format**: custom formatting function, returns formatted string\n\n#### RIETextArea\n* **rows**: rows property on textarea tag while editing\n* **cols**: rows property on textarea tag while editing\n\n#### RIESelect\n* **options**: an array of objects containing values and text for [select options](http://www.w3schools.com/tags/tag_option.asp)\n```javascript\n\u003cRIESelect ... options={[\n  {id: '1', text: 'one'},\n  {id: '2', text: 'two'},\n  {id: '3', text: 'three'}\n]} /\u003e\n```\n\n# Contributing\n\nThe build process does not work with Node v6 at the moment: use [Node Version Manager](https://github.com/creationix/nvm), or just plain Node v5.6.0.\n\n1. Clone this repo locally, run `npm i`\n2. Make your changes\n3. Do `npm run build` to compile the lib and demo\n4. Open `index.html` and check if it works\n5. Open JS console in browser, set `localStorage.debug = '*'` to see debug messages, add more if necessary\n6. ???\n7. Submit a pull request","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaivi%2Friek","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaivi%2Friek","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaivi%2Friek/lists"}