{"id":19726522,"url":"https://github.com/gustavocadev/db","last_synced_at":"2026-05-06T17:31:08.429Z","repository":{"id":57675620,"uuid":"457380655","full_name":"gustavocadev/db","owner":"gustavocadev","description":"dbjson gonna help you to write and read json files easily 🦕","archived":false,"fork":false,"pushed_at":"2023-02-23T17:30:29.000Z","size":15,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-21T21:53:48.838Z","etag":null,"topics":["deno","json","typescript"],"latest_commit_sha":null,"homepage":"https://deno.land/x/dbjson","language":"TypeScript","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/gustavocadev.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}},"created_at":"2022-02-09T13:57:04.000Z","updated_at":"2023-03-07T06:18:33.000Z","dependencies_parsed_at":"2022-09-26T20:41:37.684Z","dependency_job_id":null,"html_url":"https://github.com/gustavocadev/db","commit_stats":null,"previous_names":["gustavocadev/dbjson","salemgst/db"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/gustavocadev/db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavocadev%2Fdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavocadev%2Fdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavocadev%2Fdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavocadev%2Fdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gustavocadev","download_url":"https://codeload.github.com/gustavocadev/db/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavocadev%2Fdb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32580145,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"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":["deno","json","typescript"],"created_at":"2024-11-11T23:35:57.296Z","updated_at":"2026-05-03T18:35:49.063Z","avatar_url":"https://github.com/gustavocadev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Dbjson\n\nBbjson gonna help you to interact with your json files that way you can use it\nas a database, but with a simple form to do it\n\n```typescript\n// we import the module\nimport { DbJSON } from 'https://deno.land/x/dbjson@LATEST_VERSION/mod.ts'\n\n// we define the type\ntype User = {\n\tname: string\n\tage: number\n\tid: string\n}\n\n// we need to choose the relative path of our db.json and the entry name of our json\nconst db = new DbJSON('./db/db.json', 'users')\n\nconst { users } = await db.readJSON\u003cUser\u003e()\n\nusers.push({\n\tname: 'tobi',\n\tage: 16,\n\tid: crypto.randomUUID(),\n})\n\n// this gonna write it in the place and with name we choose it in the instance we did in \"new Dbjson\"\nawait db.writeJSON(users)\n\nconsole.log(users) // [{ name: \"tobi\", age: 16, id: '6cb9248a-232f-4011-8a05-b315157fdfe5' }]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgustavocadev%2Fdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgustavocadev%2Fdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgustavocadev%2Fdb/lists"}