{"id":32360534,"url":"https://github.com/radekstepan/blad","last_synced_at":"2025-10-24T14:54:44.722Z","repository":{"id":3769772,"uuid":"4846526","full_name":"radekstepan/blad","owner":"radekstepan","description":"A minimalist flat-file CMS with dynamic content","archived":false,"fork":false,"pushed_at":"2017-05-22T18:36:43.000Z","size":1677,"stargazers_count":11,"open_issues_count":17,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-09T02:35:01.908Z","etag":null,"topics":["cms"],"latest_commit_sha":null,"homepage":"http://www.micklemlab.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/radekstepan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-30T23:48:46.000Z","updated_at":"2024-09-23T22:25:19.000Z","dependencies_parsed_at":"2022-09-13T10:11:20.244Z","dependency_job_id":null,"html_url":"https://github.com/radekstepan/blad","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/radekstepan/blad","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radekstepan%2Fblad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radekstepan%2Fblad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radekstepan%2Fblad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radekstepan%2Fblad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/radekstepan","download_url":"https://codeload.github.com/radekstepan/blad/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radekstepan%2Fblad/sbom","scorecard":{"id":757609,"data":{"date":"2025-08-11","repo":{"name":"github.com/radekstepan/blad","commit":"2677d8d9d62b4668bf30c2f6763cdc7d530ce7d2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Code-Review","score":1,"reason":"Found 3/30 approved changesets -- score normalized to 1","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":"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":"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":"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":"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":"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":"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":"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: GNU Affero General Public License v3.0: 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 '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 3 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-22T22:12:54.151Z","repository_id":3769772,"created_at":"2025-08-22T22:12:54.151Z","updated_at":"2025-08-22T22:12:54.151Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280814240,"owners_count":26395857,"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-24T02:00:06.418Z","response_time":73,"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":["cms"],"created_at":"2025-10-24T14:54:43.476Z","updated_at":"2025-10-24T14:54:44.714Z","avatar_url":"https://github.com/radekstepan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# blað\n\nA minimalist flat-file CMS with dynamic content.\n\n[![Build Status](https://img.shields.io/travis/radekstepan/blad/master.svg?style=flat)](https://travis-ci.org/radekstepan/blad)\n[![Dependencies](http://img.shields.io/david/radekstepan/blad.svg?style=flat)](https://david-dm.org/radekstepan/blad)\n[![License](http://img.shields.io/badge/license-AGPL--3.0-red.svg?style=flat)](LICENSE)\n\n## Features\n\n1. Reads content from Markdown files and YAML front-matter.\n1. No database or write access to disk needed.\n1. In-memory cache maintains dynamic content defined in helper functions.\n1. Powerful [Swig](http://paularmstrong.github.io/swig/) templating.\n\n## Quickstart\n\n```bash\n$ npm install blad -g\n$ blad --port 8080\n# blad/4.0.0-alpha started on port 8080\n```\n\n## Configuration\n\nThe following command will launch a blad server on port `5050`, sourcing files from the `example/` directory and keep all cached content for a period of `1` day.\n\n```bash\n$ ./bin/blad.js --port 5050 --source example/ --cache 1440\n```\n\n### Content\n\nThe site pages are maintained as sets of Markdown files with YAML front-matter. The name corresponds to the url of the page so, for example, `/content/people/radek.md` will get mapped to the `/people/radek` URL.\n\nAmong the fields one can set in the front-matter, `template` is the most important one. It sets a Swig HTML file that will be used to render the page. Not specifying this property will make the page serve `204 No Content` when accessed.\n\nFields are represented as key-value pairs of arbitrary depth.\n\n### Layouts\n\nIs a place where [Swig](http://paularmstrong.github.io/swig/) templates live. They can be extended and macros work too.\n\nIf a `404.html` template is provided together with a document entitled `404.md`, these will be rendered when a user tries to visit a page that does not exist.\n\nYou can access the URL of a page you are on by using the `url` key.\n\n#### Relations\n\nYou can access content in other documents by using the relations helper object.\n\nTo get a list of top-level pages in the CMS use:\n\n```\n{% for page in rel.menu() %}\n  {{ page.url }}\n{% endfor %}\n```\n\nTo get a list of sibling documents:\n\n```\n{% for page in rel.siblings(url) %}\n  {{ page.url }}\n{% endfor %}\n```\n\nYou can get a list of children of depth `n`:\n\n```\n{% for page in rel.children(url, n) %}\n  {{ page.url }}\n{% endfor %}\n```\n\nAccess the first existing parent document:\n\n```\n{% set parent = rel.parent(url) %}\n```\n\nCheck if one document is the same as another or one of its descendants:\n\n```\n{% set isFamily = rel.isFamily('/people', '/people') %}\n```\n\nOr just check if one document is a child of another:\n\n```\n{% set isChild = rel.isChild('/people', '/people/radek') %}\n```\n\n### Helpers\n\nAre modules (in JS or CoffeeScript) that can be accessed at page render stage. Typically they will be used to access remote data to then be rendered in a page. In a YAML front-matter we would request a helper like so:\n\n```\n---\nhelpers:\n  people: my_helper.js\n---\n```\n\nThe first time a page is rendered, the helper in `my_helper.js` is called. It is expected to be a function with two parameters, `data` and `cb`. The former is a map of key-value fields from the front-matter, the latter a callback for when the helper has done its job. As an example:\n\n```js\nmodule.exports = (data, cb) =\u003e {\n  // Do some work...\n\n  // Call back.\n  cb(null, result);\n};\n```\n\nYou can access 3rd party libraries here by defining them in `package.json` of the site.\n\nThe data is then accessible under the key `people` (in the example above) in the page layout and saved for `--cache` amount of time. This is a startup parameter and saves having us make potentially expensive operations every time a page is requested.\n\n### Public\n\nAll static content, like CSS and JS files, can be accessed here. Use `/public/path` in layouts when accessing these files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradekstepan%2Fblad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fradekstepan%2Fblad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradekstepan%2Fblad/lists"}