{"id":16531378,"url":"https://github.com/marcbachmann/colt","last_synced_at":"2025-10-13T09:36:41.747Z","repository":{"id":1599585,"uuid":"43050975","full_name":"marcbachmann/colt","owner":"marcbachmann","description":"An extendable sequencing library with a chainable api","archived":false,"fork":false,"pushed_at":"2025-06-22T00:52:00.000Z","size":214,"stargazers_count":6,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-08T08:56:07.430Z","etag":null,"topics":[],"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/marcbachmann.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":"2015-09-24T07:13:08.000Z","updated_at":"2025-06-22T00:51:32.000Z","dependencies_parsed_at":"2023-07-05T15:45:54.508Z","dependency_job_id":"93302262-d2a1-4bba-9e75-0e172b83c714","html_url":"https://github.com/marcbachmann/colt","commit_stats":{"total_commits":50,"total_committers":6,"mean_commits":8.333333333333334,"dds":"0.30000000000000004","last_synced_commit":"f6127a625ab7e20e0317415b782107f923a15d8b"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/marcbachmann/colt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcbachmann%2Fcolt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcbachmann%2Fcolt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcbachmann%2Fcolt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcbachmann%2Fcolt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcbachmann","download_url":"https://codeload.github.com/marcbachmann/colt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcbachmann%2Fcolt/sbom","scorecard":{"id":617302,"data":{"date":"2025-08-11","repo":{"name":"github.com/marcbachmann/colt","commit":"fab8d4e8d996f9a822911ef248275f135e2816d6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Maintained","score":0,"reason":"1 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":"Code-Review","score":0,"reason":"Found 0/29 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":"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":"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":"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":"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":"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":"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":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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 29 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"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T04:19:09.249Z","repository_id":1599585,"created_at":"2025-08-21T04:19:09.249Z","updated_at":"2025-08-21T04:19:09.249Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014547,"owners_count":26085536,"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-13T02:00:06.723Z","response_time":61,"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":[],"created_at":"2024-10-11T18:08:41.233Z","updated_at":"2025-10-13T09:36:41.731Z","avatar_url":"https://github.com/marcbachmann.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Colt\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/marcbachmann/colt.svg)](https://greenkeeper.io/)\n\n### A sequencing library with a chainable api\n\n#### Example usage\n```javascript\ncolt()\n.createUser('marc', {email: 'marc@livingdocs.io', name: 'Marc Bachmann'})\n.createDocumentForUser('document', 'marc', {title: 'Foobar'})\n.fire(function done (err, resInCallback) {\n    // resInCallback equals resAsReturn\n    // resAsReturn.user equals {id: 1, name: 'Marc Bachmann', ema...}\n})\n```\n\n\n### API\n\nvar colt = require('colt')\n\n#### colt\nIs a colt api instance\n\n#### colt.forge(), colt.create(), colt.new()\nCreates a new colt api instance\n\n#### colt1.mixin(colt2)\nExtends colt1 with all the methods from colt2\n\n#### colt.clone()\nReturns a new colt api instance with all the methods from colt\n\n#### colt.register(yourMethodName, function (content[, callback]))\nIs used to register a method, content contains a name and a value object.\n\n#### colt()\nReturns an object which contains all colt methods you registered\n\n#### colt()[yourMethodName](mapName, value)\n`yourMethodName` is the name of a method you registered using `colt.register`\n\n#### colt().end, colt().fire, colt().exec\nAre methods which accept a node type callback `callback(err, res)`\n`res` contains all values which get populated during the execution\n\n\n### How to register methods\n```javascript\n// Register methods\nvar colt = require('colt').forge()\n\ncolt.register('set', function (content) {\n  return content.value\n})\n\ncolt.register('createUser', function (content, callback) {\n  request.post('/users', function (err, user) { callback(err, user) })\n})\n\ncolt.register({name: 'createDocumentForUser', evaluate: false}, function (content, callback) {\n  var data = _.extend(content.args[1], {user_id: this[content.args[0]].id })\n  request.post('/documents', data, function (err, document) {\n    callback(err, document)\n  })\n})\n```\n\n\n### More examples\n```javascript\n// The main module returns a colt api instance\n// If you register methods on this instance, they will be global\n// and will be returned if you require colt.\nvar colt = require('colt')\ncolt.load('methodName', function (content[, callback]){\n    // content = {name: 'valueKey', value: value}\n})\n\n// create a new instance\nvar chain = colt.forge()\n\n// Or clone an instance\nchain = colt.clone()\n\n// You can use .mixin to inherit from specific colt instances\nchain.mixin(colt)\n\n\nchain.load('set', function (content) { callback(null, content.value) })\n\n// Execute a registered method\nvar res = chain().set('user', {id: 1}).exec(callback)\nfunction callback (err) {\n    if (err) throw err\n    // res.user is the result of the method defined in chain.load('set', ...\n}\n\n// exit\nchain.exec(callback)\nchain.fire(callback)\nchain.end(callback)\n```\n\n\n### How we use it (sorry for the coffee-script)\n```coffee\ndescribe 'User api:', -\u003e\n\n  // Colt version\n  before (done) -\u003e\n    @res = colt()\n    .createUser('normalUser')\n    .createUser('adminUser', {admin: true})\n    .createDocumentForUser('document', 'normalUser', {title: 'Foobar'})\n    .end(done)\n\n\n  // What this would look like with async.js\n  // This structures get really complex if you want\n  // to create relations and depend on previous results\n  before (done) -\u003e\n    async.series\n      normalUser: (done) =\u003e\n        userSupport.createUser (err, user) =\u003e\n          @_userId = user.id\n          done(err, user)\n\n      document: (done) -\u003e\n        userSupport.createDocument({\n          title: 'Foobar',\n          user_id: @_userId\n        }, done)\n\n      adminUser: (done) -\u003e userSupport.createUser({admin: true}, done)\n    , (err, res) =\u003e\n      @res = res\n      done(err)\n\n\n  it 'requires admin access to access users endpoint', (done) -\u003e\n    request.get('/users')\n    .withUser(@res.normalUser)\n    .expect(401)\n    .end(done)\n\n  it 'allows admins to access the page', (done) -\u003e\n    request.get('/users')\n    .withUser(@res.adminUser)\n    .expect(200)\n    .end(done)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcbachmann%2Fcolt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcbachmann%2Fcolt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcbachmann%2Fcolt/lists"}