{"id":19945680,"url":"https://github.com/adriano-di-giovanni/reaves","last_synced_at":"2026-04-12T23:48:10.281Z","repository":{"id":57349033,"uuid":"156900878","full_name":"adriano-di-giovanni/reaves","owner":"adriano-di-giovanni","description":"A Javascript implementation of the Entity-Attribute-Value model and the event sourcing pattern for Node.js","archived":false,"fork":false,"pushed_at":"2018-11-16T11:01:54.000Z","size":136,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T14:53:07.161Z","etag":null,"topics":["entity-attribute-value","event-sourcing","event-store","redis"],"latest_commit_sha":null,"homepage":null,"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/adriano-di-giovanni.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-09T18:15:48.000Z","updated_at":"2023-09-26T18:14:43.000Z","dependencies_parsed_at":"2022-08-29T14:41:18.601Z","dependency_job_id":null,"html_url":"https://github.com/adriano-di-giovanni/reaves","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/adriano-di-giovanni/reaves","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriano-di-giovanni%2Freaves","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriano-di-giovanni%2Freaves/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriano-di-giovanni%2Freaves/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriano-di-giovanni%2Freaves/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adriano-di-giovanni","download_url":"https://codeload.github.com/adriano-di-giovanni/reaves/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriano-di-giovanni%2Freaves/sbom","scorecard":{"id":167952,"data":{"date":"2025-08-11","repo":{"name":"github.com/adriano-di-giovanni/reaves","commit":"3423bbabfed9a1c4ae2be8431e8856f5a05cb568"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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/20 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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":"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":"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":"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":"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"}}]},"last_synced_at":"2025-08-16T15:27:31.662Z","repository_id":57349033,"created_at":"2025-08-16T15:27:31.663Z","updated_at":"2025-08-16T15:27:31.663Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278457467,"owners_count":25989956,"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-10-05T02:00:06.059Z","response_time":54,"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":["entity-attribute-value","event-sourcing","event-store","redis"],"created_at":"2024-11-13T00:26:29.220Z","updated_at":"2025-10-05T12:58:29.862Z","avatar_url":"https://github.com/adriano-di-giovanni.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reaves\n\nReaves is a Javascript implementation of the\n[Entity-Attribute-Value model](https://en.wikipedia.org/wiki/Entity%E2%80%93attribute%E2%80%93value_model) and\nthe [event sourcing pattern](https://martinfowler.com/eaaDev/EventSourcing.html) for Node.js.\n\nSimply put, it lets you save and retrieve present and past string values of attributes that\nbelong to entities identified by string IDs. Reaves is backed by [Redis](https://redis.io).\n\nPlease, refer to the [Installation](#installation), [Usage](#usage), [API](#api),\n[Requirements](#requirements) and [License](#license) sections for more information.\n\n## Installation \u003ca name=\"installation\"\u003e\u003c/a\u003e\n\n```bash\nnpm install reaves redis --save\n```\n\n## Usage \u003ca name=\"usage\"\u003e\u003c/a\u003e\n\n```javascript\nconst { createEntityAttribute, CASE_SENSITIVE, UNIQUE } = require('reaves')\nconst { generate } = require('randomstring')\nconst redis = require('redis')\nconst uuidv4 = require('uuid/v4')\n\nconst client = redis.createClient()\nconst entityName = 'player'\nconst entityName = 'nickname'\nconst flags = CASE_SENSITIVE | UNIQUE\n\ncreateEntityAttribute(client, entityName, attributeName, flags, (err, entityAttribute) =\u003e {\n    if (err) {\n        throw err\n    }\n\n    const entityId = uuidv4()\n    const newValue = generate()\n    const createdAt = Date.now()\n    entityAttribute.insert(entityId, newValue, createdAt, (err, event) =\u003e {\n        if (err) {\n            throw err\n        }\n\n        console.log(event)\n\n        /*\n        Event {\n              entityId: '5eb92392-1d77-4183-858c-7d40a481b914',\n              value: 'tGxRYYSDxWnbsXSTHcfqXG129IrIjjfd',\n              createdAt: 1541774323588 }    \n        */\n    })\n})``\n```\n\n## API\n\nPlease, refer to the API documentation [here](https://adriano-di-giovanni.github.io/reaves/).\n\n## Requirements \u003ca name=\"requirements\"\u003e\u003c/a\u003e\n\n* Node.js 6+\n* Redis 2.8.9+\n\n## License \u003ca name=\"license\"\u003e\u003c/a\u003e\n\nThis project is [MIT-licensed](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadriano-di-giovanni%2Freaves","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadriano-di-giovanni%2Freaves","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadriano-di-giovanni%2Freaves/lists"}