{"id":31390866,"url":"https://github.com/codetheearth/flaredb","last_synced_at":"2025-09-29T01:38:08.038Z","repository":{"id":315649723,"uuid":"1060354518","full_name":"CodeTheEarth/flareDb","owner":"CodeTheEarth","description":"syntax of mongoose, freedom of sqlite","archived":false,"fork":false,"pushed_at":"2025-09-26T16:24:38.000Z","size":58,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-27T10:43:37.664Z","etag":null,"topics":["database","mongoose","sqlite"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/CodeTheEarth.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-19T19:14:19.000Z","updated_at":"2025-09-26T16:24:43.000Z","dependencies_parsed_at":"2025-09-19T22:02:49.041Z","dependency_job_id":"d39d9159-2874-451e-821b-e0285518a462","html_url":"https://github.com/CodeTheEarth/flareDb","commit_stats":null,"previous_names":["codetheearth/flaredb"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CodeTheEarth/flareDb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeTheEarth%2FflareDb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeTheEarth%2FflareDb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeTheEarth%2FflareDb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeTheEarth%2FflareDb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeTheEarth","download_url":"https://codeload.github.com/CodeTheEarth/flareDb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeTheEarth%2FflareDb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277455215,"owners_count":25820678,"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","status":"online","status_checked_at":"2025-09-28T02:00:08.834Z","response_time":79,"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":["database","mongoose","sqlite"],"created_at":"2025-09-29T01:38:06.827Z","updated_at":"2025-09-29T01:38:08.033Z","avatar_url":"https://github.com/CodeTheEarth.png","language":"TypeScript","readme":"# FlareDB 🔥\n\n## Table of Contents\n\n- [Introduction](#introduction)\n- [Features](#features)\n- [Why Project FlareDB](#why-project-flaredb)\n- [How to use?](#how-to-use)\n- [FlareCache](#flarecache)\n    - [How to use FlareCache?](#how-to-use-flarecache)\n- [Contributors](#contributors)\n\n## Introduction:\n\nFlareDb is an ongoing project  that focuses on simplicity and efficiency. It is intended to be a self hosted database where individuals will be able to host and use with ease. The purpose of  `FlareDb` is not to compete with the likes of `sqlite`, `mongodb` and so on but rather to aid our organisation [CodeTheEarth](https://github.com/CodeTheEarth)\n\n## Features:\n- JSON document based database (inspo from `mongodb`) \n- Single `.db` file database(inspo from `sqlite`)\n- Indexing\n- Ease of use\n- Zero external dependencies\n- Low ram usage (10k documents -\u003e 38mb ram aproximately)\n## Why Project FlareDB\nProject flareDB as stated above is to aid our organisation [CodeTheEarth](https://github.com/CodeTheEarth) with a personal self hosted database to run our operations. That said, this is a completely open source project meaninig other developers can contribute, sponsor, take inspo from and self use for themselves \u003e_\u003c. This project should effectively solve the issues facing our organisation and other developers which relates to complexity of other databases and for some.. pricing.\n\n\n### How to use\nFirst make sure you have node installed\n\n- Installing dependency:\n```\nnpm install https://github.com/codetheearth/flaredb\n```\n- Initializing a database\n```\nconst db = new Flare(\"users.db\");\n```\n- Creating a new document\n```\nconst Users = db.collection(\"users\", { name: \"string\", age: \"number\" }); //example schema\n```\n- Inserting into documents\n```\nawait Users.put({ name: \"Haki\", age: 18 });\n```\n- Return whole document\n```\nconst all = await Users.find();\nconsole.log(\"All users:\", all)\n```\n- Find one\n```\nconst haki = await Users.findOne({ name: \"Kaima\" });\nconsole.log(\"Find one:\", haki.age);\n```\n- Update \n```\nawait Users.updateOne({ name: \"Haki\" }, { age: 19 }); // update first match\nawait Users.updateMany({ age: 20 }, { age: 21 }); // bulk update\n```\n- Delete\n```\nawait Users.deleteOne({ name: \"Kaima\" }); // delete first match\nawait Users.deleteMany({ age: 21 }); // delete all matches\nawait Users.clear(); // wipe entire collection\n```\n\n## FlareCache \nThis is a simple `redis` like key value pair db for things like cache and so on\n\n### How to use FlareCache?\n```\nconst cache = new FlareCache()\nawait cache.set(\"name\", \"haki\")\nconsole.log(cache.get(\"name\"))\n```\n\n### Contributors\n- [Haki](https://github.com/hakisolos)\n- [Kay](https://github.com/Kay-design3)\n- [King david](https://github.com/KING-DAVIDX)\n- [Xcelsama](https://github.com/Xcelsama)\n- [Kelly](https://github.com/)\n### Other contributors\n- [Astro](https://github.com/astrox11)\n\n\u003e CODE THE EARTH !!","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodetheearth%2Fflaredb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodetheearth%2Fflaredb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodetheearth%2Fflaredb/lists"}