{"id":24774952,"url":"https://github.com/dagerikhl/primors","last_synced_at":"2026-04-15T18:32:14.268Z","repository":{"id":57330442,"uuid":"302826521","full_name":"dagerikhl/primors","owner":"dagerikhl","description":"Package library for common React functionalities.","archived":false,"fork":false,"pushed_at":"2022-07-28T21:30:54.000Z","size":6249,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-29T07:58:18.690Z","etag":null,"topics":["components","hooks","lib","library","packages","react","storybook","styled-components","typescript"],"latest_commit_sha":null,"homepage":"https://dagerikhl.github.io/primors/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dagerikhl.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-10-10T05:56:32.000Z","updated_at":"2025-08-27T12:25:00.000Z","dependencies_parsed_at":"2022-09-21T02:11:20.046Z","dependency_job_id":null,"html_url":"https://github.com/dagerikhl/primors","commit_stats":null,"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"purl":"pkg:github/dagerikhl/primors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dagerikhl%2Fprimors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dagerikhl%2Fprimors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dagerikhl%2Fprimors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dagerikhl%2Fprimors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dagerikhl","download_url":"https://codeload.github.com/dagerikhl/primors/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dagerikhl%2Fprimors/sbom","scorecard":{"id":316789,"data":{"date":"2025-08-11","repo":{"name":"github.com/dagerikhl/primors","commit":"ad903edd48e685c82bbc590c93b79cdd444c6d23"},"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":"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":"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":"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":"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/publish-package-and-deploy-docs.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/dagerikhl/primors/publish-package-and-deploy-docs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-package-and-deploy-docs.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/dagerikhl/primors/publish-package-and-deploy-docs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-package-and-deploy-docs.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/dagerikhl/primors/publish-package-and-deploy-docs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-package-and-deploy-docs.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/dagerikhl/primors/publish-package-and-deploy-docs.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish-package-and-deploy-docs.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/dagerikhl/primors/publish-package-and-deploy-docs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/dagerikhl/primors/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/dagerikhl/primors/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/dagerikhl/primors/release.yml/main?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party 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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/publish-package-and-deploy-docs.yml:1","Warn: no topLevel permission defined: .github/workflows/release.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":"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":"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 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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":"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":"Vulnerabilities","score":0,"reason":"60 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-whgm-jr23-g3j9","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8mmm-9v2q-x3f9","Warn: Project is vulnerable to: GHSA-33f9-j839-rf8h","Warn: Project is vulnerable to: GHSA-c36v-fmgq-m8hx","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","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-4wx3-54gh-9fr9","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-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-hqhp-5p83-hx96","Warn: Project is vulnerable to: GHSA-3949-f494-cm99","Warn: Project is vulnerable to: GHSA-x7hr-w5r2-h6wg","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7","Warn: Project is vulnerable to: GHSA-w5hq-hm5m-4548","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-w5p7-h5w8-2hfq","Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","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-18T00:22:41.712Z","repository_id":57330442,"created_at":"2025-08-18T00:22:41.712Z","updated_at":"2025-08-18T00:22:41.712Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31854738,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: 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":["components","hooks","lib","library","packages","react","storybook","styled-components","typescript"],"created_at":"2025-01-29T06:31:25.153Z","updated_at":"2026-04-15T18:32:14.244Z","avatar_url":"https://github.com/dagerikhl.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Primors\n\n[![npm](https://img.shields.io/npm/v/primors.svg?maxAge=2592000)](https://www.npmjs.com/package/primors)\n[![downloads](https://img.shields.io/npm/dt/primors.svg?maxAge=2592000)](https://www.npmjs.com/package/primors)\n\nPackage library for common React functionalities.\n\n## Live documentation\n\nStorybook docs deployed on GH Pages: [https://dagerikhl.github.io/primors](https://dagerikhl.github.io/primors)\n\n## CI/CD\n\nThis project is set up with GitHub actions to trigger these actions on push to main with a new version tag.\n\nNote: Every new version should be created using `yarn version`, see [Release a new version](#release-a-new-version).\n\nActions:\n\n- `release`: Triggers on push to the main branch with a new version tag.\n  1. Creates a new GitHub release with release notes taken from `CHANGELOG.md` for the current version.\n- `publish-package-and-deploy-docs`: Triggers on each new release.\n  1. Builds and publishes the library to the npm package registry.\n  2. Builds and deploys the Storybook live documentation app to GH Pages.\n\nTo run these processes manually, please see [Release](#release) below.\n\n## Development\n\n### Quick-start (/TL;DR)\n\nAssumes owner of original repo or set up with similar repo structure.\n\n- Install: `yarn install`.\n- Develop and release:\n  1. Make changes.\n  2. Commit.\n  3. `yarn version`. (Creates a new release commit and CHANGELOG.)\n  4. `git push --follow-tags`. (Starts GH action to publish npm packages.)\n  5. `yarn deploy-storybook`. (Deploys SB to GH pages.)\n  6. **DONE**\n\n### Getting started\n\nTo install all dependencies, run:\n\n```sh\nyarn install\n```\n\n### Local development\n\nTo build the functionalities locally, run:\n\n```sh\nyarn build\n```\n\nTo run the Storybook app locally, which listens for changes and hotreloads, run:\n\n```sh\nyarn storybook\n```\n\nYou can also build a production build of the Storybook app locally by running:\n\n```sh\nyarn build-storybook\n```\n\n### Release\n\n#### Release a new version\n\nTo create a new version ready for publish and deploy, run:\n\n```sh\nyarn version\n```\n\nAfter creating a new version, there are two choices:\n\n1. If repo is set up with GH actions and able to publish to npm, simply push the changes, _with tags_:\n   ```sh\n   git push --follow-tags\n   ```\n2. If not, follow [Publishing npm package locally](#publishing-npm-package-locally).\n\n#### Publishing npm package locally\n\n_Note: Because GH actions is set up, only `yarn version` is necessary if pushing to a GH repo set up with this action. The action will take care of publishing the package._\n\nThat being said, to build and publish a new version of the package locally, run:\n\n```sh\nyarn version\nyarn publish\n```\n\n`yarn version` automatically generates a new changelog in `CHANGELOG.md` based on all commits since last release, and bumps the version of the package in `package.json` and tags the release.\n\n`yarn publish` deploys a new version to the NPM package registry.\n\n#### Deploying Storybook app\n\nTo build and deploy the Storybook live documentation app, run:\n\n```sh\nyarn deploy-storybook\n```\n\n##### Commit format\n\nThis project uses auto-changelog to automatically generate a changelog. You can use several prefixes matching the regex specified here in your commit messages to categorize commits in your changelog:\n\n- `Feat(ure)?:`: New features, _for the library_. Changes to the Storybook app should be categorized under \"Performance\".\n- `Fix:`: Bug fixes, _for the library_.\n- `Impr?(ovement)?:`: General improvements, _for the library_.\n- `Perf(ormance)?:`: Performance improvements.\n- `Doc(umentation|s)?:`: Changes to documentation, e.g. `README.md` or the Storybook app.\n- `Build:`: Changes to the build or deploy environments.\n- `Conf(ig(uration)?)?:`: Changes to project configuration.\n- `Test(s|ing)?:`: Changes to test setup, test files, or new tests.\n- Any commits not matching one of these patterns will not be categorized.\n\n###### Breaking changes\n\nYou can mark any commit as a breaking change by writing \"BREAKING CHANGE\" anywhere in your commit message.\n\n### Testing\n\nThis project tests its functionality with frontend unit tests, using Jest.\n\nTo run tests for the project, run:\n\n```sh\nyarn test\n```\n\n#### Test coverage\n\nTesting the library also produces a test coverage report. To view this report, run the test and open `/coverage/lcov-report/index.html` in your browser.\n\n### Linting\n\nTo lint the project, I suggest installing the ESLint plugin in your editor, but to run it from terminal, run:\n\n```sh\nyarn lint\n```\n\n## Technology\n\nThis library is built using:\n\n- [TypeScript](https://www.typescriptlang.org/).\n- [React](https://reactjs.org/).\n- [Styled Components](https://styled-components.com/).\n\nFor testing and linting, these packages are used:\n\n- [Jest](https://jestjs.io/).\n- [ESLint](https://eslint.org/).\n\nFor development, these comfort-packages are used:\n\n- [Prettier](https://prettier.io/).\n- [AutoChangelog](https://github.com/CookPete/auto-changelog/).\n\nAnd for creating a view of the components for development:\n\n- [Storybook](https://storybook.js.org/).\n\n## Author\n\n[Dag Erik Løvgren (dagerikhl)](https://github.com/dagerikhl)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdagerikhl%2Fprimors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdagerikhl%2Fprimors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdagerikhl%2Fprimors/lists"}