{"id":19865167,"url":"https://github.com/angelhtml/cakebase-document","last_synced_at":"2026-01-31T14:31:15.077Z","repository":{"id":63146882,"uuid":"565542537","full_name":"angelhtml/Cakebase-Document","owner":"angelhtml","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-06T22:38:10.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-10T07:43:43.808Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/angelhtml.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-11-13T18:28:09.000Z","updated_at":"2022-11-13T18:28:09.000Z","dependencies_parsed_at":"2023-12-06T23:29:26.760Z","dependency_job_id":"c2678d6d-5d3e-4d6b-959e-f3a44a621f21","html_url":"https://github.com/angelhtml/Cakebase-Document","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/angelhtml/Cakebase-Document","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angelhtml%2FCakebase-Document","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angelhtml%2FCakebase-Document/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angelhtml%2FCakebase-Document/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angelhtml%2FCakebase-Document/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/angelhtml","download_url":"https://codeload.github.com/angelhtml/Cakebase-Document/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angelhtml%2FCakebase-Document/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28945575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-11-12T15:21:30.856Z","updated_at":"2026-01-31T14:31:15.064Z","avatar_url":"https://github.com/angelhtml.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/erwinkulasic/Cakebase/master/.github/assets/header.jpg\" width=\"800px\"/\u003e\n\u003c/div\u003e\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\u003cdiv align=\"center\"\u003e\n\u003ch1\u003eCakebase\u003c/h1\u003e\n\n\u003cimg alt=\"TRAVIS\" src=\"https://img.shields.io/travis/erwinkulasic/cakebase?color=9870B8\u0026style=flat-square\"\u003e\n\u003cimg alt=\"NPM\" src=\"https://img.shields.io/npm/dw/cakebase?color=9870B8\u0026style=flat-square\"\u003e\n\u003cimg alt=\"GitHub issues\" src=\"https://img.shields.io/github/issues/erwinkulasic/cakebase?color=9870B8\u0026style=flat-square\"\u003e\n\u003cimg alt=\"NPM\" src=\"https://img.shields.io/github/license/erwinkulasic/cakebase?color=9870B8\u0026style=flat-square\"\u003e\n\n\u003c/div\u003e\n\n\u003cbr\u003e\n\nCakebase is an asynchronous fast json database that allows you to efficiently and easily edit, search or add objects.\nThis project has been optimized and improved with some updates for 2 years now. Cakebase is currently only available in Nodejs.\n\n\u003cbr\u003e\n\nHere are a few [examples](https://github.com/erwinkulasic/Cakebase/tree/master/examples)\n\n\u003cbr\u003e\n\n### **Getting started**\n\n\nUse [npm](https://www.npmjs.com/) or [yarn](https://classic.yarnpkg.com/en/) to install cakebase.\n\n```bash\nnpm i cakebase\n```\n\nAfter the installation you can create a json file and start immediately.\n\n\u003cbr\u003e\n\n### **Usage**\n\n\n\nNow you can import Cakebase to your project. \n\n\nThis is the easiest way to use Cakebase \n```javascript\nconst users = require('cakebase')(\"./users.json\");\n```\n\u003cbr\u003e\n\nYou can also use Cakebase with multiple json files\n\n```javascript\nconst table = require('cakebase');\n\nconst users = table(\"./users.json\");\nconst log = table(\"./log.json\");\n```\n\n\u003cbr\u003e\n\nadd an object to the json file\n\n```javascript\nawait users.set({ id: 0, username: \"John\", email: \"test@something.com\" });\n```\n\n\u003cbr\u003e\n\nRetrieve for objects in the json file\n\n```javascript\nconst user = await users.get(obj =\u003e obj.username === \"John\");\n```\n\n\u003cbr\u003e\n\nupdate objects in the json file\n\n```javascript\nawait users.update(obj =\u003e obj.username === \"John\", { location: \"Mars\" });\n```\n\u003cbr\u003e\n\nremove objects in the json file\n\n```javascript\nawait users.remove(obj =\u003e obj.location === \"earth\");\n```\n\n\u003cbr\u003e\n\nDelete all objects in the json file\n\n```javascript\nawait users.clear();\n```\n\n\u003cbr\u003e\n\n### **Contributing**\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n\u003cbr\u003e\n\n### **License**\n[MIT](https://github.com/erwinkulasic/Cakebase/blob/master/LICENSE)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangelhtml%2Fcakebase-document","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangelhtml%2Fcakebase-document","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangelhtml%2Fcakebase-document/lists"}