{"id":20489290,"url":"https://github.com/candh/loggd","last_synced_at":"2025-10-26T04:05:13.765Z","repository":{"id":17244886,"uuid":"81464244","full_name":"candh/loggd","owner":"candh","description":"A simple local JSON database made with NodeJS, for NodeJS","archived":false,"fork":false,"pushed_at":"2022-04-28T16:23:04.000Z","size":91,"stargazers_count":8,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-11T00:11:09.328Z","etag":null,"topics":["database","developer-tools","ilovejavascript","javascript","json","nodejs","npm-package"],"latest_commit_sha":null,"homepage":"https://haider.gitbook.io/loggd/","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/candh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-09T15:25:41.000Z","updated_at":"2022-06-07T20:38:03.000Z","dependencies_parsed_at":"2022-07-26T14:32:00.230Z","dependency_job_id":null,"html_url":"https://github.com/candh/loggd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/candh/loggd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candh%2Floggd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candh%2Floggd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candh%2Floggd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candh%2Floggd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/candh","download_url":"https://codeload.github.com/candh/loggd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candh%2Floggd/sbom","scorecard":{"id":264202,"data":{"date":"2025-08-11","repo":{"name":"github.com/candh/loggd","commit":"1deb14b0e72317f15096a6cc67945d1059c3a791"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/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":"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":"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":"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":"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.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md: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":"12 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-qrpm-p2h7-hrv2","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-cf4h-3jhx-xvhq"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 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-17T11:34:02.949Z","repository_id":17244886,"created_at":"2025-08-17T11:34:02.949Z","updated_at":"2025-08-17T11:34:02.949Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272021296,"owners_count":24859994,"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-08-25T02:00:12.092Z","response_time":1107,"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":["database","developer-tools","ilovejavascript","javascript","json","nodejs","npm-package"],"created_at":"2024-11-15T17:12:11.160Z","updated_at":"2025-10-26T04:05:08.723Z","avatar_url":"https://github.com/candh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [loggd](https://haider.gitbook.io/loggd/)\n\n[![Travis](https://img.shields.io/travis/candh/loggd.svg)](https://travis-ci.org/candh/loggd)\n[![npm](https://img.shields.io/npm/dm/loggd.svg)](https://www.npmjs.com/package/loggd)\n[![npm](https://img.shields.io/npm/v/loggd.svg)](https://www.npmjs.com/package/loggd)\n[![npm](https://img.shields.io/npm/l/loggd.svg)](https://www.npmjs.com/package/loggd)\n\nListen, you just want to log something? or might just want to save and retrieve [JSON](http://www.json.org/) and perform basic operations on the data, like a database? Don't want to learn a big library to do that? You're in luck! Because loggd is aimed to solve all of these problems for you! Let me show you 😊\n\n```json\n[\n  {\n    \"loggd\": {\n      \"what\": \"A simple JSON database without complicating stuff\",\n      \"why?\": \"It provides a simple interface to interact with a JSON file. CRUD, you got it\",\n      \"isCool\": true,\n      \"nestedObjects?\": {\n        \"You\": \"Got It!\"\n      },\n      \"arrays?\": [\"No\", \"Problem\"]\n    },\n    \"_id\": \"49c6f6ee-5805-4499-95e0-53bfc0bdc7ad\"\n  }\n]\n```\n\n### Installation\n\n```bash\n$ npm install loggd --save\n```\n\n\u003cbr\u003e\n\nFor API documentation, detailed explanation and examples:\n\n# [Read The Docs](https://haider.gitbook.io/loggd/)\n\n### Tests\n\n```bash\n$ npm test\n```\n\n### Contribution\n\nSee [`CONTRIBUTING.md`](https://github.com/candh/loggd/blob/master/CONTRIBUTING.md)\n\n### Changelog\n\nAdded in version 2.0.0\n\n**v2.2.0**\n\n- Only adds an \\_id field if not already specified. Be careful, now its up to you to make them unique if you did in fact supply your own.\n- Ran prettier on the whole project\n\n**v2.1.0**\n\n- 🎉 new method: clear() - Clears the database file\n- Replaced stupid docstrings with jsdocs. should display a little bit of help on your fancy editors now.\n- Better tests. Really. (i think, [i mean you can never be THAT sure..](https://pbs.twimg.com/media/Ci9dn7vWYAAGbuV.jpg))\n- Updated dependencies\n- Moved db dir to test\n- Refactoring\n- Loggd is a class now. (Nothing for you to worry about)\n\n**v2.0.0**\n\n- **MAJOR API CHANGES**, If your project is using a previous version and you update this package, **everything will break!** I'm really sorry! But this is the cleanest version yet. Please [read the docs](https://haider.gitbook.io/loggd/). If you liked the previous version, You'll ❤️ this one!\n\n### Wait, who made it?\n\nBy [@candhforlife](http://twitter.com/candhforlife) mostly seen at COMSATS Lahore doing CS stuff to get a CS degree\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcandh%2Floggd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcandh%2Floggd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcandh%2Floggd/lists"}