{"id":16931528,"url":"https://github.com/romelperez/kantrux","last_synced_at":"2025-09-02T10:44:05.489Z","repository":{"id":57288255,"uuid":"161843976","full_name":"romelperez/kantrux","owner":"romelperez","description":"Ultralight web UI library for building static components with JSX support","archived":false,"fork":false,"pushed_at":"2024-08-31T14:01:33.000Z","size":573,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-28T00:50:35.196Z","etag":null,"topics":["jsx","library","lightweight","simple","ui"],"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/romelperez.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-14T21:48:43.000Z","updated_at":"2023-09-01T21:39:48.000Z","dependencies_parsed_at":"2024-10-28T13:17:49.972Z","dependency_job_id":"bf300ecc-b201-45ef-b064-79ec6a2a60b2","html_url":"https://github.com/romelperez/kantrux","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/romelperez/kantrux","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romelperez%2Fkantrux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romelperez%2Fkantrux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romelperez%2Fkantrux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romelperez%2Fkantrux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romelperez","download_url":"https://codeload.github.com/romelperez/kantrux/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romelperez%2Fkantrux/sbom","scorecard":{"id":783898,"data":{"date":"2025-08-11","repo":{"name":"github.com/romelperez/kantrux","commit":"59347fad9f644a339f97b7d12c11452c095f5f95"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"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":"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":0,"reason":"Found 0/30 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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":"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":"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":"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 'main'"],"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":"Vulnerabilities","score":0,"reason":"58 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","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-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-7wpw-2hjm-89gp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-44c6-4v22-4mhx","Warn: Project is vulnerable to: GHSA-4x5v-gmq8-25ch","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-vx3p-948g-6vhq","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-38fc-wpqx-33j7","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh"],"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-23T05:35:11.772Z","repository_id":57288255,"created_at":"2025-08-23T05:35:11.772Z","updated_at":"2025-08-23T05:35:11.772Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272746282,"owners_count":24986397,"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-08-29T02:00:10.610Z","response_time":87,"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":["jsx","library","lightweight","simple","ui"],"created_at":"2024-10-13T20:44:12.881Z","updated_at":"2025-09-02T10:44:05.350Z","avatar_url":"https://github.com/romelperez.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Kantrux](https://github.com/romelperez/kantrux/raw/main/kantrux.jpg)\n\n# Kantrux\n\nUltralight web UI library for building static components with [JSX](https://facebook.github.io/jsx/) support.\n\n[![version](https://img.shields.io/npm/v/kantrux.svg)](https://npmjs.org/package/kantrux)\n[![travis](https://img.shields.io/travis/romelperez/kantrux.svg)](https://travis-ci.org/romelperez/kantrux)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/kantrux.svg)](https://npmjs.org/package/kantrux)\n[![downloads](https://img.shields.io/npm/dm/kantrux.svg)](https://npmjs.org/package/kantrux)\n[![github stars](https://img.shields.io/github/stars/romelperez/kantrux.svg?style=social\u0026label=stars)](https://github.com/romelperez/kantrux)\n[![license](https://img.shields.io/github/license/romelperez/kantrux.svg?maxAge=2592000)](https://github.com/romelperez/kantrux/blob/main/LICENSE)\n[![code style: standardjs](https://img.shields.io/badge/code_style-standardjs-d2bb09.svg?style=flat-square)](https://standardjs.com)\n\n## Install\n\n### CommonJS\n\n```bash\n$ npm install kantrux\n```\n\n### UMD\n\n```html\n\u003cscript src=\"https://unpkg.com/kantrux/dist/kantrux.js\"\u003e\u003c/script\u003e\n```\n\n## How to use\n\n### JSX\n\n```js\n/** @jsx createNode */\n\nimport { createNode, render, Component } from 'kantrux';\n\nconst Title = ({ className, children }) =\u003e (\n  \u003ch1 className={className}\u003e{children}\u003c/h1\u003e\n);\n\nclass Content extends Component {\n  render () {\n    const { className, children } = this.props;\n    return \u003cp className={className}\u003e{children}\u003c/p\u003e;\n  }\n}\n\nconst node = (\n  \u003cdiv className='app'\u003e\n    \u003cTitle className='title'\u003eKantrux\u003c/Title\u003e\n    \u003cContent className='content'\u003eSimple web UI library in JSX!\u003c/Content\u003e\n  \u003c/div\u003e\n);\nconst root = document.querySelector('#root');\n\nrender(node, root);\n\n// #root element HTML:\n// \u003cdiv class=\"app\"\u003e\n//   \u003ch1 class=\"title\"\u003eKantrux\u003c/h1\u003e\n//   \u003cp class=\"content\"\u003eSimple web UI library in JSX!\u003c/p\u003e\n// \u003c/div\u003e\n```\n\n### Vanilla\n\n```js\nimport { createNode, render, Component } from 'kantrux';\n\nconst Title = ({ className, children }) =\u003e (\n  createNode('h1', { className }, children)\n);\n\nclass Content extends Component {\n  render () {\n    const { className, children } = this.props;\n    return createNode('p', { className }, children);\n  }\n}\n\nconst node = createNode(\n  'div',\n  { classname: 'app' },\n  createNode(Title, { className: 'title' }, 'Kantrux'),\n  createNode(Content, { className: 'content' }, 'Simple web UI library in JSX!')\n);\nconst root = document.querySelector('#root');\n\nrender(node, root);\n\n// #root element HTML:\n// \u003cdiv class=\"app\"\u003e\n//   \u003ch1 class=\"title\"\u003eKantrux\u003c/h1\u003e\n//   \u003cp class=\"content\"\u003eSimple web UI library in JSX!\u003c/p\u003e\n// \u003c/div\u003e\n```\n\n## Why?\n\nIf you don't need to worry about reactivity, stateful or contextful components,\nlifecycle hooks, or asynchronous patterns, you can use this library to build\nlightweight and simple components.\n\n## Features\n\nThis is like [Preact](https://preactjs.com) but with simple support for components.\n\n- Synchronous rendering\n- `HTMLElement` components as string nodes\n- Function components\n    - Accepts props as argument\n    - Returns node\n- Class components\n    - Use `constructor` for component setup\n    - Use `render` to define component\n- Components definition with [JSX](https://facebook.github.io/jsx/) using `createNode` as pragma:\n    - Using [Babel 6 plugin](https://babeljs.io/docs/en/6.26.3/babel-plugin-transform-react-jsx) `[\"transform-react-jsx\", { \"pragma\":\"createNode\" }]`\n    - Using [Babel 7 plugin](https://babeljs.io/docs/en/babel-plugin-transform-react-jsx) `[\"@babel/plugin-transform-react-jsx\", { \"pragma\":\"createNode\" }]`\n    - File inline `/** @jsx createNode */` using Babel (either 6 or 7)\n- Custom HTML attributes as props:\n    - `class` as `className`\n    - `for` as `htmlFor`\n- `ref` prop function support\n- `style` prop as object support\n- `dangerouslySetInnerHTML: { __html }` support\n- No special treatment for forms\n- No `propTypes` nor `defaultProps`\n- No `state` support\n- No `context` support\n- No lists `key` support\n- No hooks\n- No support for SVG\n\n## Contributors\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore --\u003e\n\u003ctable\u003e\u003ctr\u003e\u003ctd align=\"center\"\u003e\u003ca href=\"https://RomelPerez.com\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/1393135?v=4\" width=\"100px;\" alt=\"Romel Pérez\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eRomel Pérez\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#projectManagement-romelperez\" title=\"Project Management\"\u003e📆\u003c/a\u003e \u003ca href=\"https://github.com/romelperez/kantrux/commits?author=romelperez\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/romelperez/kantrux/commits?author=romelperez\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"#question-romelperez\" title=\"Answering Questions\"\u003e💬\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/kentcdodds/all-contributors)\nspecification.\n\n## About\n\nKantrux's logo is a photo of a bird named Barranquero endemic from Colombia.\n\nA colorful large bird that has a heavy bill and long tails with a distinctive\nracquet-like tip and known to nest in tunnels in river ban. Solitary or in pairs.\nFeed on fruit and insects on ground.\n\nSource: [birdsofcolombia.com](https://birdsofcolombia.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromelperez%2Fkantrux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromelperez%2Fkantrux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromelperez%2Fkantrux/lists"}