{"id":19926676,"url":"https://github.com/lunaroyster/repldb-deno","last_synced_at":"2026-04-18T04:02:08.296Z","repository":{"id":75706362,"uuid":"275504904","full_name":"lunaroyster/repldb-deno","owner":"lunaroyster","description":"A deno client for ReplDB (WIP)","archived":false,"fork":false,"pushed_at":"2020-06-29T01:06:46.000Z","size":12,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-01T20:11:53.418Z","etag":null,"topics":["deno","denoland","repldb","replit"],"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/lunaroyster.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-28T04:15:29.000Z","updated_at":"2023-03-08T15:17:45.000Z","dependencies_parsed_at":"2023-06-07T10:30:59.013Z","dependency_job_id":null,"html_url":"https://github.com/lunaroyster/repldb-deno","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lunaroyster/repldb-deno","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lunaroyster%2Frepldb-deno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lunaroyster%2Frepldb-deno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lunaroyster%2Frepldb-deno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lunaroyster%2Frepldb-deno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lunaroyster","download_url":"https://codeload.github.com/lunaroyster/repldb-deno/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lunaroyster%2Frepldb-deno/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31955919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","denoland","repldb","replit"],"created_at":"2024-11-12T22:30:12.537Z","updated_at":"2026-04-18T04:02:08.254Z","avatar_url":"https://github.com/lunaroyster.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# repldb-deno\n\nReplDB Deno is just that, a client for ReplDB written for use in Deno and other TypeScript environments.\n\n## How to use\n\n### Importing ReplDB\n\nFirst, you want to import the ReplDB Client. In Deno, you can import it directly from its GitHub URL\n\n```typescript\nimport { ReplDBClient } from 'https://raw.githubusercontent.com/lunaroyster/repldb-deno/master/mod.ts';\n```\n### Initializing ReplDB\n\nTo initialize, use one of these:\n\n```typescript\n// This only works if REPLIT_DB_URL is defined, which should be the case when running in Repl.it\nconst replDB = ReplDBClient.createFromEnv();\n```\n\n```typescript\nconst dbUrl = Deno.env.get('REPLIT_DB_URL');\nconst replDB = new ReplDBClient(dbUrl);\n```\n\n#### JSON mode\n\nYou can also initialize ReplDB in json mode, which automatically serializes and deserializes values to JSON strings before storing in ReplDB.\n\n```typescript\nconst replDB = new ReplDBClient(dbUrl, { mode: 'json' });\n```\n\nOr,\n\n```typescript\nconst replDB = ReplDBClient.createFromEnv({ mode: 'json' });\n```\n\n### CRUD operations\n\nHere's some examples \n\n```typescript\n// Setting a value for a given key\nawait replDB.set('date', '6/28/2020');\n\n// Getting a value\nlet date = await replDB.get('date');\nconsole.log(date);\n// 6/28/2020\n\n// Listing all keys\nlet keys = await replDB.list();\nconsole.log(keys);\n// [ \"date\" ]\n\n// Deleting a key (and its value)\nawait replDB.delete('date')\nconsole.log(await replDB.list().length === 0)\n// true\n\n```\n\n### Group operations (wip)\n\u003c!-- Group operations --\u003e\n\n### Core functions\n\nThe client contains 'Core functions' that are wrappers around the main http calls. These start with a capital letter.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flunaroyster%2Frepldb-deno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flunaroyster%2Frepldb-deno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flunaroyster%2Frepldb-deno/lists"}