{"id":23296199,"url":"https://github.com/lylythechosenone/minimalist-db","last_synced_at":"2025-12-30T22:39:52.828Z","repository":{"id":106040597,"uuid":"425679898","full_name":"lylythechosenone/minimalist-db","owner":"lylythechosenone","description":"A minimal database server written with express","archived":true,"fork":false,"pushed_at":"2021-11-11T16:15:58.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T19:48:17.817Z","etag":null,"topics":["database","express","javascript","json"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/lylythechosenone.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":"2021-11-08T02:59:49.000Z","updated_at":"2024-10-07T13:48:01.000Z","dependencies_parsed_at":"2024-06-29T08:49:55.424Z","dependency_job_id":null,"html_url":"https://github.com/lylythechosenone/minimalist-db","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lylythechosenone/minimalist-db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lylythechosenone%2Fminimalist-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lylythechosenone%2Fminimalist-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lylythechosenone%2Fminimalist-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lylythechosenone%2Fminimalist-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lylythechosenone","download_url":"https://codeload.github.com/lylythechosenone/minimalist-db/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lylythechosenone%2Fminimalist-db/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271575595,"owners_count":24783567,"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-08-22T02:00:08.480Z","response_time":65,"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","express","javascript","json"],"created_at":"2024-12-20T07:11:08.008Z","updated_at":"2025-12-30T22:39:52.803Z","avatar_url":"https://github.com/lylythechosenone.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# minimalist-db\nA minimal database server written with express\n## Features\n### Super fast\nminimalist-db only does everything it absolutely needs to do. It provides an API to modify a database, and nothing more. This makes it blazing fast.\n### Easy to use\nTo set up minimalist-db, all you need to do is\n\n1. Clone the repository\n2. Put a password into `data.json`\n3. Run `./db-start [port]` (or just `./db-start` to use port 3000)\n\nTo store a value to a running database, all you need to do is\n\n1. POST `/login` with the password - a token will be returned if you use the correct password\n2. POST `/[tableName]` with any data you would like to set\n3. Check `data.json`. It should now have the data in it.\n### Nested objects\nBecause minimalist-db is built on JSON, you can store infinitely recursive objects in a database.\n## Using\n### IMPORTANT: Security Risks\nIf you do not use ssl, tokens will be passed between client and server in plain text. This will be mitigated in a later release, but for now, use SSL if possible.\n### API Pathways\nAll POST pathways return JSON.\nAll GET pathways return either JSON or HTML (specify with `accept` header).\nAll pathways except for `/login` and `/logout` require a token in the authorization header.\n\n`/login`: POST\n* Takes a password\n* Returns a usable token, if successful, or an error message\n\n`/logout`: POST\n* Takes a token\n* Removes the token from use, so it can be recycled\n\n`/[table]`: GET/POST\n* GET\n  * Returns the requested table, if the correct token was supplied\n  * Table needs to exist\n* POST\n  * Takes a JSON object to set the table to\n  * Sets the table to this JSON object\n  * Table does not need to exist\n\n`/[table]/[key]`: POST\n* Table needs to exist\n* Takes a JSON object to set the key to\n* Sets the specified key in the table to this JSON object\n\n`/`: GET\n* Returns an index of the entire database\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flylythechosenone%2Fminimalist-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flylythechosenone%2Fminimalist-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flylythechosenone%2Fminimalist-db/lists"}