{"id":21595017,"url":"https://github.com/thirdmadman/in-memory-db","last_synced_at":"2025-10-13T00:48:49.113Z","repository":{"id":196581082,"uuid":"696453783","full_name":"thirdmadman/in-memory-db","owner":"thirdmadman","description":"Simple implementation of In-memory DB","archived":false,"fork":false,"pushed_at":"2023-09-27T14:30:27.000Z","size":68,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T17:17:15.712Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thirdmadman.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":"2023-09-25T19:19:30.000Z","updated_at":"2023-09-25T22:36:52.000Z","dependencies_parsed_at":"2023-09-26T08:29:37.509Z","dependency_job_id":"25d2683a-919d-46f9-b45d-1c1ca86cdf54","html_url":"https://github.com/thirdmadman/in-memory-db","commit_stats":null,"previous_names":["thirdmadman/in-memory-db"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirdmadman%2Fin-memory-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirdmadman%2Fin-memory-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirdmadman%2Fin-memory-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirdmadman%2Fin-memory-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thirdmadman","download_url":"https://codeload.github.com/thirdmadman/in-memory-db/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244207532,"owners_count":20416098,"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-11-24T17:24:35.936Z","updated_at":"2025-10-13T00:48:44.069Z","avatar_url":"https://github.com/thirdmadman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# in-memory-db\n\nSimple implementation of In-memory DB.\n\n## Installation\n\nUsing npm:\n\n``` bash\nnpm i @thirdmadman/in-memory-db\n```\n\n## Description\n\nTypescript, zero dependencies, compact.\n\nTechnically, it's ```Map\u003cstring, Array\u003cAbstractEntity\u003e\u003e```, but with simple access methods.\n\nAll magic happens with usage of TypeScript - this implementation will guard you from using wrong types.\n\nAdditionally, you can provide your own function for generating global ids.\n\n## How to use\n\n``` typescript\n\ninterface UserEntity extends AbstractEntity {\n  id: string;\n  name: string;\n  password: string;\n}\n\nconst dbSchema = {\n  user: Array\u003cUserEntity\u003e(),\n};\n\nconst db = new GenericInMemoryDB\u003ctypeof dbSchema\u003e(dbSchema);\n\nconst userRepository = new GenericRepository\u003ctypeof dbSchema, UserEntity\u003e(db, 'user');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthirdmadman%2Fin-memory-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthirdmadman%2Fin-memory-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthirdmadman%2Fin-memory-db/lists"}