{"id":23819834,"url":"https://github.com/kth/basic-html-templates","last_synced_at":"2026-04-17T05:02:10.581Z","repository":{"id":40567082,"uuid":"252190784","full_name":"KTH/basic-html-templates","owner":"KTH","description":"A simple way to get web pages to look somewhat like the kth.se design. The templates are intended to be used in private to semiprivate services.","archived":false,"fork":false,"pushed_at":"2023-09-29T04:03:20.000Z","size":197,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-10-19T22:55:13.110Z","etag":null,"topics":["html-template","javascript","npm"],"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/KTH.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-01T13:59:43.000Z","updated_at":"2022-01-03T19:15:57.000Z","dependencies_parsed_at":"2024-11-20T11:26:41.586Z","dependency_job_id":"4af59c9a-484e-426b-971a-e4943ba97ae7","html_url":"https://github.com/KTH/basic-html-templates","commit_stats":{"total_commits":97,"total_committers":4,"mean_commits":24.25,"dds":0.2680412371134021,"last_synced_commit":"391314c83077e28f21e27e08aee4a4f3a198c371"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KTH/basic-html-templates","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KTH%2Fbasic-html-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KTH%2Fbasic-html-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KTH%2Fbasic-html-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KTH%2Fbasic-html-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KTH","download_url":"https://codeload.github.com/KTH/basic-html-templates/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KTH%2Fbasic-html-templates/sbom","scorecard":{"id":76543,"data":{"date":"2025-08-11","repo":{"name":"github.com/KTH/basic-html-templates","commit":"391314c83077e28f21e27e08aee4a4f3a198c371"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"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":"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":"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":"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":"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:57: update your workflow using https://app.stepsecurity.io/secureworkflow/KTH/basic-html-templates/main.yml/master?enable=pin","Info:   0 out of   1 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":"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":"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":"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":"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 '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":"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":0,"reason":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5"],"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-15T04:59:16.529Z","repository_id":40567082,"created_at":"2025-08-15T04:59:16.530Z","updated_at":"2025-08-15T04:59:16.530Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31915900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"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":["html-template","javascript","npm"],"created_at":"2025-01-02T07:16:03.711Z","updated_at":"2026-04-17T05:02:10.539Z","avatar_url":"https://github.com/KTH.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Basic HTML Templates ![alt text](https://api.travis-ci.org/KTH/basic-html-templates.svg?branch=master) ![Continous Integration](https://github.com/KTH/basic-html-templates/actions/workflows/main.yml/badge.svg)\n\nNpm: `@kth/basic-html-templates`\n\n## Simple KTH look\nA simple way to get web pages to look somewhat like the kth.se design. The templates are intended to be used in private to semiprivate services.\n\n## Demo application\n\n[Demo code source here](https://github.com/KTH/basic-html-templates/tree/master/demo-app/).\n\n```javascript\n\n\nconst express = require(\"express\");\nconst { templates } = require(\"@kth/basic-html-templates\");\nconst httpResponse = require(\"@kth/http-responses\");\nconst app = express();\nconst started = new Date();\n\n/**\n * Index page.\n */\napp.get(\"/\", function (request, response) {\n  httpResponse.ok(request, response, templates.index((title = \"Demo App\")));\n});\n\n/**\n * About page. Versions and such.\n */\napp.get(\"/_about\", function (request, response) {\n  const about = {\n    dockerName: \"demo-app\",\n    dockerVersion: \"0.0.1_abc123\",\n    jenkinsBuildDate: new Date(),\n  };\n  httpResponse.ok(request, response, templates._about(about, started));\n});\n\n/**\n * Health check route.\n */\napp.get(\"/_monitor\", function (request, response) {\n  httpResponse.ok(\n    request,\n    response,\n    templates._monitor((status = \"OK\")),\n    httpResponse.contentTypes.PLAIN_TEXT\n  );\n});\n\n/**\n * Crawler access definitions.\n */\napp.get(\"/robots.txt\", function (request, response) {\n  httpResponse.ok(\n    request,\n    response,\n    templates.robotstxt(),\n    httpResponse.contentTypes.PLAIN_TEXT\n  );\n});\n\n/**\n * Generic error page for 5xx response codes.\n * Includes application information from  /_application.\n */\napp.get(\"/error5xx.html\", function (request, response) {\n  httpResponse.internalServerError(request, response, badGateway.error5xx());\n});\n\n/**\n * Ignore favicons.\n */\napp.get(\"/favicon.ico\", function (request, response) {\n  httpResponse.noContent(request, response);\n});\n\n/**\n * Default route, if no other route is matched (404 Not Found).\n */\napp.use(function (request, response) {\n  httpResponse.notFound(request, response, templates.error404());\n});\n\n\napp.listen(80, function () {\n  console.log(\"Server started.\");\n});\n\n\n```\n\n```json\n{\n  \"name\": \"demo-app\",\n  \"version\": \"1.0.0\",\n  \"description\": \"Demo app for @kth/basic-html-templates\",\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"clean\": \"rm -r ./node_modules \u0026\u0026 rm package-lock.json\"\n  },\n  \"author\": \"paddy@kth.se\",\n  \"license\": \"MIT\",\n  \"dependencies\": {\n    \"@kth/basic-html-templates\": \"^1.0.24\",\n    \"@kth/http-responses\": \"^1.0.20\",\n    \"express\": \"^4.17.1\"\n  }\n}\n\n```\n\nExamples:\n- https://app.kth.se/\n- https://app.kth.se/robots.txt\n- https://app.kth.se/_monitor\n- https://app.kth.se/pipeline/\n- https://app.kth.se/jsonschema/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkth%2Fbasic-html-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkth%2Fbasic-html-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkth%2Fbasic-html-templates/lists"}