{"id":13800680,"url":"https://github.com/MaximilianHeidenreich/DsDDB","last_synced_at":"2025-05-13T09:31:48.151Z","repository":{"id":45425370,"uuid":"322936801","full_name":"MaximilianHeidenreich/DsDDB","owner":"MaximilianHeidenreich","description":"A \"Dead Simple Deno DataBase\".","archived":false,"fork":false,"pushed_at":"2022-12-07T12:19:09.000Z","size":40,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-09T03:55:24.974Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/MaximilianHeidenreich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-19T20:58:29.000Z","updated_at":"2023-02-26T00:18:59.000Z","dependencies_parsed_at":"2023-01-23T17:05:17.635Z","dependency_job_id":null,"html_url":"https://github.com/MaximilianHeidenreich/DsDDB","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaximilianHeidenreich%2FDsDDB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaximilianHeidenreich%2FDsDDB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaximilianHeidenreich%2FDsDDB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaximilianHeidenreich%2FDsDDB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaximilianHeidenreich","download_url":"https://codeload.github.com/MaximilianHeidenreich/DsDDB/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253913207,"owners_count":21983273,"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":[],"created_at":"2024-08-04T00:01:15.058Z","updated_at":"2025-05-13T09:31:48.127Z","avatar_url":"https://github.com/MaximilianHeidenreich.png","language":"TypeScript","funding_links":[],"categories":["Modules"],"sub_categories":["Database","Assistants"],"readme":"\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/MaximilianHeidenreich/DsDDB\"\u003e\n    \u003cimg src=\"https://deno.land/logo.svg\" alt=\"Deno Logo\" width=\"80\" height=\"80\"\u003e\n  \u003c/a\u003e\n\n\u003ch2 align=\"center\"\u003eDsDDB\u003c/h2\u003e\n\n\u003cp align=\"center\"\u003e\n    A lightweight, developer friendly, key-value persistant storage solution for Deno projects\u003c/a\u003e.\n    \u003cbr /\u003e\n    \u003ca href=\"https://doc.deno.land/https/deno.land/x/dsddb/mod.ts\"\u003e\u003cstrong\u003eExplore the docs »\u003c/strong\u003e\u003c/a\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/MaximilianHeidenreich/DsDDB/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/MaximilianHeidenreich/DsDDB/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\u003cbr\u003e\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n\n## About The Project\n\nI created this project because I needed a super simple key-value database which\ncould store data between script restarts. This is the result of that attempt.\n\nObviously it can't hold up with \"real\" databases but if you are just starting\nout developing a new project and you want a dead simple way to store data, this\nprobably is the solution for you.\n\nIf you want to use it, please check out the docs for the project.\n\n### Project Goals\n\n- Store \u0026 Access key-value pairs (support for primitive \u0026 custom values)\n- Write stored data to disk\n- Load stored data from disk\n- Expose a dead simple API to developers\n- Don't include anything else other than Deno std\n\n\u003cbr\u003e\n\n\u003c!-- USAGE --\u003e\n\n## Usage\n\nThis is the most basic example to get DsDDB up and running within your project.\nFor further information check out the\n[API Documentation](https://doc.deno.land/https/deno.land/x/dsddb/mod.ts).\n\n\u003e ! Note: If you are using the load() and write() methods, you need to run your\n\u003e Deno program with the \"--allow-read --allow-write\" flags.\n\n```TypeScript\n// 1. Import DsDDB\nimport { DsDDB } from \"https://deno.land/x/dsddb@v2.1.0/mod.ts\";\n\n// 2. Create new DsDDB instance\nconst database = new DsDDB();\n\n// 3. Load from disk\nawait database.load();\n\n// 4. Use database\ndatabase.set(\"key1\", \"value 1\"); // Always override value.\ndatabase.set(\"myKey\", \"Hello World\", false); // Never  override value.\n\nconsole.log(database.get(\"myKey\"));\n\n// 5. Write data to disk\nawait database.write();\n```\n\nIf you want to store custom data structures, there's a solution to that as well.\n\n```TypeScript\n// 1. Import DsDDB\nimport { DsDDB } from \"https://deno.land/x/dsddb@v2.1.0/mod.ts\";\n\n// 2. Define your data structure.\ninterface IDino {\n  name: string;\n  size: number;\n  birthday: Date;\n}\n\n// 3. Define your data.\nlet data1: IDino = {\n  name: \"Deno\",\n  size: 69,\n  birthday: new Date(),\n};\n\n// 4. Create new DsDDB instance\nconst database = new DsDDB\u003cIDino\u003e();\n\n// 5. Load from disk\nawait database.load();\n\n// 6. Use database\ndatabase.set(\"deno\", data1);\n\nconsole.log(database.get(\"deno\"));\n\n// 7. Write data to disk\nawait database.write();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMaximilianHeidenreich%2FDsDDB","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMaximilianHeidenreich%2FDsDDB","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMaximilianHeidenreich%2FDsDDB/lists"}