{"id":37023546,"url":"https://github.com/ssddcodes/ssddrtdb","last_synced_at":"2026-01-14T02:50:02.931Z","repository":{"id":41893222,"uuid":"410880581","full_name":"ssddcodes/ssddrtdb","owner":"ssddcodes","description":"rtdb","archived":true,"fork":false,"pushed_at":"2022-04-28T06:07:52.000Z","size":3240,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-16T16:06:31.471Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/ssddcodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-27T12:44:56.000Z","updated_at":"2024-02-19T14:49:55.000Z","dependencies_parsed_at":"2022-08-11T20:30:47.100Z","dependency_job_id":null,"html_url":"https://github.com/ssddcodes/ssddrtdb","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ssddcodes/ssddrtdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssddcodes%2Fssddrtdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssddcodes%2Fssddrtdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssddcodes%2Fssddrtdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssddcodes%2Fssddrtdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ssddcodes","download_url":"https://codeload.github.com/ssddcodes/ssddrtdb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssddcodes%2Fssddrtdb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408773,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":[],"created_at":"2026-01-14T02:50:02.304Z","updated_at":"2026-01-14T02:50:02.916Z","avatar_url":"https://github.com/ssddcodes.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSDD Realtime Database (ZotDB)\n\nZotDB provides you realtime Database service on your own VPS/pc.\n\n***\n|   - | -                                           |\n|----:|:--------------------------------------------|\n|  📩 | [Download](#Implement)                      |\n|  📋 | [AvailableParameters](#AvailableParameters) |\n|  💻 | [Implementation](#Implementation)           |\n|  🧾 | [Changelog](#Changelog)                     |\n|  🏆 | [Credits](#Credits)                         |\n|  ⚖️ | [License](#License)                         |\n\n## Implement\n***\n### *Gradle*\n\n```groovy\n implementation 'dev.ssdd:rtdb:2.6.1'\n```\n### *Maven*\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003edev.ssdd\u003c/groupId\u003e\n  \u003cartifactId\u003ertdb\u003c/artifactId\u003e\n  \u003cversion\u003e2.6.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Implement the Server.\n***\n\nPlease checkout [server branch](https://github.com/ssddcodes/ssddrtdb/tree/server)\n\n## Info.\n***\n\n## AvailableParameters\n\n| Methods/params                |                                    uses                                    |\n|-------------------------------|:--------------------------------------------------------------------------:|\n| setValue()                    |                    used to push an object to database.                     |\n| addValueEventListener()       |               used to query and listen to *multiple* values                |\n| addSingleValueEventListener() |             used to query and listen to *single* value object              |\n| child()                       |                 it's used to refer a path in the database                  |\n| push()                        | used to generate a unique keyID for the database and add to path referance |\n| getPushKey()                  |                        returns string of unique id                         |\n\n## Implementation\n***\n* To initiate:-\n\n```java\n  ZotDB zotDB = ZotDB.init(\"ws://\u003cserverip\u003e:\u003cport\u003e/\u003cdbid\u003e\");\n//dbid is the root name of your json, for more details please see server logs\n```\n\n* To navigate to some path:-\n\n```java\n//there are server ways to navigate through your db like:- \nZotDB zotDB = ZotDB.init(\"ws://\u003cserverip\u003e/dbid\").child(\"abc/xyz/xyz1\");\n\n// or\nzotDB.child(\"abc/xyz/xyz1\");\n// or \nzotDB.child(\"abc\").child(\"xyz\").child(\"xyz1\");\n\n//note that the above path reference will be reset everytime\n// you called method to listen values or set/update values.\n```\n\n* To Listen to Single Value:-\n\n```java\nzotDB.child(\"abc/xyz/xyz1\").addSingleValueEventListener(new SingleValueEventListener() {\n            @Override\n            public void onDataChange(@Nullable Object data) {\n                System.out.println(data);\n            }\n        });\n```\n\n* To add/update value to the database:-\n\n```java\n//let's say we have JSON:- \n//{\n//\n//     \"ssdd\": {\n//         \"abc\": {\n//             \"xyz\": {\n//                 \"xyz1\": \"ayo\"\n//             }\n//         }\n//     }\n//\n// }\n\n//so setValue will set (or update value if exists) some value to \"hie\".\n  zotDB.child(\"abc/xyz/xyz1\").setValue(\"hie\");\n//in this case the json will become:- \n//{\n//\n//     \"ssdd\": {\n//         \"abc\": {\n//             \"xyz\": {\n//                 \"xyz1\": \"hie\"\n//             }\n//         }\n//     }\n//\n// }\n\n//for more info please chekc test/java folder\n\n```\n\n* To remove Value:-\n```java\nzotDB.child(\"abc/xyz/xyz1\").removeValue();\n//this will remove value at 'abc/xyz/xyz1'\n```\n\n* To listen to multiple values\n\n```java\n//please check out the folder test/java\n```\n\nFor more info please checkout [Example](https://github.com/ssddcodes/ssddrtdb/tree/server/test/java/Main.java)\n\n# Demo\n***\n\n![Demo](https://github.com/ssddcodes/ssddrtdb/blob/flutterlib/demo.gif)\n\n## Changelog\n***\n* v2.6(dependency) :- major update and stable release \n* v2.6(server):- major update with feature to add multiple servers in the same server file.\n* V-1.0.4-BETA:- Public beta, extended support for all java projects. \n* V-1.0.3-BETA:- Internal Tests.\n* V-1.0.2-BETA:- Internal Tests.\n* V-1.0.1-BETA:- Major bug fixes. \n* V-1.0.1:- Major bug fixes.\n## Credits\n\u003e ***\n\u003e [Sandip](https://github.com/ssddcodes):- Creator, Developer of SSDDRTDB.\n\u003e \n\u003e [Yamin](https://github.com/yamin8000):- Publishing and management.\n\n## License\n***\n\u003e RTDB is licensed under the [GNU General Public License v3.0](./LICENSE.md)  \n\u003e Permissions of this strong copyleft license are conditioned on making  \n\u003e available complete source code of licensed works and modifications,  \n\u003e which include larger works using a licensed work, under the same  \n\u003e license. Copyright and license notices must be preserved. Contributors  \n\u003e provide an express grant of patent rights.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssddcodes%2Fssddrtdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fssddcodes%2Fssddrtdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssddcodes%2Fssddrtdb/lists"}