{"id":16759630,"url":"https://github.com/shubhexists/go-json-db","last_synced_at":"2025-06-12T00:05:23.132Z","repository":{"id":204944148,"uuid":"712977331","full_name":"shubhexists/go-json-db","owner":"shubhexists","description":"A simple, light weight database using JSON, implemented in Go.","archived":false,"fork":false,"pushed_at":"2023-12-26T08:48:05.000Z","size":56,"stargazers_count":23,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T17:34:44.795Z","etag":null,"topics":["database","db","go","golang","json","jsondb","mongodb"],"latest_commit_sha":null,"homepage":"","language":"Go","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/shubhexists.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2023-11-01T15:36:41.000Z","updated_at":"2025-03-25T14:47:54.000Z","dependencies_parsed_at":"2023-12-26T09:49:06.168Z","dependency_job_id":"9d2882c2-2f70-40f2-8d01-cd0f8499e6ae","html_url":"https://github.com/shubhexists/go-json-db","commit_stats":null,"previous_names":["shubhexists/go-json-db"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/shubhexists/go-json-db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhexists%2Fgo-json-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhexists%2Fgo-json-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhexists%2Fgo-json-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhexists%2Fgo-json-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shubhexists","download_url":"https://codeload.github.com/shubhexists/go-json-db/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhexists%2Fgo-json-db/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259368018,"owners_count":22846823,"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":["database","db","go","golang","json","jsondb","mongodb"],"created_at":"2024-10-13T04:08:38.915Z","updated_at":"2025-06-12T00:05:23.108Z","avatar_url":"https://github.com/shubhexists.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-json-db\nThis is a light weight, easily managable and beginner friendly implementation of a Database that anyone can implement directly in their Local Systems. It provides database API's to perform pretty much every operation that one can perform in a traditional database. The aim is to be a worthy contender in the choice of Database for small and medium use cases. \n\n```\n                   _                           _ _     \n  __ _  ___       (_)___  ___  _ __         __| | |__  \n / _` |/ _ \\ _____| / __|/ _ \\| '_ \\ _____ / _` | '_ \\ \n| (_| | (_) |_____| \\__ \\ (_) | | | |_____| (_| | |_) |\n \\__, |\\___/     _/ |___/\\___/|_| |_|      \\__,_|_.__/ \n |___/          |__/                                   \n```\n# About\nIt goes down a No-Sql path ,quite similar to what MongoDB (Atlas) does. This project uses Directories to respresent any new collection and subsequent JSON files in their respective collections, each representing a record. \n\nThe main idea of this project is to bring the complex database processes like caching and mutexes into the most understandable language of Developers i.e. JSON : ).\n\n# Installation \n\nCurrently, to install, there are two dependencies that are also to be install with the project.\n\nThis package can be installed by -\n\n```\ngo get github.com/shubhexists/go-json-db\n```\n\nCache is implemented by - \n\n```\ngo get github.com/patrickmn/go-cache\n```\n\nLogging is implemented by - \n\n```\ngithub.com/jcelliott/lumber\n```\n# Usage \n1) Import the package by - \n\n```\ngithub.com/shubhexists/go-json-db/models\n```\n\n2) Create a new db instance in your desired directory -\n\n```\n db, cache, err := models.New(\"./database\")\n```\n\n3) Perform Operations as desired! For reference you can take the help of `examples/main.go` of this repository\n\n# Status \nThis project was built by me as a part of learning Golang. This project is heavily insipred by the architecture that MongoDB takes to provide a database. \n\nThis project still has lot of operations left which I would complete as soon as I get time , However as it's current stage, it is ready for usage in small projects atleast. : )\n\nEnjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshubhexists%2Fgo-json-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshubhexists%2Fgo-json-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshubhexists%2Fgo-json-db/lists"}