{"id":13400701,"url":"https://github.com/riot/riot","last_synced_at":"2026-04-01T20:21:40.947Z","repository":{"id":10858347,"uuid":"13142126","full_name":"riot/riot","owner":"riot","description":"Simple and elegant component-based UI library","archived":false,"fork":false,"pushed_at":"2025-11-21T22:08:12.000Z","size":25788,"stargazers_count":14868,"open_issues_count":3,"forks_count":966,"subscribers_count":364,"default_branch":"main","last_synced_at":"2025-11-30T12:53:57.569Z","etag":null,"topics":["client-side","customelement","customelements","customtags","elegant","framework","javascript","lite","minimal","simple","view","webcomponents"],"latest_commit_sha":null,"homepage":"https://riot.js.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"slene/blackfriday","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/riot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":null,"patreon":null,"open_collective":"riot","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2013-09-27T05:21:01.000Z","updated_at":"2025-11-28T18:02:28.000Z","dependencies_parsed_at":"2023-12-01T22:32:17.757Z","dependency_job_id":"aeee918f-9965-480a-9d2c-00c0ab926b43","html_url":"https://github.com/riot/riot","commit_stats":{"total_commits":3351,"total_committers":202,"mean_commits":16.58910891089109,"dds":0.4118173679498657,"last_synced_commit":"11870fd304078505780e3934941221e5a410be8c"},"previous_names":["muut/riotjs","moot/riotjs"],"tags_count":304,"template":false,"template_full_name":null,"purl":"pkg:github/riot/riot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riot%2Friot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riot%2Friot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riot%2Friot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riot%2Friot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/riot","download_url":"https://codeload.github.com/riot/riot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riot%2Friot/sbom","scorecard":{"id":317574,"data":{"date":"2025-08-11","repo":{"name":"github.com/riot/riot","commit":"3087383e99871b3865ec976feed377d32b88aa0a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Maintained","score":10,"reason":"30 commit(s) and 6 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Warn: jobLevel 'checks' permission set to 'write': .github/workflows/test.yml:15","Info: jobLevel 'contents' permission set to 'read': .github/workflows/test.yml:16","Info: topLevel 'contents' permission set to 'read': .github/workflows/test.yml:10"],"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":"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":"Pinned-Dependencies","score":4,"reason":"dependency not pinned by hash detected -- score normalized to 4","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/riot/riot/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/riot/riot/test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/riot/riot/test.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"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":"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":"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":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Warn: project license file does not contain an FSF or OSI license."],"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":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 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":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-xffm-g5w8-qvg7","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6"],"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-18T00:35:05.959Z","repository_id":10858347,"created_at":"2025-08-18T00:35:05.960Z","updated_at":"2025-08-18T00:35:05.960Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27668496,"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-12-11T02:00:11.302Z","response_time":56,"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":["client-side","customelement","customelements","customtags","elegant","framework","javascript","lite","minimal","simple","view","webcomponents"],"created_at":"2024-07-30T19:00:54.775Z","updated_at":"2025-12-12T04:00:54.757Z","avatar_url":"https://github.com/riot.png","language":"JavaScript","readme":"[![Riot logo](https://riot.js.org/img/logo/riot-logo.svg)](https://riot.js.org)\n\n## Simple and elegant component-based UI library\n\n[![Build Status][ci-image]][ci-url]\n[![MIT License][license-image]][license-url]\n[![Join the discord community channel][discord-image]][discord-url]\n[![Join the chat (ja) at https://riot-jp-slackin.herokuapp.com/][slack-ja-image]][slack-ja-url]\n[![OpenCollective Backers][backer-badge]][backer-url] [![OpenCollective Sponsors][sponsor-badge]][sponsor-url]\n\n[![NPM version][npm-version-image]][npm-url]\n[![NPM downloads][npm-downloads-image]][npm-url]\n[![jsDelivr Hits][jsdelivr-image]][jsdelivr-url]\n[![Coverage Status][coverage-image]][coverage-url]\n![Riot Size][lib-size]\n[![Code Quality][qlty-image]][qlty-url]\n\n[![Sauce Test Status][saucelabs-image]][saucelabs-url]\n\n### Custom components • Concise syntax • Simple API • Tiny Size\n\nRiot brings custom components to all modern browsers. It is designed to offer you everything you wished the native web components API provided.\n\n#### Tag definition\n\n```html\n\u003ctimer\u003e\n  \u003cp\u003eSeconds Elapsed: { state.time }\u003c/p\u003e\n\n  \u003cscript\u003e\n    export default {\n      tick() {\n        this.update({ time: ++this.state.time })\n      },\n      onBeforeMount(props) {\n        // create the component initial state\n        this.state = {\n          time: props.start,\n        }\n\n        this.timer = setInterval(this.tick, 1000)\n      },\n      onUnmounted() {\n        clearInterval(this.timer)\n      },\n    }\n  \u003c/script\u003e\n\u003c/timer\u003e\n```\n\n[Open this example on Plunker](https://riot.js.org/examples/plunker/?app=timer)\n\n#### Mounting\n\n```javascript\n// mount the timer with its initial props\nriot.mount('timer', { start: 0 })\n```\n\n#### Nesting\n\nCustom components let you build complex views with HTML.\n\n```html\n\u003ctimetable\u003e\n  \u003ctimer start=\"0\"\u003e\u003c/timer\u003e\n  \u003ctimer start=\"10\"\u003e\u003c/timer\u003e\n  \u003ctimer start=\"20\"\u003e\u003c/timer\u003e\n\u003c/timetable\u003e\n```\n\nHTML syntax is the de facto language on the web and it's designed for building user interfaces. The syntax is explicit, nesting is inherent to the language and attributes offer a clean way to provide options for custom tags.\n\n### Performant and predictable\n\n- Absolutely the smallest possible amount of DOM updates and reflows.\n- Fast expressions bindings instead of virtual DOM memory performance issues and drawbacks.\n- One way data flow: updates and unmounts are propagated downwards from parent to children.\n- No \"magic\" or \"smart\" reactive properties or hooks\n- Expressions are pre-compiled and cached for high performance.\n- Lifecycle methods for more control.\n\n### Close to standards\n\n- No proprietary event system.\n- Future proof thanks to the javascript module syntax.\n- The rendered DOM can be freely manipulated with other tools.\n- No extra HTML root elements, `data-` attributes or fancy custom attributes.\n- No new syntax to learn.\n- Plays well with any frontend framework.\n\n### Use your dearest language and tools\n\n- Create components with CoffeeScript, Jade, LiveScript, Typescript, ES6 or [any pre-processor](https://riot.js.org/compiler/#pre-processors) you want.\n- Build with [@riotjs/cli](https://github.com/riot/cli), [webpack](https://github.com/riot/webpack-loader), [Rollup](https://github.com/riot/rollup-plugin-riot), [parcel](https://github.com/riot/parcel-plugin-riot), [Browserify](https://github.com/riot/riotify).\n- Test however you like; you can [load your riot tags directly in node](https://github.com/riot/ssr#render---to-render-only-markup)\n\n### Powerful and modular ecosystem\n\nThe Riot.js ecosystem is completely modular, it's designed to let you pick only the stuff you really need:\n\n- [@riotjs/cli](https://github.com/riot/cli) - CLI to locally compile your tags to javascript\n- [@riotjs/ssr](https://github.com/riot/ssr) - Super simple server side rendering\n- [@riotjs/hydrate](https://github.com/riot/hydrate) - Hydration strategy for your SPA\n- [@riotjs/route](https://github.com/riot/route) - Isomorphic router\n- [@riotjs/lazy](https://github.com/riot/lazy) - Lazy components loader\n- [@riotjs/hot-reload](https://github.com/riot/hot-reload) - Live reload plugin\n- [@riotjs/compiler](https://github.com/riot/compiler) - Advanced tags compiler\n- [@riotjs/parser](https://github.com/riot/parser) - HTML parser\n- [@riotjs/dom-bindings](https://github.com/riot/dom-bindings) - Expressions based template engine\n- [@riotjs/custom-elements](https://github.com/riot/custom-elements) - native custom elements implementation\n\n### CDN hosting\n\n- [unpkg](https://unpkg.com/riot/riot.js)\n- [jsDelivr](https://www.jsdelivr.com/projects/riot)\n- [cdnjs](https://cdnjs.com/libraries/riot)\n\n### How to contribute\n\nIf you are reading this it's already a good sign and I am thankful for it! I try my best working as much as I can on riot but your help is always appreciated.\n\nIf you want to contribute to riot helping the project maintenance please check first the list of [open issues](https://github.com/riot/riot/issues) to understand whether there is a task where you could help.\n\nRiot is mainly developed on UNIX systems so you will be able to run all the commands necessary to build and test the library using our [Makefile](Makefile). If you are on a Microsoft machine it could be harder to set up your development environment properly.\n\nFollowing the steps below you should be able to properly submit your patch to the project\n\n#### 1) Clone the repo and browse to the riot folder\n\n```shell\ngit clone git@github.com:riot/riot.git \u0026\u0026 cd riot\n```\n\n#### 2) Set up your git branch\n\n```shell\ngit checkout -b feature/my-awesome-patch\n```\n\n#### 3) Install the npm dependencies\n\n```shell\nnpm i\n```\n\n#### 4) Build and test riot using the Makefile\n\n```shell\n# To build and test riot\n$ make riot\n\n# To build without testing\n$ make raw\n```\n\n#### 5) Pull request only against the `main` branch making sure you have read [our pull request template](.github/PULL_REQUEST_TEMPLATE.md)\n\n#### 6) Be patient\n\n### Credits\n\nRiot is actively maintained with :heart: by:\n\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd valign=\"top\"\u003e\n        \u003cimg width=\"125\" height=\"125\" src=\"https://github.com/GianlucaGuarini.png?s=125?s=125\"\u003e\n        \u003cbr\u003e\n        \u003ca href=\"https://github.com/GianlucaGuarini\"\u003eGianluca Guarini\u003c/a\u003e\n      \u003c/td\u003e\n     \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\nMany thanks to all smart people from all over the world who helped improving it.\n\n## Official Website\n\n\u003chttps://riot.js.org\u003e\n\n## Backers\n\nSupport us with a monthly donation and help us continue our activities. [Become a backer][support-url]\n\n[![Backers][backers-image]][support-url]\n\n## Sponsors\n\nBecome a sponsor to get your logo on our README. [Become a sponsor][support-url]\n\n[![Sponsors][sponsors-image]][support-url]\n\n## Thanks\n\nSpecial thanks to Browserstack for their support\n\n\u003ctable cellpadding=\"8\"\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\n          \u003ca href='https://www.browserstack.com/?from=riotjs'\u003e\n            \u003cimg width='70px' src=\"https://cdn.worldvectorlogo.com/logos/browserstack.svg\" alt=\"browser stack\"\u003e\n          \u003c/a\u003e\n        \u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n[ci-image]: https://img.shields.io/github/actions/workflow/status/riot/riot/test.yml?style=flat-square\n[ci-url]: https://github.com/riot/riot/actions\n[license-image]: https://img.shields.io/badge/license-MIT-000000.svg?style=flat-square\n[license-url]: LICENSE.txt\n[npm-version-image]: https://img.shields.io/npm/v/riot.svg?style=flat-square\n[npm-downloads-image]: https://img.shields.io/npm/dm/riot.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/riot\n[saucelabs-image]: https://saucelabs.com/browser-matrix/testsriotjs.svg?1\n[saucelabs-url]: https://saucelabs.com/u/testsriotjs\n[coverage-image]: https://qlty.sh/gh/riot/projects/riot/coverage.svg\n[coverage-url]: https://qlty.sh/gh/riot/projects/riot\n[discord-url]: https://discord.gg/PagXe5Y\n[discord-image]: https://img.shields.io/badge/DISCORD-JOIN_CHANNEL_%E2%86%92-7289da.svg?style=flat-square\n[slack-ja-image]: https://img.shields.io/badge/SLACK_(ja)-JOIN_CHAT_%E2%86%92-551a8b.svg?style=flat-square\n[slack-ja-url]: https://riot-jp-slackin.herokuapp.com/\n[qlty-image]: https://qlty.sh/gh/riot/projects/riot/maintainability.svg\n[qlty-url]: https://qlty.sh/gh/riot/projects/riot\n[jsdelivr-image]: https://data.jsdelivr.com/v1/package/npm/riot/badge\n[jsdelivr-url]: https://www.jsdelivr.com/package/npm/riot\n[backer-url]: #backers\n[backer-badge]: https://opencollective.com/riot/backers/badge.svg?color=blue\n[sponsor-url]: #sponsors\n[sponsor-badge]: https://opencollective.com/riot/sponsors/badge.svg?color=blue\n[support-url]: https://opencollective.com/riot#support\n[lib-size]: https://img.badgesize.io/https://unpkg.com/riot/riot.min.js?compression=gzip\n[backers-image]: https://opencollective.com/riot/backers.svg\n[sponsors-image]: https://opencollective.com/riot/sponsors.svg\n","funding_links":["https://opencollective.com/riot"],"categories":["Uncategorized","JavaScript","MVC Frameworks and Libraries","目录","MVC Frameworks and Libraries [🔝](#readme)","framework","Table of contents","MVC 框架和库"],"sub_categories":["Uncategorized","Runner","Official Links","运行器","运行器e2e测试"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friot%2Friot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friot%2Friot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friot%2Friot/lists"}