{"id":13447168,"url":"https://github.com/dyo/dyo","last_synced_at":"2026-04-05T11:31:35.606Z","repository":{"id":9861255,"uuid":"60721056","full_name":"dyo/dyo","owner":"dyo","description":"Dyo is a JavaScript library for building user interfaces.","archived":false,"fork":false,"pushed_at":"2024-09-27T05:47:52.000Z","size":6682,"stargazers_count":948,"open_issues_count":3,"forks_count":39,"subscribers_count":21,"default_branch":"master","last_synced_at":"2026-04-01T07:53:11.525Z","etag":null,"topics":["framework","javascript","virtual-dom"],"latest_commit_sha":null,"homepage":"https://dyo.js.org","language":"JavaScript","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/dyo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-08T18:33:36.000Z","updated_at":"2026-02-19T17:01:16.000Z","dependencies_parsed_at":"2025-03-07T16:35:29.839Z","dependency_job_id":"ce0dba89-3a3b-4861-a857-fcd9c65fba4e","html_url":"https://github.com/dyo/dyo","commit_stats":null,"previous_names":["thysultan/dio.js"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/dyo/dyo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyo%2Fdyo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyo%2Fdyo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyo%2Fdyo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyo%2Fdyo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dyo","download_url":"https://codeload.github.com/dyo/dyo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyo%2Fdyo/sbom","scorecard":{"id":362462,"data":{"date":"2025-08-11","repo":{"name":"github.com/dyo/dyo","commit":"851c1a905344f5b7b968da8d967b3574beaff77a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Code-Review","score":0,"reason":"Found 2/28 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":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":"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":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml:1","Info: no jobLevel write permissions found"],"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":"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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/dyo/dyo/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/dyo/dyo/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/dyo/dyo/main.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/main.yml:18","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":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 5 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"}}]},"last_synced_at":"2025-08-18T11:08:39.268Z","repository_id":9861255,"created_at":"2025-08-18T11:08:39.268Z","updated_at":"2025-08-18T11:08:39.268Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31434624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T08:13:15.228Z","status":"ssl_error","status_checked_at":"2026-04-05T08:13:11.839Z","response_time":75,"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":["framework","javascript","virtual-dom"],"created_at":"2024-07-31T05:01:09.968Z","updated_at":"2026-04-05T11:31:35.572Z","avatar_url":"https://github.com/dyo.png","language":"JavaScript","readme":"# Dyo\n\n[![Dyo](https://dyo.js.org/assets/images/logo.svg)](https://dyo.js.org)\n\nA JavaScript library for building user interfaces.\n\n[![Coverage](https://coveralls.io/repos/github/dyo/dyo/badge.svg?branch=master)](https://coveralls.io/github/dyo/dyo)\n[![Size](https://badgen.net/bundlephobia/minzip/dyo)](https://bundlephobia.com/result?p=dyo)\n[![Licence](https://badgen.net/badge/license/MIT/blue)](https://github.com/dyo/dyo/blob/master/LICENSE.md)\n[![NPM](https://badgen.net/npm/v/dyo)](https://www.npmjs.com/package/dyo)\n\n## Installation\n\n* Use a Direct Download: `\u003cscript src=dyo.js\u003e\u003c/script\u003e`\n* Use a CDN: `\u003cscript src=unpkg.com/dyo\u003e\u003c/script\u003e`\n* Use NPM: `npm install dyo --save`\n\n## Documentation\n\nDocumentation can be find [on the website](https://dyo.js.org).\n\nSee the [Getting Started](https://dyo.js.org/introduction.html) page for a quick overview.\n\nThe documentation is divided into several sections:\n\n* [Introduction](https://dyo.js.org/introduction.html)\n* [API Reference](https://dyo.js.org/api.html)\n* [Advanced Guides](https://dyo.js.org/advanced.html)\n* [Examples](https://dyo.js.org/examples.html)\n\nYou can improve it by sending pull requests to [this repository](https://github.com/dyo/dyo/tree/master/docs).\n\n## Examples\n\nSeveral examples can be found [on the website](https://dyo.js.org/examples.html). Here's one to get started:\n\n```js\nimport {h, render} from 'dyo'\n\nfunction Example (props) {\n\treturn h('h1', {}, 'Hello ', props.name)\n}\n\nrender(h(Example, {name: 'World'}), 'body')\n```\n\nThis will render a heading element with the text content \"Hello World\" into the specified target(the body element).\n\n## Comparison\n\nThe library is much alike React, so it's only natural that a comparison of the differences is in order; Which if successful might manage to highlight why it exists.\n\n#### Re-parenting\n\nThe `Portal` component supports string selectors as targets. This presents an array of different possibilities with regards to isomorphic target references.\n\n```js\n\nfunction Example (props) {\n\treturn h(Portal, {target: 'main'}, 'Hello')\n}\n\nrender(h(Example), 'body')\n```\n\nIn addition to this – re-parenting is baked into portals. That is when a portals container is changed, instead of unmounting its contents and re-mounting them to the newly designated container we can instead move its contents without replaying destruction unmount operations that may discard valuable interface and component state.\n\nIn co-ordination with custom renderers, portals afford the opportunity to create atomic branch specific custom renderers. Imagine isolated declarative canvas renderers within a document renderer.\n\n#### Promises\n\nPromises(or thenables) are first class values. This affords authors the ability to render promises, directly await promises within effects and events, and delay unmounting.\n\n```js\nrender(props =\u003e Promise.resolve('Hello'), 'body')\n\nfunction Example (props) {\n\tuseEffect(async () =\u003e {\n\t\t// out of band updates in here\n\t\t// are also batched\n\t\treturn async () =\u003e {\n\t\t\t// delays unmount until the animation\n\t\t\t// has completed\n\t\t\treturn props.current.animate({}).finished\n\t\t}\n\t})\n}\n```\n\n#### Callbacks\n\nIn an async world, public interfaces like `render` are not guaranteed to complete synchronously if a subtree happens to have async dependencies within it. A consequence of this will see more use cases for the optional `callback` arguments that this function accepts – in much the same way authors are afforded the ability to await on this central routine.\n\n```js\nawait render(props =\u003e Promise.resolve('Hello'), 'body')\n```\n\n##### Resources\n\nIn addition to other [hooks](https://dyo.js.org/hooks.html), a resource allocation hook that can be used to fetch and cache resources.\n\n```js\nfunction Example (props) {\n\tconst resource = useResource(props =\u003e fetch('https://reqres.in/api/users'))\n\treturn h('pre', {}, JSON.stringify(resource))\n}\n```\n\n##### Async Server Rendering\n\nServer side rendering supports the plethora of async primitives supported.\n\n```js\nimport {http} from 'http'\nimport {h, render, useResource} from 'dyo'\n\nfunction Example (props) {\n\tconst resource = useResource(props =\u003e fetch('https://reqres.in/api/users'))\n\treturn h('pre', {}, JSON.stringify(resource))\n}\n\nhttp.createServer((request, response) =\u003e {\n\treturn render(h('html', {}, h(Example)), response)\n}).listen(8080)\n```\n\n### License\n\nDyo is [MIT licensed](./LICENSE).\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyo%2Fdyo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdyo%2Fdyo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyo%2Fdyo/lists"}