{"id":17978369,"url":"https://github.com/ad-si/ybdb","last_synced_at":"2025-06-11T20:33:24.899Z","repository":{"id":57153190,"uuid":"52912979","full_name":"ad-si/ybdb","owner":"ad-si","description":"YAML Based Database","archived":false,"fork":false,"pushed_at":"2017-07-21T23:16:31.000Z","size":42,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-21T14:23:13.642Z","etag":null,"topics":["database","file-system","yaml"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ad-si.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}},"created_at":"2016-03-01T21:55:20.000Z","updated_at":"2024-06-17T18:05:20.000Z","dependencies_parsed_at":"2022-09-06T11:20:36.532Z","dependency_job_id":null,"html_url":"https://github.com/ad-si/ybdb","commit_stats":null,"previous_names":["adius/ybdb"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ad-si%2Fybdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ad-si%2Fybdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ad-si%2Fybdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ad-si%2Fybdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ad-si","download_url":"https://codeload.github.com/ad-si/ybdb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228125511,"owners_count":17873320,"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","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","file-system","yaml"],"created_at":"2024-10-29T17:33:24.017Z","updated_at":"2024-12-06T21:12:49.570Z","avatar_url":"https://github.com/ad-si.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YBDB\n\n**Y**AML **B**ased **D**ata**b**ase\n\nUses [lowdb](https://github.com/typicode/lowdb) for\naccessing and manipulating data.\nThe storage consists of one/several YAML files.\n\n\n## Installation\n\n```shell\nnpm install --save ybdb\n```\n\n\n## Usage\n\n`songs.yaml`:\n\n```yaml\n- title: Song One\n  length: 02:16\n\n- title: Another Song\n  length: 01:33\n\n- title: The Song\n  length: 03:41\n```\n\n```js\nconst Ybdb = require('ybdb')\nconst database = new Ybdb({\n  storageFile: path.join(__dirname, 'songs.yaml'),\n})\nconst initializedDb = await database.init()\nconst expectedData = {\n  songs: [\n    {\n      title: 'Song One',\n      length: '02:16',\n    },\n    {\n      title: 'Another Song',\n      length: '01:33',\n    },\n    {\n      title: 'The Song',\n      length: '03:41',\n    }\n  ]\n}\n\nassert.deepEqual(initializedDb.getState(), expectedData)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fad-si%2Fybdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fad-si%2Fybdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fad-si%2Fybdb/lists"}