{"id":28053370,"url":"https://github.com/remiixinc/transfer-replitdb","last_synced_at":"2025-05-12T03:15:25.356Z","repository":{"id":57395659,"uuid":"355117450","full_name":"RemiixInc/transfer-replitdb","owner":"RemiixInc","description":"♻️ Transfer your ReplitDB data without completely rewriting your app when moving a project to a different hosting platform.","archived":false,"fork":false,"pushed_at":"2021-04-06T10:07:47.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-12T03:15:19.918Z","etag":null,"topics":["database","db","javascript","json","nodejs","npm","repldb","replit","replitdb"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/transfer-replitdb","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/RemiixInc.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":"2021-04-06T08:39:35.000Z","updated_at":"2025-02-23T03:43:31.000Z","dependencies_parsed_at":"2022-09-19T00:11:11.829Z","dependency_job_id":null,"html_url":"https://github.com/RemiixInc/transfer-replitdb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RemiixInc%2Ftransfer-replitdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RemiixInc%2Ftransfer-replitdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RemiixInc%2Ftransfer-replitdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RemiixInc%2Ftransfer-replitdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RemiixInc","download_url":"https://codeload.github.com/RemiixInc/transfer-replitdb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253666169,"owners_count":21944625,"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","db","javascript","json","nodejs","npm","repldb","replit","replitdb"],"created_at":"2025-05-12T03:15:24.737Z","updated_at":"2025-05-12T03:15:25.344Z","avatar_url":"https://github.com/RemiixInc.png","language":"JavaScript","readme":"# transfer-replitdb\nA node.js module that allows you to effortlessly transfer your ReplitDB data without completely rewriting your app when moving a project to a different hosting platform.\n\n## Example\n\n```js\nconst Database = require(\"transfer-replitdb\")\nconst db = new Database()\n\ndb.set(\"foo\", \"bar\");\n\ndb.get(\"foo\").then(console.log); // bar\n```\n\n## Importing data from ReplitDB\n\n```js\ndb.import(\"ReplitDB URL\")\n\n// Get your ReplitDB url by running `echo $REPLIT_DB_URL` in your old Repl's terminal.\n```\n\n## Commands\n**Import** the database\n\n``const Database = require(\"transfer-replitdb\")``\n\n**Create** a new database\n\n``const db = new Database()``\n\n**Set** a key to a value\n\n``db.set(\"key\", \"value\").then(() =\u003e {});``\n\n**Get** a key's value\n\n``db.get(\"key\").then(value =\u003e {});``\n\n**Delete** a key\n\n``db.delete(\"key\").then(() =\u003e {});``\n\n**List** all keys\n\n``db.list().then(keys =\u003e {});``\n\n**List** all keys with a prefix\n\n``db.list(\"prefix\").then(matches =\u003e {});``\n\n**Empty** the database\n\n``db.empty().then(() =\u003e {});``\n\n**Get all** keys and values\n\n``db.getAll().then(all =\u003e {});``\n\n**Set all** keys in the database\n\n``db.setAll({ \"key\": \"value\" }).then(all =\u003e {});``\n\n**Delete multiple** keys\n\n``db.deleteMultiple([ \"key1\", \"key2\" ]).then(() =\u003e {});``","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremiixinc%2Ftransfer-replitdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremiixinc%2Ftransfer-replitdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremiixinc%2Ftransfer-replitdb/lists"}