{"id":15853211,"url":"https://github.com/omrilotan/consigliere","last_synced_at":"2026-05-01T06:33:24.658Z","repository":{"id":43284055,"uuid":"396862543","full_name":"omrilotan/consigliere","owner":"omrilotan","description":"🍝 A simple to use JSON logger","archived":false,"fork":false,"pushed_at":"2026-04-21T10:16:47.000Z","size":63,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-21T10:49:17.243Z","etag":null,"topics":["json","log","logger","logging"],"latest_commit_sha":null,"homepage":"https://npmjs.com/consigliere","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/omrilotan.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-16T15:49:12.000Z","updated_at":"2026-04-21T10:16:50.000Z","dependencies_parsed_at":"2024-01-15T21:47:41.172Z","dependency_job_id":"99e15fe9-ea6d-475a-9f02-bd15df7b84ce","html_url":"https://github.com/omrilotan/consigliere","commit_stats":{"total_commits":8,"total_committers":3,"mean_commits":"2.6666666666666665","dds":0.375,"last_synced_commit":"a4b92621780b15dcfe232171b746f80aff5f4dd1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/omrilotan/consigliere","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omrilotan%2Fconsigliere","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omrilotan%2Fconsigliere/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omrilotan%2Fconsigliere/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omrilotan%2Fconsigliere/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omrilotan","download_url":"https://codeload.github.com/omrilotan/consigliere/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omrilotan%2Fconsigliere/sbom","scorecard":{"id":706495,"data":{"date":"2025-08-11","repo":{"name":"github.com/omrilotan/consigliere","commit":"2c03bd4ed8f8d5e1a5018fc24af420c30fe67483"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/13 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":"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":"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":"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":"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.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/omrilotan/consigliere/publish.yml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/publish.yml:16","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/publish.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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: The Unlicense: 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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 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-22T06:44:19.834Z","repository_id":43284055,"created_at":"2025-08-22T06:44:19.834Z","updated_at":"2025-08-22T06:44:19.834Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32487471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["json","log","logger","logging"],"created_at":"2024-10-05T19:03:31.673Z","updated_at":"2026-05-01T06:33:24.653Z","avatar_url":"https://github.com/omrilotan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# consigliere\n\n🍝 A simple-to-use JSON logger\n\n\u003e ### • Quick to start • Intuitive interface • Rich with customisation.\n\n## Quick use logger\n\nZero configuration logger out-of-the box use\n\n```js\nimport { logger } from \"consigliere\";\n\nlogger.debug(\"Something just happened\", { detail: \"Something\" });\n// {\"message\":\"Something just happened\",\"detail\":\"Something\",\"level\":\"debug\"}\n\nlogger.error(new Error(\"Something must have gone horribly wrong\"));\n// {\"message\":\"Something must have gone horribly wrong\",\"stack\":\"Error: Something must have gone horribly wrong\\n    at…\",\"name\":\"Error\",\"level\":\"error\"}\n```\n\n| ![](https://user-images.githubusercontent.com/516342/134087468-7c45d5c6-dd07-4428-b6b2-76133817fdd4.gif)\n| -\n\n## Create new Logger instances\n\n```js\nimport { Logger } from \"consigliere\";\n\nconst logger = new Logger();\n```\n\n## Change minimal log level\n\nSilence anything below a certain log level\n\n```js\nimport { Logger } from \"consigliere\";\n\nconst logger = new Logger({ level: \"warn\" });\nlogger.info(\"I have a message to relay\"); // nothing happens\n\nlogger.warn(\"Something worrying happened\"); // logs record\n```\n\n## Use your own set of log levels with a strong typescript signature\n\n```js\nimport { Logger } from \"consigliere\";\n\nconst levels = [\"low\", \"medium\", \"high\"] as const;\nconst logger = new Logger\u003ctypeof levels\u003e({\n  levels,\n  level: \"medium\",\n});\nlogger.low(\"I have something to show you\"); // Does not log record\nlogger.medium(\"I have a message to relay\"); // Logs record\nlogger.high(\"Something worrying happened\"); // Logs record\nlogger.error(\"Something must have gone horribly wrong\"); // Typescript error - \"error\" is not a valid log level\n```\n\n## Define alternative logging devices\n\n```ts\nimport { Logger } from \"consigliere\";\n\nconst logger = new Logger({\n  device: (json: string): boolean =\u003e navigator.sendBeacon(\"/log\", json),\n});\n```\n\n## Customise output with \"parser\"\n\n```js\nimport { Logger, NORMALISE_VALUES, NORMALISE, RAW } from \"consigliere\";\n\n// JSON string\nconst logger = new Logger();\nconst logger = new Logger({ parser: NORMALISE });\n\n// Output the raw object\nconst logger = new Logger({ parser: false });\nconst logger = new Logger({ parser: RAW });\n\n// Stringify values of the record object\nconst logger = new Logger({ parser: NORMALISE_VALUES });\n\n// Parse the record yourself\nconst logger = new Logger({\n  parser: function ({ application, ...record }) {\n    return JSON.stringify({\n      application,\n      level: this.level,\n      records: [record],\n    });\n  },\n});\n```\n\n## Add constant fields to each record of the logger\n\n```js\nconst logger = new Logger({\n  fields: {\n    application: \"my-app\",\n    version: \"0.0.1\",\n  },\n});\n```\n\n## Add dynamic fields to each record of the logger\n\n```js\nconst start = Date.now();\nconst logger = new Logger({\n  dynamicFields: {\n    duration: () =\u003e Date.now() - start,\n  },\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomrilotan%2Fconsigliere","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomrilotan%2Fconsigliere","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomrilotan%2Fconsigliere/lists"}