{"id":15676602,"url":"https://github.com/shadowtime2000/energydb","last_synced_at":"2026-05-06T14:31:21.838Z","repository":{"id":62421725,"uuid":"301590196","full_name":"shadowtime2000/energydb","owner":"shadowtime2000","description":"Key value database for Deno","archived":false,"fork":false,"pushed_at":"2020-10-07T15:39:50.000Z","size":10,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-20T02:19:21.833Z","etag":null,"topics":["database","deno","hacktoberfest","javascript","typescript","typescript-library"],"latest_commit_sha":null,"homepage":"https://deno.land/x/energydb","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/shadowtime2000.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-10-06T02:12:09.000Z","updated_at":"2021-08-03T16:22:46.000Z","dependencies_parsed_at":"2022-11-01T17:32:07.195Z","dependency_job_id":null,"html_url":"https://github.com/shadowtime2000/energydb","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/shadowtime2000/energydb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowtime2000%2Fenergydb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowtime2000%2Fenergydb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowtime2000%2Fenergydb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowtime2000%2Fenergydb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shadowtime2000","download_url":"https://codeload.github.com/shadowtime2000/energydb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowtime2000%2Fenergydb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32698090,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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","deno","hacktoberfest","javascript","typescript","typescript-library"],"created_at":"2024-10-03T16:03:58.577Z","updated_at":"2026-05-06T14:31:21.823Z","avatar_url":"https://github.com/shadowtime2000.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eenergydb\u003c/h1\u003e\n\u003cp  align=\"center\"\u003e\u003ccode\u003ekey: string\u003c/code\u003e \u003ccode\u003evalue: any\u003c/code\u003edatabase\u003c/p\u003e\n\n## CDN\nYou can use [denopkg](https://denopkg.com/shadowtime2000/energydb) or `deno.land/x`\n\n### Usage\n```typescript\nimport EnergyDB from \"https://denopkg.com/shadowtime2000/energydb/mod.ts\";\n\nconst db = new EnergyDB();\n\nawait db.set(\"foo\", \"bar\");\nawait db.get(\"foo\"); // \"bar\"\nawait db.delete(\"foo\");\n```\n\n#### Custom Stores\nStores must fit the interface under `mod/store.ts` and store factories must fit the interface under `mod/storeFactory.ts`.\n```typescript\nconst storeFactory = () =\u003e new Map\u003cstring, any\u003e(); // Replace with your own store\n\nconst db = new EnergyDB(storeFactory);\n```\n\n#### Adapters\nBy default the database is stored in memory but `EnergyDB` still supports database adapters. They must fit the interface under `mod/adapter.ts` and you can register them as so:\n```typescript\nconst db = new EnergyDB();\n\ndb.registerAdapter(new MyAdapter());\n```\n\n##### Supported Adapters\n\n- A `sqlite` adapter located under `mod/adapter/sqlite.ts`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadowtime2000%2Fenergydb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshadowtime2000%2Fenergydb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadowtime2000%2Fenergydb/lists"}