{"id":20060676,"url":"https://github.com/ficusjs/ficusjs-renderers","last_synced_at":"2025-10-07T05:34:00.134Z","repository":{"id":48303592,"uuid":"307996590","full_name":"ficusjs/ficusjs-renderers","owner":"ficusjs","description":"Minified ES module renderers for FicusJS","archived":false,"fork":false,"pushed_at":"2025-01-06T18:23:07.000Z","size":1172,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-28T06:37:59.741Z","etag":null,"topics":["css","ficusjs","frontend","htm","lit-html","preact","uhtml","web-components"],"latest_commit_sha":null,"homepage":"https://docs.ficusjs.org/renderers/","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/ficusjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":"ficusjs"}},"created_at":"2020-10-28T11:35:47.000Z","updated_at":"2024-10-10T20:50:54.000Z","dependencies_parsed_at":"2024-06-21T14:11:00.058Z","dependency_job_id":"0e56ae71-e88c-41e4-a2dd-cd4b6da09d70","html_url":"https://github.com/ficusjs/ficusjs-renderers","commit_stats":{"total_commits":55,"total_committers":2,"mean_commits":27.5,"dds":"0.018181818181818188","last_synced_commit":"b472c8061535e02110f91c9c1f7ca99b617f8f05"},"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"purl":"pkg:github/ficusjs/ficusjs-renderers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ficusjs%2Fficusjs-renderers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ficusjs%2Fficusjs-renderers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ficusjs%2Fficusjs-renderers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ficusjs%2Fficusjs-renderers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ficusjs","download_url":"https://codeload.github.com/ficusjs/ficusjs-renderers/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ficusjs%2Fficusjs-renderers/sbom","scorecard":{"id":398989,"data":{"date":"2025-08-11","repo":{"name":"github.com/ficusjs/ficusjs-renderers","commit":"49c02a363d190d1cf3a2e279c55d5f72a1d659f1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"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":"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":"Code-Review","score":0,"reason":"Found 0/29 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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/pr.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":"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/pr.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/ficusjs/ficusjs-renderers/pr.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/ficusjs/ficusjs-renderers/pr.yml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/pr.yml:20","Info:   0 out of   2 GitHub-owned 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":"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":-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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 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":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","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-18T19:41:33.669Z","repository_id":48303592,"created_at":"2025-08-18T19:41:33.670Z","updated_at":"2025-08-18T19:41:33.670Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278723919,"owners_count":26034691,"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-10-07T02:00:06.786Z","response_time":59,"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":["css","ficusjs","frontend","htm","lit-html","preact","uhtml","web-components"],"created_at":"2024-11-13T13:16:16.907Z","updated_at":"2025-10-07T05:34:00.115Z","avatar_url":"https://github.com/ficusjs.png","language":"JavaScript","readme":"# FicusJS renderers\n\nMinified ES module renderers for [FicusJS](https://docs.ficusjs.org).\n\nThis package provides a tested set of renderers as ES modules to make working with them much easier.\n\n## Getting started\n\nA `renderer` function can be provided when creating a new [FicusJS](https://docs.ficusjs.org) component.\nThis allows any renderer to be plugged into a component.\n\nThe following renderers have been tested with [FicusJS](https://docs.ficusjs.org) and are available as minified bundles in this package to make working with them much easier.\n\n- [htm](https://www.npmjs.com/package/htm) (JSX-like syntax - no transpiler necessary) - 910 B gzipped\n- [htm](https://www.npmjs.com/package/htm) with [Preact](https://www.npmjs.com/package/preact) (JSX-like syntax - no transpiler necessary) - 4.46 KB gzipped\n- [lit-html](https://www.npmjs.com/package/lit-html) - 3.02 KB gzipped\n- [uhtml](https://www.npmjs.com/package/uhtml) - 2.76 KB gzipped\n- css - 198 B gzipped\n\n## htm\n\nThe [htm](https://www.npmjs.com/package/htm) renderer is a JSX-like renderer available in this package.\n\n```js\nimport { html, renderer } from 'https://cdn.skypack.dev/@ficusjs/renderers@5/htm'\n\ncreateComponent('test-comp', {\n  renderer,\n  render () {\n    return html`\n      \u003cdiv\u003eSome HTML content with ${someVariable}\u003c/div\u003e\n    `\n  }\n})\n```\n\n## htm with Preact\n\nThe [htm](https://www.npmjs.com/package/htm) with [Preact](https://www.npmjs.com/package/preact) renderer is available in this package.\n\n```js\nimport { html, renderer } from 'https://cdn.skypack.dev/@ficusjs/renderers@5/htm-preact'\n\ncreateComponent('test-comp', {\n  renderer,\n  render () {\n    return html`\n      \u003cdiv\u003eSome HTML content with ${someVariable}\u003c/div\u003e\n    `\n  }\n})\n```\n\n## lit-html\n\nThe [lit-html](https://www.npmjs.com/package/lit-html) renderer is available in this package.\n\n```js\nimport { html, renderer } from 'https://cdn.skypack.dev/@ficusjs/renderers@5/lit-html'\n\ncreateComponent('test-comp', {\n  renderer,\n  render () {\n    return html`\n      \u003cdiv\u003eSome HTML content with ${someVariable}\u003c/div\u003e\n    `\n  }\n})\n```\n\n## uhtml\n\nThe [uhtml](https://www.npmjs.com/package/uhtml) renderer is available in this package.\n\n```js\nimport { html, renderer } from 'https://cdn.skypack.dev/@ficusjs/renderers@5/uhtml'\n\ncreateComponent('test-comp', {\n  renderer,\n  render () {\n    return html`\n      \u003cdiv\u003eSome HTML content with ${someVariable}\u003c/div\u003e\n    `\n  }\n})\n```\n\n## css\n\nThe css renderer is available in this package and is intended for rendering CSS styles within a component.\n\nThis renderer is used in conjunction with the [withStyles](https://docs.ficusjs.org/extending-components/with-styles/) component extension.\n\n```js\n// import the css tagged template literal\nimport { css } from 'https://cdn.skypack.dev/@ficusjs/renderers@5/css'\n\ncreateCustomElement(\n  'test-comp',\n  withStyles({\n    renderer,\n    styles () {\n      return css`\n        test-comp div {\n          background-color: purple;\n          color: pink\n        }\n      `\n    },\n    render () {\n      return html`\n        \u003cdiv\u003eSome HTML content with ${someVariable}\u003c/div\u003e\n      `\n    }\n  })\n)\n```\n\n## Installation\n\nFicusJS renderers can be installed in a number of ways.\n\n### CDN\n\nWe recommend using native ES modules in the browser.\n\n```html\n\u003cscript type=\"module\"\u003e\n  import { html, renderer } from 'https://cdn.skypack.dev/@ficusjs/renderers@5/uhtml'\n\u003c/script\u003e\n```\n\nFicusJS renderers is available on [Skypack](https://www.skypack.dev/view/@ficusjs/renderers).\n\n### NPM\n\nFicusJS renderers work nicely with build tools such as Snowpack, Webpack or Rollup. If you are using a NodeJS tool, you can install the NPM package.\n\n```bash\nnpm install @ficusjs/renderers\n```\n\n### Available builds\n\nFicusJS renderers only provides ES module builds. For legacy browsers or alternative modules such as CommonJS, it is recommended to use a build tool to transpile the code.\n\n## Development\n\nHow to set-up FicusJS renderers for local development.\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/ficusjs/ficusjs-renderers.git\n```\n\n2. Change the working directory\n\n```bash\ncd ficusjs-renderers\n```\n\n3. Install dependencies\n\n```bash\nnpm install\n```\n\n4. Run the local development server\n\n```bash\nnpm run dev\n```\n\nThat's it! Now open http://localhost:8080 to see a local app.\n\n## License\n\nThis project is licensed under the MIT License - see the [`LICENSE`](LICENSE) file for details.\n\n## Contributing to FicusJS renderers\n\nAny kind of positive contribution is welcome! Please help us to grow by contributing to the project.\n\nIf you wish to contribute, you can work on any features you think would enhance the library. After adding your code, please send us a Pull Request.\n\n\u003e Please read [CONTRIBUTING](CONTRIBUTING.md) for details on our [CODE OF CONDUCT](CODE_OF_CONDUCT.md), and the process for submitting pull requests to us.\n\n## Support\n\nWe all need support and motivation. FicusJS is not an exception. Please give this project a ⭐️ to encourage and show that you liked it. Don't forget to leave a star ⭐️ before you move away.\n\nIf you found the library helpful, please consider [sponsoring us](https://github.com/sponsors/ficusjs).\n","funding_links":["https://github.com/sponsors/ficusjs"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fficusjs%2Fficusjs-renderers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fficusjs%2Fficusjs-renderers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fficusjs%2Fficusjs-renderers/lists"}