{"id":18584932,"url":"https://github.com/theatom06/xdb","last_synced_at":"2025-05-16T05:33:50.706Z","repository":{"id":154494794,"uuid":"606397396","full_name":"theatom06/xdb","owner":"theatom06","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-15T16:10:46.000Z","size":938,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T16:52:19.205Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/theatom06.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":"2023-02-25T11:17:55.000Z","updated_at":"2025-01-19T07:49:04.000Z","dependencies_parsed_at":"2024-11-07T00:33:35.161Z","dependency_job_id":"03674f08-7b52-45d1-ac7b-bb8f4742f629","html_url":"https://github.com/theatom06/xdb","commit_stats":null,"previous_names":["theatom06/xdb","u5106/xdb"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theatom06%2Fxdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theatom06%2Fxdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theatom06%2Fxdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theatom06%2Fxdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theatom06","download_url":"https://codeload.github.com/theatom06/xdb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254474574,"owners_count":22077311,"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":[],"created_at":"2024-11-07T00:29:29.885Z","updated_at":"2025-05-16T05:33:50.689Z","avatar_url":"https://github.com/theatom06.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XDB\nThis is a basic Node.js HTTP server that provides key-value store functionality. The server allows you to create, retrieve, store, update, and delete data using simple HTTP requests.\n\n## Usage\n\n1. Install the vx.x.x-xdb.bun.js file \n2. Run the file in \n\n## Api\n\n_NOTE: ALL THE ENDPOINTS USE GET REQUESTS_\n\n### 1. Create a new file:\n\n```http\n/new?id={fileId}\n```\n\nCreates a new JSON file in the specified directory (_see Configuration_).\n\n### 2. Retrieve data:\n```http\n/{fileId}/get/?id={key}\n```\nRetrieves the value associated with the specified key from the JSON file.\n\n### 3. Store data:\n```http\n/{fileId}/store/?id={key}\u0026data={value}\n```\nStores the provided key-value pair in the JSON file.\n\n### 4. Update data (PATCH):\n```http\n/{fileId}/patch/?id={key}\u0026data={value}\n```\n\nUpdates the value associated with the specified key in the JSON file.\n\n### 5. Delete data:\n```http\nGET /{fileId}/delete/?id={key}\n```\n\nDeletes the key-value pair with the specified key from the JSON file.\n\n## Configuration\n\n- `PORT`: The port on which the server listens (default is 9052).\n\n- `DIR` : The directory where JSON files are stored (default is 'db').\n\nxdb v1.0.0","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheatom06%2Fxdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheatom06%2Fxdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheatom06%2Fxdb/lists"}