{"id":15018113,"url":"https://github.com/netbek/periodic-table","last_synced_at":"2026-02-11T16:31:41.932Z","repository":{"id":17428049,"uuid":"76968675","full_name":"netbek/periodic-table","owner":"netbek","description":"Periodic table with responsive layout","archived":false,"fork":false,"pushed_at":"2025-10-11T03:49:17.000Z","size":1611,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-12T08:23:16.281Z","etag":null,"topics":["nunjucks","periodic-table","sass"],"latest_commit_sha":null,"homepage":"https://netbek.github.io/periodic-table","language":"Python","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/netbek.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":"2016-12-20T15:35:38.000Z","updated_at":"2025-10-11T03:48:11.000Z","dependencies_parsed_at":"2025-02-08T18:42:00.701Z","dependency_job_id":null,"html_url":"https://github.com/netbek/periodic-table","commit_stats":{"total_commits":164,"total_committers":2,"mean_commits":82.0,"dds":"0.060975609756097615","last_synced_commit":"85c4a55be6350adb921911c57a02476687f74320"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/netbek/periodic-table","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netbek%2Fperiodic-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netbek%2Fperiodic-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netbek%2Fperiodic-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netbek%2Fperiodic-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netbek","download_url":"https://codeload.github.com/netbek/periodic-table/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netbek%2Fperiodic-table/sbom","scorecard":{"id":680627,"data":{"date":"2025-08-11","repo":{"name":"github.com/netbek/periodic-table","commit":"977e57a41d399c36da60525651d2d01e4013987b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"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":"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":"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":-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":"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":"Pinned-Dependencies","score":5,"reason":"dependency not pinned by hash detected -- score normalized to 5","details":["Warn: pipCommand not pinned by hash: scripts/install.sh:5","Info:   0 out of   1 pipCommand dependencies pinned","Info:   1 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":"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":"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":"Vulnerabilities","score":0,"reason":"18 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-28xh-wpgr-7fm8","Warn: Project is vulnerable to: GHSA-566m-qj78-rww5","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-gqgv-6jq5-jjj9","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v"],"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-21T23:00:58.938Z","repository_id":17428049,"created_at":"2025-08-21T23:00:58.938Z","updated_at":"2025-08-21T23:00:58.938Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279544266,"owners_count":26188457,"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-18T02:00:06.492Z","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":["nunjucks","periodic-table","sass"],"created_at":"2024-09-24T19:51:28.040Z","updated_at":"2025-10-23T15:31:32.700Z","avatar_url":"https://github.com/netbek.png","language":"Python","readme":"# Periodic table\n\nPeriodic table with responsive layout.\n\n## Demo\n\n[netbek.github.io/periodic-table](https://netbek.github.io/periodic-table)\n\n## Integration\n\nInstall the package:\n\n```shell\nnpm install @netbek/periodic-table\n```\n\nCreate a Sass file:\n\n```scss\n@import 'node_modules/@netbek/periodic-table/src/css/mixins';\n\n// Define vars that should override defaults\n$nb-periodic-table-cell-bg:                       #eee;\n$nb-periodic-table-cell-border:                   #ccc;\n\n// Load default vars\n@import 'node_modules/@netbek/periodic-table/src/css/variables';\n\n// Mobile-first layout\n@include nb-periodic-table-base;\n@include nb-periodic-table-color;\n@include nb-periodic-table-size;\n\n// Wide breakpoint layout\n@media (min-width: 82em) {\n  @include nb-periodic-table-color('category');\n  @include nb-periodic-table-size('wide');\n}\n```\n\nCreate a Nunjucks template:\n\n```html\n{%- from \"path/to/node_modules/@netbek/periodic-table/nunjucks/macros/nb_pt_legend.njk\" import nb_pt_legend %}\n{%- from \"path/to/node_modules/@netbek/periodic-table/nunjucks/macros/nb_pt_table_18.njk\" import nb_pt_table_18 %}\n\u003chtml\u003e\n  \u003cbody\u003e\n    {% set element_columns = {\n        atomic_number: 'Atomic number',\n        symbol: 'Symbol',\n        name: 'Name',\n        atomic_mass: 'Atomic mass',\n        electronegativity: 'Electronegativity'\n    } %}\n    {{ nb_pt_legend(elements, categories, element_columns) }}\n    {{ nb_pt_table_18(elements, groups) }}\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\nRender the Nunjucks template:\n\n```js\nimport nunjucks from 'nunjucks';\nimport periodicTable from '@netbek/periodic-table';\n\nasync function render() {\n  const categories = await periodicTable.loadCategories();\n  const elements = await periodicTable.loadElements();\n  const groups = await periodicTable.loadGroups();\n\n  const data = {\n    categories,\n    elements,\n    groups\n  };\n\n  return nunjucks.render('path/to/template.njk', data);\n}\n\nrender();\n```\n\n## Development: Installation\n\n1. Install Node 22.x:\n\n    ```shell\n    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash\n    source ~/.bashrc\n    nvm install 22\n    nvm use 22\n    ```\n\n2. Install uv:\n\n    ```shell\n    curl -LsSf https://astral.sh/uv/install.sh | sh\n    ```\n\n3. Create `.pypirc`:\n\n    ```shell\n    cp example.pypirc .pypirc\n    ```\n\n4. Enter a [PyPI API token](https://pypi.org/manage/account/#api-tokens) as the password in `.pypirc`.\n\n5. Install Node and Python dependencies:\n\n    ```shell\n    npm ci\n    uv sync\n    ```\n\n## Development: Usage\n\nAutomatically build and refresh browser during development:\n\n```shell\ngulp livereload\n```\n\nBuild the Python distribution package:\n\n```shell\nnpm run build-dist\n```\n\nPublish the Node and Python distribution packages:\n\n```shell\nnpm run publish-dist\n```\n\n## Feature ideas\n\n* Group and period axes\n* Color by group or block; different palettes ([mendeleevapp](https://github.com/lmmentel/mendeleevapp))\n\n## Credit\n\nData from [mendeleev](https://mendeleev.readthedocs.io/en/stable/bibliography.html) (MIT License)\n\n## License\n\nCopyright (c) 2016 Hein Bekker. Licensed under the GNU Affero General Public License, version 3.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetbek%2Fperiodic-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetbek%2Fperiodic-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetbek%2Fperiodic-table/lists"}