{"id":20171084,"url":"https://github.com/deathbeam/littledb","last_synced_at":"2025-04-10T02:41:47.140Z","repository":{"id":77929366,"uuid":"141152665","full_name":"deathbeam/littledb","owner":"deathbeam","description":"The littlest key-value database :baby_chick:","archived":false,"fork":false,"pushed_at":"2022-01-16T14:10:45.000Z","size":86,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T23:29:44.289Z","etag":null,"topics":["database","nodejs","nosql"],"latest_commit_sha":null,"homepage":"","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/deathbeam.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":"2018-07-16T14:48:03.000Z","updated_at":"2025-01-11T18:25:14.000Z","dependencies_parsed_at":"2023-07-18T12:30:52.150Z","dependency_job_id":null,"html_url":"https://github.com/deathbeam/littledb","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"9dda7318fecc7475e7b1b12a2978329d4c6275f1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deathbeam%2Flittledb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deathbeam%2Flittledb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deathbeam%2Flittledb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deathbeam%2Flittledb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deathbeam","download_url":"https://codeload.github.com/deathbeam/littledb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248144954,"owners_count":21055014,"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","nodejs","nosql"],"created_at":"2024-11-14T01:23:14.149Z","updated_at":"2025-04-10T02:41:47.130Z","avatar_url":"https://github.com/deathbeam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# littledb [![Build Status](https://travis-ci.org/deathbeam/littledb.svg?branch=master)](https://travis-ci.org/deathbeam/littledb)\n\n`littledb` is the littlest key-value database possible based on this\nawesome [gist](https://gist.github.com/brandonb927/9587436).\n\n`littledb` consists of simple JavaScript API to `put`/`get` and `ls`\nto/from database and simple database server.\n\nTo run server, simply install package and run\n\n```bash\nlittledb 80 # without passing some available port will be chosen\n```\n\nor in node.js\n```javascript\nconst port = 80\nrequire('littledb')().listen(port)\n```\n\nThen you can simply access it with `curl`:\n\n\n```sh\n# save key\ncurl -d \"key;value\" localhost  \n# save array\ncurl -d \"key;value;value;value\" localhost  \n# show keys\ncurl -d \"ls\" localhost  \n# get value\ncurl -d \"key\" localhost  \n# delete key\ncurl -d \"key;\" localhost\n```\n\nTo create simple client:\n\n```javascript\nconst path = './db.json' // this is default path, not required to be passed\nconst db = require('littledb')(path)\n\ndb.put('hello', 'world') // =\u003e \"world\"\ndb.get('hello')          // =\u003e \"world\"\ndb.ls()                  // =\u003e [ \"hello\" ]\ndb.put('hello')          // =\u003e undefined\ndb.get('hello')          // =\u003e undefined\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeathbeam%2Flittledb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeathbeam%2Flittledb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeathbeam%2Flittledb/lists"}