{"id":42180496,"url":"https://github.com/jue89/node-systemd-journald","last_synced_at":"2026-01-26T22:04:06.385Z","repository":{"id":6336814,"uuid":"55108043","full_name":"jue89/node-systemd-journald","owner":"jue89","description":"Native bindings to journald","archived":false,"fork":false,"pushed_at":"2024-04-06T19:14:42.000Z","size":214,"stargazers_count":28,"open_issues_count":6,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T14:23:54.323Z","etag":null,"topics":["journald","logging","nodejs","systemd","verteiltesechtzeitjavascript"],"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/jue89.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-03-31T00:45:52.000Z","updated_at":"2025-05-25T16:21:32.000Z","dependencies_parsed_at":"2024-06-18T18:25:42.870Z","dependency_job_id":"06d157c5-a53c-4be2-9a35-f556b14403ee","html_url":"https://github.com/jue89/node-systemd-journald","commit_stats":{"total_commits":73,"total_committers":8,"mean_commits":9.125,"dds":"0.26027397260273977","last_synced_commit":"a2720d9a2861abb4e93ba31f81920a46f268a974"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/jue89/node-systemd-journald","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jue89%2Fnode-systemd-journald","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jue89%2Fnode-systemd-journald/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jue89%2Fnode-systemd-journald/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jue89%2Fnode-systemd-journald/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jue89","download_url":"https://codeload.github.com/jue89/node-systemd-journald/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jue89%2Fnode-systemd-journald/sbom","scorecard":{"id":540885,"data":{"date":"2025-08-11","repo":{"name":"github.com/jue89/node-systemd-journald","commit":"a2720d9a2861abb4e93ba31f81920a46f268a974"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/23 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":"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":"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":"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":"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":"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":"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":"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: 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":"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 8 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":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-gmwp-3pwc-3j3g","Warn: Project is vulnerable to: GHSA-qrpm-p2h7-hrv2","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36"],"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-20T08:10:58.969Z","repository_id":6336814,"created_at":"2025-08-20T08:10:58.969Z","updated_at":"2025-08-20T08:10:58.969Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28789721,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T21:49:50.245Z","status":"ssl_error","status_checked_at":"2026-01-26T21:48:29.455Z","response_time":59,"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":["journald","logging","nodejs","systemd","verteiltesechtzeitjavascript"],"created_at":"2026-01-26T22:02:48.871Z","updated_at":"2026-01-26T22:04:06.372Z","avatar_url":"https://github.com/jue89.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-systemd-journald\n\n[![Build Status](https://travis-ci.org/jue89/node-systemd-journald.svg?branch=master)](https://travis-ci.org/jue89/node-systemd-journald)\n\nNode.js module for native bindings to the ~~dearly beloved~~ systemd-journald.\n\n## Example\n\nThis example will start an ExpressJS server. Open your browser and visit: `http://localhost:3000/{a}/{b}`\n\nThe server will return the result of `a` divided by `b`. You feel subversive and may want to try `b` equals zero?! ;)\n\n```javascript\n// npm install express systemd-journald\nconst Journald = require('systemd-journald');\nconst app = require('express')();\n\n// This creates a new logging instance. The stated object defines default\n// journal fields attached to every logging entry. syslog_identifier is the\n// name displayed along with the log lines.\nconst log = new Journald({syslog_identifier: 'awesome-divide'});\n\napp.get('/:a/:b', (req, res) =\u003e {\n  try {\n\n    // Convert numbers\n    let a = parseInt(req.params.a);\n    let b = parseInt(req.params.b);\n\n    // Divide a by b\n    let q = a / b;\n\n    // Throw an error if the result is not a number\n    // Funny side fact: In the first place I checked:\n    // if( typeof q != 'number' ) ...\n    // Well, this was not working. Infinity is recognised as 'number' and, you\n    // might already guessed it, NaN as well! Javascript as we know and love it.\n    if(isNaN(q) || q === Infinity ) throw new Error('No number!');\n\n    // Send the result to the client\n    res.end(q.toString());\n\n    // Log this request with priority 7\n    log.debug('Just answered a request', {\n      'dividend'   : a,\n      'divisor'    : b,\n      'quotient'   : q,\n      'remote_addr': req.connection.remoteAddress\n    });\n\n    // Are you interested in the requests of a specific IP? Try:\n    // $ journalctl -t awesome-divide REMOTE_ADDR={IP}\n    // As you can see, you have to enter the field names in capital letters.\n\n  } catch(e) {\n\n    // The user screwed up! This will write the error message and stack trace to\n    // the journal with priority 3. Checkout your journal:\n    // $ journalctl -t awesome-divide -p 3 -o json-pretty\n    log.err(e);\n\n    res.status(400).end(e.message);\n\n  }\n});\n\napp.listen(3000);\n```\n\n\n## Installation\n\n### Install build dependencies\nDebian-flavoured Linux distributions:\n\n```bash\nsudo apt-get install build-essential \\\n                     pkg-config \\\n                     libsystemd-dev\n```\n\nRHEL 7 flavoured Linux distributions:\n\n```bash\nsudo yum install gcc gcc-c++ make git \\\n                 systemd-devel\n```\n\n### NPM Install\nIn all cases, once the build dependencies are installed:\n\n```bash\nnpm install systemd-journald --save\n```\n\n\n## API\n\n```javascript\nconst Journald = require( 'systemd-journald' );\nconst log = new Journald( defaultFields );\n\n                                // Corresponding syslog level:\nlog.emerg( message, fields );   // - LOG_EMERG\nlog.alert( message, fields );   // - LOG_ALERT\nlog.crit( message, fields );    // - LOG_CRIT\nlog.err( message, fields );     // - LOG_ERR\nlog.warning( message, fields ); // - LOG_WARNING\nlog.notice( message, fields );  // - LOG_NOTICE\nlog.info( message, fields );    // - LOG_INFO\nlog.debug( message, fields );   // - LOG_DEBUG\n```\n\n * `message`: String or instance of Error.\n * `fields`: Further key-value data attached to the journal. Nested objects will be also included in the journal. Keys will be converted to upper-case. `{'obj': {'nested': 'Chuck Norris'}}` will become `OBJ_NESTED=Chuck Norris`. Quite handy for filtering the journal.\n * `defaultFields`: Fields attached to every entry. They may be overridden by `fields`.\n\n\n## Acknowledgement\n\nSepcial thanks to:\n * [ianare](https://github.com/ianare) for improving compatibility with older systemd versions.\n * [jez9999](https://github.com/jez9999) for making this module immune to future changes of syslog levels.\n * [Z3TA](https://github.com/Z3TA) is responsible for `CODE_FILE`, `CODE_FUNC` and `CODE_LINE` being settable by the `fields` parameter.\n * [bryanburgers](https://github.com/bryanburgers) introduced the idea of default fields.\n * [spion](https://github.com/spion) for introducing compatibility with NodeJS 12 while preserving compatibility down to Node 0.10.\n * [GaikwadPratik](https://github.com/GaikwadPratik) for porting this module from NAN to Node-API.\n\nI owe you a drink!\n\n\n## Why?\n\nThis module has been written after some unsuccessful attempts to get the module [journald](https://www.npmjs.com/package/journald) version 0.0.5 working under NodeJS 4.x / 5.x. Due to massive API changes of the v8 engine this module is fully broken from the point of view of recent NodeJS releases. So I rewrote it - this time with a little help of *Native Abstractions for Node.js* (nan). The nice guys from nan promised to ensure compatibility even on future API changes of v8. ~~We will see ;)~~\n\nUpdate: They've kept the promise - but we've changed to the on-board solution for native modules: *Node-API*. We hope to have even less problems with keeping this module compatible to NodeJS.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjue89%2Fnode-systemd-journald","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjue89%2Fnode-systemd-journald","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjue89%2Fnode-systemd-journald/lists"}