{"id":16404600,"url":"https://github.com/kuldeepkeshwar/simple-github-db","last_synced_at":"2025-10-19T07:39:59.100Z","repository":{"id":55346360,"uuid":"197191912","full_name":"kuldeepkeshwar/simple-github-db","owner":"kuldeepkeshwar","description":"A simpe key value store using Github.","archived":false,"fork":false,"pushed_at":"2021-01-05T12:11:14.000Z","size":19,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-23T23:55:34.539Z","etag":null,"topics":["database","github-database","key-value"],"latest_commit_sha":null,"homepage":"","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/kuldeepkeshwar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"custom":"https://www.paypal.me/kuldeepkeshwar"}},"created_at":"2019-07-16T12:41:40.000Z","updated_at":"2024-03-11T07:40:07.000Z","dependencies_parsed_at":"2022-08-14T21:50:52.705Z","dependency_job_id":null,"html_url":"https://github.com/kuldeepkeshwar/simple-github-db","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuldeepkeshwar%2Fsimple-github-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuldeepkeshwar%2Fsimple-github-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuldeepkeshwar%2Fsimple-github-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuldeepkeshwar%2Fsimple-github-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kuldeepkeshwar","download_url":"https://codeload.github.com/kuldeepkeshwar/simple-github-db/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233757947,"owners_count":18725646,"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","github-database","key-value"],"created_at":"2024-10-11T05:52:56.032Z","updated_at":"2025-09-21T13:32:58.169Z","avatar_url":"https://github.com/kuldeepkeshwar.png","language":"JavaScript","funding_links":["https://www.paypal.me/kuldeepkeshwar"],"categories":[],"sub_categories":[],"readme":"# A simpe key value store using Github.\n[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors)\n\n## Install\n`npm install simple-github-db`\n## Usage\n\n#### Create database\n```\n(async function(){\n    try {\n        await GithubDb.createDatabase(\u003cDATABASE_NAME\u003e,\u003cTOKEN\u003e)\n        await test();\n    } catch (error) {\n        console.error(error);\n    }\n})()\n\n```\n#### CRUD Operation\n```diff\nasync function test(){\n    const db= GithubDb({db:\u003cDATABASE_NAME\u003e,token:\u003cTOKEN\u003e}); \n\n+   const {identifier}=await db.add({document:\"user\"},{name:\"John\"});\n    console.log(\"added user\", identifier);\n    \n+   const user=await db.fetchOne({document:\"user\",identifier});\n    console.log(\"fetched user\", user);\n\n+   const updated=await db.update({document:\"user\",identifier},{name:\"John Cena\"});\n    console.log(\"updated user\", updated);\n    \n+   const users=await db.fetchAll({document:\"user\"});\n    console.log(\"fetched users\", users);\n    for (const {identifier} of users) {\n+       const result=await db.delete({document:\"user\",identifier});\n        console.log(\"delete users\", result);\n    }\n}  \n\n(async function(){\n    try {\n        await test();\n    } catch (error) {\n        console.error(error);\n    }\n})()\n```\n\n### Warning\nMeant to be used for side-projects, it doesn't scale or fulfil a fully-fledged database needs.\n\n#### like it?\n\n⭐️ this repo\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://in.linkedin.com/in/kuldeepkeshwar\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/10448534?v=4\" width=\"100px;\" alt=\"anotherjsguy\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eanotherjsguy\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kuldeepkeshwar/simple-github-db/commits?author=kuldeepkeshwar\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuldeepkeshwar%2Fsimple-github-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkuldeepkeshwar%2Fsimple-github-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuldeepkeshwar%2Fsimple-github-db/lists"}