{"id":16370224,"url":"https://github.com/delvedor/demodb","last_synced_at":"2026-04-28T17:01:30.727Z","repository":{"id":66171840,"uuid":"140923488","full_name":"delvedor/demodb","owner":"delvedor","description":"An HTTP based database for demo purposes, workshop and so on.","archived":false,"fork":false,"pushed_at":"2018-07-15T10:46:37.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-28T02:28:23.683Z","etag":null,"topics":["database","utility","workshop"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/delvedor.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}},"created_at":"2018-07-14T06:50:45.000Z","updated_at":"2021-07-24T02:56:04.000Z","dependencies_parsed_at":"2023-04-07T01:17:00.760Z","dependency_job_id":null,"html_url":"https://github.com/delvedor/demodb","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"c71ce8f2af906684a0ce3f4048f0c26a11a25262"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/delvedor/demodb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delvedor%2Fdemodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delvedor%2Fdemodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delvedor%2Fdemodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delvedor%2Fdemodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/delvedor","download_url":"https://codeload.github.com/delvedor/demodb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delvedor%2Fdemodb/sbom","scorecard":{"id":333413,"data":{"date":"2025-08-11","repo":{"name":"github.com/delvedor/demodb","commit":"c71ce8f2af906684a0ce3f4048f0c26a11a25262"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T04:07:26.656Z","repository_id":66171840,"created_at":"2025-08-18T04:07:26.656Z","updated_at":"2025-08-18T04:07:26.656Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32390067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"last_error":"SSL_read: 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":["database","utility","workshop"],"created_at":"2024-10-11T03:04:23.433Z","updated_at":"2026-04-28T17:01:30.688Z","avatar_url":"https://github.com/delvedor.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# demodb\n\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)  [![Build Status](https://travis-ci.org/delvedor/demodb.svg?branch=master)](https://travis-ci.org/delvedor/demodb)\n\nYou are about to give a workshop where you must show how to use a technology and you also need a database for demo purposes, everything is ready, your demo is working and the attendees just need to checkout the initial code.\u003cbr/\u003e\n*What could go wrong?*\n\n### Everything!\n\nEnter `demodb`.\u003cbr/\u003e\n`demodb` is a lightweight, native dependencies free, in memory database *(you can also save data to disk)*, built with [`fastify`](https://github.com/fastify/fastify) and [`lokijs`](https://github.com/techfort/LokiJS).\u003cbr/\u003e\nIt exposes a nice HTTP API that you can easily consume from the browser or the server, it does not require authentication and can be run everywhere.\n\n\n\u003ca name=\"install\"\u003e\u003c/a\u003e\n## Install\n```\nnpm i demodb -g\n```\n\n\u003ca name=\"usage\"\u003e\u003c/a\u003e\n## Usage\n```\ndemodb start test\n```\n\n### Client usage\n```\nnpm i demodb\n```\n```js\nconst Demodb = require('demodb')\nconst demodb = new Demodb('http://localhost:8081')\n\nconst col = demodb.collection('users')\nawait col.insert({ winter: 'is coming', tag: 'got' })\nconst result = await col.findOne({ tag: 'got' })\n```\n\n#### Need help?\n```\ndemodb help\n```\n\n## API\n\nThe entire API is expose via HTTP, the canonical url is: `/db/:collection/:command`. The collection part of the url is the collection name that you are using (like mongo!), the last part is the command you want to run.\u003cbr/\u003e\nThe currently supported [`lokijs`](https://github.com/techfort/LokiJS) APIs are:\n\n#### `find`\n```js\n{\n  method: 'POST',\n  url: '/db/:collection/find',\n  body: { your query }\n}\n```\n#### `findOne`\n```js\n{\n  method: 'POST',\n  url: '/db/:collection/findOne',\n  body: { your query }\n}\n```\n#### `insert`\n```js\n{\n  method: 'POST',\n  url: '/db/:collection/insert',\n  body: { your query }\n}\n```\n#### `update`\n```js\n{\n  method: 'POST',\n  url: '/db/:collection/update',\n  body: { your query }\n}\n```\n#### `remove`\n```js\n{\n  method: 'POST',\n  url: '/db/:collection/remove',\n  body: { your query }\n}\n```\n\n## Contributing\nIf you feel you can help in any way, be it with examples, extra testing, or new features please open a pull request or open an issue.\n\n\n## License\n**[MIT](https://github.com/delvedor/demodb/blob/master/LICENSE)**\n\nCopyright © 2018 Tomas Della Vedova\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelvedor%2Fdemodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdelvedor%2Fdemodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelvedor%2Fdemodb/lists"}