{"id":19982039,"url":"https://github.com/appyay/jen","last_synced_at":"2026-05-06T04:31:10.152Z","repository":{"id":47991363,"uuid":"197864540","full_name":"appyay/jen","owner":"appyay","description":"Jen is a lightweight Javascript library for rapid development of static websites","archived":false,"fork":false,"pushed_at":"2023-01-23T23:42:41.000Z","size":471,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-03T23:56:06.103Z","etag":null,"topics":["gulp","jen","json-data","lightweight-javascript-library","modular","nunjucks","pagination","static-site-generator"],"latest_commit_sha":null,"homepage":null,"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/appyay.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":"2019-07-20T01:37:40.000Z","updated_at":"2019-12-02T08:24:31.000Z","dependencies_parsed_at":"2023-02-13T04:50:55.523Z","dependency_job_id":null,"html_url":"https://github.com/appyay/jen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/appyay/jen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appyay%2Fjen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appyay%2Fjen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appyay%2Fjen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appyay%2Fjen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appyay","download_url":"https://codeload.github.com/appyay/jen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appyay%2Fjen/sbom","scorecard":{"id":204249,"data":{"date":"2025-08-11","repo":{"name":"github.com/appyay/jen","commit":"4eb7e90d3f4aeebe8fbd2a32bc3dc656bba78df6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/18 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":-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":"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":"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":"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":"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":"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":"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 2 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":0,"reason":"44 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-4w2v-q235-vp99","Warn: Project is vulnerable to: GHSA-cph5-m8f7-6c5x","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-h452-7996-h45h","Warn: Project is vulnerable to: GHSA-897m-rjf5-jp39","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8mrf-64fw-2x75","Warn: Project is vulnerable to: GHSA-gc94-6w89-hpqr","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","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-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-x77j-w7wf-fjmw","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"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-16T23:21:34.407Z","repository_id":47991363,"created_at":"2025-08-16T23:21:34.407Z","updated_at":"2025-08-16T23:21:34.407Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32678569,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"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":["gulp","jen","json-data","lightweight-javascript-library","modular","nunjucks","pagination","static-site-generator"],"created_at":"2024-11-13T04:08:41.227Z","updated_at":"2026-05-06T04:31:10.130Z","avatar_url":"https://github.com/appyay.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jen\n\n\u003e Jen is a lightweight Javascript library for rapid development of static websites. It was built with a focus on ease of use for developers and working seamlessly with headless APIs and static website hosting.\n\nThis project was originally conceived to enable producing a static website from an existing HTML template an easy and intuitive process.\n\n## How does it work?\nJen leverages Mozilla's rich and powerful [Nunjucks](https://mozilla.github.io/nunjucks/) templating language together with Gulp tasks to manage project template files and generate a public directory. Data for the application is retrieved from a JSON data file in the project, making it especially suitable for building API driven websites. The data file can be populated on-demand during development or on-build for in-production static websites.\n\nAside from Nunjucks and Gulp, Jen is completely unopinionated about what technologies are used, putting the control in the hands of the developer. \n\nA starter project for Jen is available here: [Jen Starter](https://github.com/appyay/jen-starter). The build process for this project includes:\n* Sass preprocessing\n* Nunjucks/HTML for templating\n* CSS concatenation and minification\n* Javascript concatenation and uglification\n* Multi-browser live browser reload\n* Master-detail pattern with pagination\n* A modular, reusable design\n\n## Installation\nInstall the dependencies:\n````\nnpm install\n````\n\n## Project setup\nFirst, create a ```gulpfile.js``` in the root of your project and include the following:\n\n### Require the dependencies:\n````\nconst gulp = require('gulp');\nrequire('jen')(gulp, {\n  dataUrl: process.env.DATA_URL\n});\n````\nIf there is a DATA_URL specified, Jen will use it to retrieve data.\n\n### Development Gulp task:\n````\ngulp.task(\n  'default',\n  gulp.series('jen:dev') //include other gulp tasks as you wish\n);\n````\n\n### Build Gulp task:\n````\ngulp.task('build', gulp.series('jen:build'));\n````\n\n### Project structure\nJen assumes the following project structure:\n````\n|--src // required\n    |--data // required, but folder and contents will be auto-generated if you supply a dataUrl\n        |--db.json // required\n    |--templates //required\n        |--pages //required\n            |--home //required. This is the homepage folder. Other pages can be added in the same manner\n                |--index.html //required\n|--gulpfile.js // required\n````\n\n### Load the data\nData can be loaded in three ways:\n1. Manually add a JSON data file to the data folder.\n2. Load remote data by running ````gulp jen:load --dataUrl 'http://example.com/api/whatever'````\n3. Load remote data and build the project by running ````gulp jen:build````\n\n## Running for development\n````\ngulp jen:dev\n````\n\n## Master-detail pattern\nJen enables facilitation of the master-detail pattern (i.e. a list pages and accompanying detail pages for each list item).\n\n### Detail templates\nIf your website requires use of the master-detail pattern, you can achieve this by putting a \"detail\" folder inside your page folder. For example:\n````\n...\n        |--pages\n        ...\n            |--blog // page folder\n                |--detail\n                    |--index.html // this is your detail template\n                |--index.html //this is your list (master) template\n...\n````\nSo, if a blog entry has an ID of \"abc123\", the detail page would be accessible at:\n````\n/blogs/abc123\n````\n\nThe item for display on the detail page can be accessed through the ```jen.item``` global variable (only available on detail pages).\n\n### List (master) templates\nThe list template will be the ```index.html``` file in the root of the page folder. The items to needed to form the list can be accessed through the global ```jen.db``` variable. For example, in your list template:\n\n````\n{% for feature in jen.db.features.items %}\n  \u003ch2\u003e{{feature.fields.title}}\u003c/h2\u003e\n{% endfor %}\n````\n\n#### Pagination\nThe following variables will be available in list templates for facilitating pagination of list items:\n* jen.pagination.offset\n* jen.pagination.currentPage\n* jen.pagination.total\n* jen.pagination.itemsPerPage\n\nThe default number of items per page is 50. To specify another value, pass it into Jen through the options object in ```gulpfile.js```:\n\n````\nconst itemsPerPage = 20;\nrequire('@richjava/jen')(gulp, {\n  itemsPerPage: itemsPerPage\n});\n````\n\nIn your template, you can loop through items in a range like so:\n````\n{% for i in range(jen.pagination.offset, jen.pagination.offset + jen.pagination.itemsPerPage ) %}\n    \u003ch2\u003e{{db.features.items[i].fields.title}}\u003c/h2\u003e\n{% endfor %}\n````\n\nSee the [Jen Starter](https://github.com/appyay/jen-starter) for an example of how to implement a pagination component and more!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappyay%2Fjen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappyay%2Fjen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappyay%2Fjen/lists"}