{"id":15212969,"url":"https://github.com/treestang/json.db","last_synced_at":"2026-03-01T17:03:38.332Z","repository":{"id":244111608,"uuid":"814299277","full_name":"TreestanG/json.db","owner":"TreestanG","description":"a simple json-based database wrapper","archived":false,"fork":false,"pushed_at":"2024-06-24T02:44:38.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-21T11:09:58.049Z","etag":null,"topics":["database","discord","discord-bot","discord-js","json"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/jayson.database","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TreestanG.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-06-12T18:22:32.000Z","updated_at":"2024-06-24T02:44:41.000Z","dependencies_parsed_at":"2024-06-13T00:39:35.854Z","dependency_job_id":"32af2bcd-8ca6-4202-8cb0-fe15b10715d8","html_url":"https://github.com/TreestanG/json.db","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"72bbf15de228254b874190cb1f3acd4c8115e09f"},"previous_names":["treestang/file.db"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TreestanG/json.db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TreestanG%2Fjson.db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TreestanG%2Fjson.db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TreestanG%2Fjson.db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TreestanG%2Fjson.db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TreestanG","download_url":"https://codeload.github.com/TreestanG/json.db/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TreestanG%2Fjson.db/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29976272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T16:35:47.903Z","status":"ssl_error","status_checked_at":"2026-03-01T16:35:44.899Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["database","discord","discord-bot","discord-js","json"],"created_at":"2024-09-28T09:07:17.126Z","updated_at":"2026-03-01T17:03:38.316Z","avatar_url":"https://github.com/TreestanG.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jayson.database\na simple and small json-based database wrapper\n\nj(ay)son.database is an lightweight open-sourced package meant to provide an easy way for beginners to get integrated into using databases. it utilizes json files to store data making data easily viewable for all users. \n\n## installation\n```\nnpm i jayson.database\n```\n\n## usage\n```js\nimport { JsonDB } from 'jayson-database' \n\nconst db = new JsonDB({\n    path: 'test.json'\n}) // create a new instance of your database\n\nconst run = async () =\u003e {\n    db.set('abc', 'alphabet') // sets the value of abc to alphabet\n    db.set('abcObject', {\n        a: 1,\n        b: 2,\n        c: 3\n    }) // sets the value of abcObject to an object with a, b, and c values\n    db.set('abcObject.a', 4) // sets the value of abcObject.a to 4\n\n    db.get('abc') // 'alphabet'\n    db.get('abcObject') // { a: 4, b: 2, c: 3 }\n    db.get('abcObject.a') // 4\n\n    db.delete('abc') // deletes the value of abc\n    db.delete('abcObject.a') // deletes the value of abcObject.a\n    db.get('abc') // undefined\n    db.get('abcObject.a') // undefined\n\n    db.has('abc2') // false\n    db.has('abcObject') // true\n\n    db.clear() // clears the database\n    db.get('abcObject') // undefined\n\n    db.set('abc', 'alphabet')\n    db.set('abcObject', {\n        a: 1,\n        b: 2,\n        c: 3\n    })\n    db.all() // { abc: 'alphabet', abcObject: { a: 1, b: 2, c: 3 } }\n\n}\n\nrun()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftreestang%2Fjson.db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftreestang%2Fjson.db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftreestang%2Fjson.db/lists"}