{"id":21279085,"url":"https://github.com/cttricks/xtinydb","last_synced_at":"2025-07-11T08:33:36.243Z","repository":{"id":192028831,"uuid":"364890689","full_name":"cttricks/xTinyDB","owner":"cttricks","description":"The xTinyDB is an experimental database service that communicates with a Web service to store and retrieve information. ","archived":false,"fork":false,"pushed_at":"2023-09-20T15:01:33.000Z","size":95,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-09-21T04:44:47.165Z","etag":null,"topics":["androidappdevelopment","appinventor","niotron","nosql-database","php","tinywebdb"],"latest_commit_sha":null,"homepage":"https://cttricks.com/xTinyDB/","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/cttricks.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}},"created_at":"2021-05-06T11:45:04.000Z","updated_at":"2023-09-20T15:01:36.000Z","dependencies_parsed_at":"2023-09-02T06:43:07.152Z","dependency_job_id":null,"html_url":"https://github.com/cttricks/xTinyDB","commit_stats":null,"previous_names":["cttricks/xtinydb"],"tags_count":1,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cttricks%2FxTinyDB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cttricks%2FxTinyDB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cttricks%2FxTinyDB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cttricks%2FxTinyDB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cttricks","download_url":"https://codeload.github.com/cttricks/xTinyDB/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225708651,"owners_count":17511705,"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":["androidappdevelopment","appinventor","niotron","nosql-database","php","tinywebdb"],"created_at":"2024-11-21T10:18:57.406Z","updated_at":"2024-11-21T10:18:58.038Z","avatar_url":"https://github.com/cttricks.png","language":"JavaScript","readme":"\u003ch1 align=\"center\" style=\"border: none !important\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/cttricks/xTinyDB/main/GUI/assets/banner1.png\"/\u003e\u003cbr\u003e\u003c/h1\u003e\n\u003cp align=\"center\"\u003e✨ The Open Source TinyWebDB Alternative ✨\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n \n![Build Status](https://badgen.net/apm/license/linter)\n![Node version](https://badgen.net/packagist/php/monolog/monolog)\n[![Twitter](https://img.shields.io/twitter/url.svg?url=https%3A%2F%2Ftwitter.com%2Fct_tricks\u0026style=social\u0026label=Follow%20%40ct_tricks)](https://twitter.com/ct_tricks)\n\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"http://cttricks.com/xTinyDB/\"\u003e\u003cb\u003eWebsite\u003c/b\u003e\u003c/a\u003e •\n    \u003ca href=\"https://community.niotron.com/\"\u003e\u003cb\u003eCommunity\u003c/b\u003e\u003c/a\u003e • \n    \u003ca href=\"https://twitter.com/ct_tricks\"\u003e\u003cb\u003eTwitter\u003c/b\u003e\u003c/a\u003e\n\u003c/p\u003e  \n\nThe xTinyDB is an experimental database service that communicates with a Web service to store and retrieve information. This micro document-based no-SQL database is inspired by the TinyWebDB component of MIT Appinventor. I have made many changes to CRUD data easily with a little bit of security and more features. \n\nAlthough this service as an extension is usable, it is very limited and meant primarily as a demonstration for people who would like to create their cloud database that talks to the Web. In this we have methods to store a value under a tag, retrieve the value associated with the tag and delete/clear tags and values from the server. The interpretation of what “store” and “retrieve” means is up to the Web service.\n\n# Features\n- ⚡ Multiple values associated with the tags can be stored/updated in a bucket at a time..\n- ⚡ Can call the entire bucket which returns a list of Tags, Values of those tags and Sub Buckets.\n- ⚡ One or more required tags can be called from a particular bucket at a time.\n- ⚡ One or more tags can be removed/cleared from the bucket.\n- ⚡ Entire bucket can be remove/cleared from the server\n\n# Production Setup\nWe have GUI and Vendor files to host on the server. Let's first set up the vendor/xTinyDB database on our server. Also, note that you don't have to rename any of these four files.\n- Step1 - Download the four files available in the vendor folder of this git repository. (storeValue.php, getValue.php, clearValue.php, dbInfo.php).\n- Step2 - Open dbInfo.php file using any editor ( you can even use notepad ) and change `storage` \u0026 `accessKey`  Here, storage is the secured path to DB files.  AccessKey is the\nkey to make secure calls from the client side.\n```php\n$xTinyDB = array(\n\t\"storage\" =\u003e \"storage-area\",\n\t\"accessKey\" =\u003e \"sampleaccesskey01\"\n);\n```\n- Step3 - On your cPanel, go to the public directory and create a directory/folder `xTinyDB`. Now create another dir/folder and name it anything you like to name your first database. And upload all these four files here. Note that \n\n:warning: Create an index.php file (5th file). Only if the direct access to dir `xTinyDB` is public.\n\n# GUI Setup\n![image|690x252](https://raw.githubusercontent.com/cttricks/xTinyDB/main/GUI/assets/banner2.png)\n\nClick here to download the zip files of xTinyDB GUI or download files of the GIU section of this git repository. Upload it to the `xTinyDB` directory that we created earlier. \n\nDone, now simply open xTinyDB `index.php` in new tab. ( Example: https://yourdomain.com/xTinyDB/ )\n\n## Control Buttons On GUI\n\n1. Add a new tag in the current bucket or in a sub bucket of the current bucket.\n2. Hide/Show tags and values in UI\n3. Hide/Show sub buckets in UI\n4. Refresh current bucket\n5. Copy JSON of the current bucket\n6. Delete/remove/clear the current bucket\n\n\nHere we have an input field to enter the bucket path to view it. On top of all these, you can also use `ctrl+b` to move back to the previous bucket.\n\n# 🎯  Why i'm building this ?\nMost app developers equip themselves with either spreadsheet or a database to solve their cloud-storage needs. Spreadsheet, MySQL DB, Airtable, and Firebase, etc. are used by a +Thousand app developers making apps on MIT Appinventor and its distributions every single day. However, I made this document-based no-SQL database just as an experiment. It is inspired by the TinyWebDB component of appinventor. As very few developers actually use this component. So I took an approach to improve it a bit more and came up with this xTinyDB stuff. It is not a complete database solution. But yeah! Anyone can use this in their small/big projects at their own risk. :smile:\n\n\n# :pushpin: Important Links\n- [Download Extension](https://cttricks.com/xTinyDB/com.cttricks.xTinyDB.aix) for appinventor and distributions.\n- Tutorial Video On YouTube\n- [Demo Dashboard](https://cttricks.com/xTinyDB)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcttricks%2Fxtinydb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcttricks%2Fxtinydb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcttricks%2Fxtinydb/lists"}