{"id":46905603,"url":"https://github.com/connected-web/elda-ai-memory","last_synced_at":"2026-03-11T01:10:06.237Z","repository":{"id":57221421,"uuid":"43842788","full_name":"connected-web/elda-ai-memory","owner":"connected-web","description":"Methods for external memory storage","archived":false,"fork":false,"pushed_at":"2020-07-19T09:08:15.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-30T18:58:02.324Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/connected-web.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":"2015-10-07T20:25:21.000Z","updated_at":"2020-07-19T09:08:17.000Z","dependencies_parsed_at":"2022-08-29T02:12:51.301Z","dependency_job_id":null,"html_url":"https://github.com/connected-web/elda-ai-memory","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/connected-web/elda-ai-memory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connected-web%2Felda-ai-memory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connected-web%2Felda-ai-memory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connected-web%2Felda-ai-memory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connected-web%2Felda-ai-memory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/connected-web","download_url":"https://codeload.github.com/connected-web/elda-ai-memory/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connected-web%2Felda-ai-memory/sbom","scorecard":{"id":302618,"data":{"date":"2025-08-11","repo":{"name":"github.com/connected-web/elda-ai-memory","commit":"5729e9f6deeba3752fea6d7d1ebc59175e9226a6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/23 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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-check.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/connected-web/elda-ai-memory/pr-check.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-check.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/connected-web/elda-ai-memory/pr-check.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/pr-check.yml:22","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/pr-check.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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: ISC 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 4 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-17T21:06:51.186Z","repository_id":57221421,"created_at":"2025-08-17T21:06:51.186Z","updated_at":"2025-08-17T21:06:51.186Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30365047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"ssl_error","status_checked_at":"2026-03-10T21:40:59.357Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2026-03-11T01:10:05.589Z","updated_at":"2026-03-11T01:10:06.202Z","avatar_url":"https://github.com/connected-web.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elda-ai Memory\nMethods for external memory storage.\n\nIn the structure of `elda-ai` *memory* is considered as long term storage of information.\n\n## Development\nRunning tests:\n\n```\nnpm install\nnpm test\n```\n\n## API\n### Configure\nWhen you require `elda-ai-memory`, it returns a function that can be used to configure a memory interface.\n\nThe stub configuration is:\n\n```js\nvar config = {\n  type: 'none';\n};\n```\n\nWhere as a configuration using git is:\n```js\nvar config =  {\n  type: 'git',\n  remote: 'git@github.com:elda-ai/memory-training.git',\n  local: process.cwd() + '/memory',\n  user: {\n    name: 'elda-ai',\n    email: 'elda-ai@mkv25.net'\n  }\n};\n```\n\nPass the config into the memory function to return a promise. The promise resolves to a usable instance. During this step, files are downloaded from the remote and stored locally; this may take several seconds depending on the size of the remote.\n\n```js\nvar memory = require('elda-ai-memory');\nmemory(config).then(function(instance) {\n  /* ... do stuff with instance ... */\n});\n```\n\n* If there is an error with the supplied config, it should fail fast with a rejected promise.\n* External memory is treated as a local copy which upon which you can `read` and `write`. Later `store` can be used to push changes, and `destroy` used to clean up the local copy.\n\n### Read\nExternal memory is expected to be made up of files. These files can be read from the local copy using a relative path to the root of the external files.\n\n```js\nvar memory = require('elda-ai-memory');\nmemory(config).then(function(instance) {\n  return instance.read('file/name.json').then(function(contents) {\n    console.log('Read from file:', contents);\n  });\n});\n```\n\n### Write\nFiles can be created and updated by using write. Writing will only update the local copy until `store` is called.\n\n```js\nvar memory = require('elda-ai-memory');\nmemory(config).then(function(instance) {\n  // Write a file\n  var data = JSON.stringify({data: \"some data\"});\n  return instance.write('file/new.json', data).then(function(name) {\n    console.log('Wrote to file:', name);\n  });\n});\n```\n\n### Delete\nFiles can be deleted from the local memory. Deleted files will only affect the remote when `store` is called.\n\n```js\nvar memory = require('elda-ai-memory');\nmemory(config).then(function(instance) {\n  // Delete a file\n  return instance.delete('file/to/delete.json').then(function(name) {\n    console.log('Deleted file:', name);\n  });\n});\n```\n\n### Store\nStore pushes any local changes to the remote location with a message.\n\n```js\nvar memory = require('elda-ai-memory');\nmemory(config).then(function(instance) {\n  // Store local changes back to server\n  var message = 'New files added';\n  return instance.store(message).then(function() {\n    console.log('Files stored in external memory:', message);\n  });\n});\n```\n\n### Destroy\nDestroy removes all local files stored on the machine relating to the remote.\n\n```js\nvar memory = require('elda-ai-memory');\nmemory(config).then(function(instance) {\n  // Destroy local copy of files\n  return instance.destroy().then(function() {\n    console.log('Local files removed');\n  });\n});\n```\n\n## Git configuration\nThis configuration assumes you have the command line version of git installed on the machine, and that you have correct access rights to the remote repository.\n\nWorked example:\n\n```js\nvar memory = require('elda-ai-memory');\nvar config =  {\n  type: 'git',\n  remote: 'git@github.com:elda-ai/memory-training.git',\n  local: process.cwd() + '/memory',\n  user: {\n    name: 'elda-ai',\n    email: 'elda-ai@mkv25.net'\n  }\n};\n\n// Retrieve files from external memory\nmemory(config).then(function(instance) {\n\n  function readAFile() {\n    // Read a file\n    return instance.read('file/name.json').then(function(contents) {\n      console.log('Read from file:', contents);\n    });\n  }\n\n  function writeAFile() {\n    // Write a file\n    var data = JSON.stringify({data: \"some data\"});\n    return instance.write('file/new.json', data).then(function(name) {\n      console.log('Wrote to file:', name);\n    });\n  }\n\n  function deleteAFile() {\n    // Delete a file\n    return instance.delete('file/to/delete.json').then(function(name) {\n      console.log('Deleted file:', name);\n    });\n  }\n\n  function storeChanges() {\n    // Store local changes back to server\n    var message = 'New files added';\n    return instance.store(message).then(function() {\n      console.log('Files stored in external memory:', message);\n    });\n  }\n\n  function destroyLocalCopy() {\n    // Destroy local copy of files\n    return instance.destroy().then(function() {\n      console.log('Local files removed');\n    });\n  }\n\n  return readExample()\n    .then(readAFile)\n    .then(writeAFile)\n    .then(deleteAFile)\n    .then(storeChanges)\n    .then(destroyLocalCopy);\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnected-web%2Felda-ai-memory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconnected-web%2Felda-ai-memory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnected-web%2Felda-ai-memory/lists"}