{"id":17978344,"url":"https://github.com/ad-si/shaven","last_synced_at":"2026-04-05T17:40:08.568Z","repository":{"id":14623540,"uuid":"17340945","full_name":"ad-si/shaven","owner":"ad-si","description":"DOM building utility \u0026 Template engine based on JsonML + syntax sugar","archived":false,"fork":false,"pushed_at":"2024-04-21T19:13:38.000Z","size":2467,"stargazers_count":75,"open_issues_count":4,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-04-05T17:39:52.401Z","etag":null,"topics":["dom","html","html2shaven","jsonml","svg","template","template-engine"],"latest_commit_sha":null,"homepage":"https://shaven.ad-si.com","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/ad-si.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2014-03-02T16:02:00.000Z","updated_at":"2025-04-09T00:38:29.000Z","dependencies_parsed_at":"2024-04-21T21:12:13.727Z","dependency_job_id":"c8266cbf-011e-4be9-a67d-88add3c6939a","html_url":"https://github.com/ad-si/shaven","commit_stats":null,"previous_names":["adius/shaven"],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/ad-si/shaven","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ad-si%2Fshaven","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ad-si%2Fshaven/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ad-si%2Fshaven/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ad-si%2Fshaven/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ad-si","download_url":"https://codeload.github.com/ad-si/shaven/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ad-si%2Fshaven/sbom","scorecard":{"id":164165,"data":{"date":"2025-08-11","repo":{"name":"github.com/ad-si/shaven","commit":"9e34652432e7feeb459e36888b8a3007dc59c626"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/codeql-analysis.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":"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":"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":"SAST","score":10,"reason":"SAST tool detected: CodeQL","details":["Info: SAST configuration detected: CodeQL","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":"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/codeql-analysis.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/ad-si/shaven/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/ad-si/shaven/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/ad-si/shaven/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/ad-si/shaven/codeql-analysis.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction 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":"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":"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.1.0 not signed: https://api.github.com/repos/ad-si/shaven/releases/3484664","Warn: release artifact v1.0.0 not signed: https://api.github.com/repos/ad-si/shaven/releases/2901511","Warn: release artifact v1.1.0 does not have provenance: https://api.github.com/repos/ad-si/shaven/releases/3484664","Warn: release artifact v1.0.0 does not have provenance: https://api.github.com/repos/ad-si/shaven/releases/2901511"],"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":"Vulnerabilities","score":0,"reason":"51 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-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-x55w-vjjp-222r","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","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-jf85-cpcp-j695","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-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-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-qrpm-p2h7-hrv2","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-px4h-xg32-q955","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-hwj9-h5mp-3pm3","Warn: Project is vulnerable to: GHSA-566m-qj78-rww5","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","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-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-38fc-wpqx-33j7","Warn: Project is vulnerable to: GHSA-cf4h-3jhx-xvhq","Warn: Project is vulnerable to: GHSA-hc6q-2mpp-qw7j","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986","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"],"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-16T14:22:07.082Z","repository_id":14623540,"created_at":"2025-08-16T14:22:07.082Z","updated_at":"2025-08-16T14:22:07.082Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31444702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T15:22:31.103Z","status":"ssl_error","status_checked_at":"2026-04-05T15:22:00.205Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["dom","html","html2shaven","jsonml","svg","template","template-engine"],"created_at":"2024-10-29T17:33:18.547Z","updated_at":"2026-04-05T17:40:08.533Z","avatar_url":"https://github.com/ad-si.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Logo](./source/images/screenshot.png)\n\n\n# Shaven\n\n[![Build Status][build-status]](https://travis-ci.org/ad-si/shaven)\n\nA **DOM building utility** and **Template engine**\nbased on **JsonML** with syntax sugar.\n\nCheckout [shaven.ad-si.com] for extensive documentation.\n\n[build-status]: https://travis-ci.org/ad-si/shaven.svg\n[shaven.ad-si.com]: https://shaven.ad-si.com\n\n\n## Example\n\n```javascript\nshaven(\n  [document.body,\n    ['h1#logo', 'Static Example'],\n    ['p','Some example text'],\n    ['ul#list.bullets',\n      ['li', 'item1'],\n      ['li.active', 'item2'],\n      ['li',\n        ['a', 'item3', {href: '#'}]\n      ]\n    ],\n    ['em', 'Important', {\n      style: {\n        color: 'red',\n        'font-size': '2em',\n      },\n    }]\n  ]\n)\n```\n\ncompiles to\n\n```html\n\u003cbody\u003e\n  \u003ch1 id=\"logo\"\u003eStatic Example\u003c/h1\u003e\n  \u003cp\u003eSome example text\u003c/p\u003e\n  \u003cul id=\"list\" class=\"bullets\"\u003e\n    \u003cli\u003eitem1\u003c/li\u003e\n    \u003cli class=\"active\"\u003eitem2\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#\"\u003eitem3\u003c/a\u003e\u003c/li\u003e\n  \u003c/ul\u003e\n  \u003cem style=\"color:red;font-size:2em\"\u003eImportant\u003c/em\u003e\n\u003c/body\u003e\n```\n\nIn order to convert HTML fragments to shaven arrays, the included\n[`html2shaven`](https://www.npmjs.com/package/html2shaven) CLI tool can be used.\n\n\n## Features\n\n- Syntax Sugar for ids, classes and variable caching\n- Support for namespaces. (Lets you build SVGs and other XML based languages)\n- Callback functions on elements\n- Returns a Object containing the root element and the elements with an id\n\n\n## Advantages\n\n- Leverage the full power of JavaScript in your templates.\n  =\u003e No need to learn a new language!\n- Directly integrable into JavaScript files\n- Works in front- and backend environment\n- Templates normally tend to get more complicated with the number of variables\n  as they need to get escaped in some way.\n  With Shaven it's exactly the opposite. As variables are native to Shaven\n  the templates get simpler with an increasing number of variables.\n- Shaven templates can be easily build with every major programming language\n  and their existing JSON/YAML tools.\n\n\n## Installation\n\n```shell\nnpm install --save shaven\n```\n\nCheck out [shaven.ad-si.com] for a\ndetailed description of how to install shaven in other environments.\n\n\n## Browser Support\n\n- Firefox: 20+\n- Opera: 21+\n- Chrome: 34+\n- Safari: 9+ (Does not correctly escape HTML strings in attributes)\n- IE: ? (Probably 9+. Please submit a pull request if you know more.)\n- Edge (EdgeHTML): 12+\n\nEarlier Firefox, Opera and Chrome versions have the same bug as Safari.\nThat means even much older versions will just work fine\nunder normal circumstances.\n\n\n## Development\n\nCheck if code changes must be made in the [server](./source/library/server.js)\nand [browser](./source/library/browser.js) version of shaven.\n\n- Build website `make`\n- Bump version\n  1. Change version number in package file ([semver](http://semver.org))\n  2. Execute `npm run prepublish`\n  3. Commit\n  4. Tag commit (`v\u003cversion\u003e`)\n- Publish to npm `npm publish`\n- Release new version of website: `make deploy`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fad-si%2Fshaven","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fad-si%2Fshaven","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fad-si%2Fshaven/lists"}