{"id":18489107,"url":"https://github.com/hachreak/minidb","last_synced_at":"2026-03-08T20:33:07.525Z","repository":{"id":139147341,"uuid":"89783494","full_name":"hachreak/minidb","owner":"hachreak","description":"A minimal in-memory distributed master-less document database","archived":false,"fork":false,"pushed_at":"2018-11-25T18:41:53.000Z","size":43,"stargazers_count":30,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-23T18:06:28.222Z","etag":null,"topics":["cluster","database","distributed-database","document-database","erlang","erlang-libraries","erlang-library","in-memory-database","masterless","minidb","riak-core"],"latest_commit_sha":null,"homepage":"https://github.com/hachreak/minidb","language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hachreak.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-04-29T12:19:36.000Z","updated_at":"2022-09-19T12:12:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"d8d8e8fc-4701-442a-9045-7a856cc01812","html_url":"https://github.com/hachreak/minidb","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hachreak%2Fminidb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hachreak%2Fminidb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hachreak%2Fminidb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hachreak%2Fminidb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hachreak","download_url":"https://codeload.github.com/hachreak/minidb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247931026,"owners_count":21020152,"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":["cluster","database","distributed-database","document-database","erlang","erlang-libraries","erlang-library","in-memory-database","masterless","minidb","riak-core"],"created_at":"2024-11-06T12:55:17.950Z","updated_at":"2026-03-08T20:33:07.458Z","avatar_url":"https://github.com/hachreak.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"minidb\n==============\n\nThis is a minimal in-memory distributed master-less document database database.\n\nAPI\n---\n\n#### Cluster:\n\n- Auto-cluster: automatically create a cluster specified in the configuration\n    `minidb_cluster:join()`, or manually make a cluster passing a list of\n    seeds `minidb_cluster:make([bootstrap_node1])`.\n- Cluster status: `minidb_cluster:status()`\n- Join a cluster: `minidb_cluster:join('bootstrap_node')`\n- Leave a cluster: `minidb_cluster:leave()`\n- Ping a random node: `minidb:ping()`\n\n#### CRUD:\n\n- Create/Update a key: `minidb:put(key, value)`\n- Patch a value: `minidb:patch(key, {subkey1, subvalue1})`\n- Read a value: `minidb:get(key)` or `minidb:get(key, default)`\n- Query database: `minidb:find([..])`\n- Get all keys: `minidb:keys()`\n- Delete a key: `minidb:delete`\n- Drop everything: `minidb:drop()`\n\n#### Query:\n\nThe query language is similar to the one used by mongodb:\n\n`minidb:find([{\"section\", {'$eq', \"books\"}}, {\"likes\", {'$gt', 100}])`\n\nOperators available:\n\nOp.           | Name              | Example\n--------------|-------------------|------------------------------------------\n`'$eq'`       | Equals            | {\"section\", {'$eq', \"books\"}}\n`'$ne'`       | Not Equals        | {\"section\", {'$ne', \"books\"}}\n`'$gt'`       | Greater Than      | {\"likes\", {'$gt', 100}}\n`'$gte'`      | Greater or Equals | {\"likes\", {'$gte', 100}}\n`'$lt'`       | Lower Than        | {\"likes\", {'$lt', 100}}\n`'$lte'`      | Lower or Equals   | {\"likes\", {'$lte', 100}}\n\nNote: to get everything: `minidb:find([])`.\n\nBuild\n-----\n\n    $ rebar3 compile\n\nRun demo\n--------\n\nStart the first node:\n\n    $ make node1\n\nStart the second node:\n\n    $ make node2\n\nAfter 5 seconds, the second node will automatically connect to the first in a\ncluster.\n\nTo clean all the configuration (cluster informations):\n\n    $ make clean\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhachreak%2Fminidb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhachreak%2Fminidb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhachreak%2Fminidb/lists"}