{"id":21663996,"url":"https://github.com/datreeio/koa-requestid","last_synced_at":"2026-05-09T09:13:46.700Z","repository":{"id":57106256,"uuid":"119689384","full_name":"datreeio/koa-requestid","owner":"datreeio","description":"A koa middleware to generate and forward request ids between services","archived":false,"fork":false,"pushed_at":"2019-05-15T14:32:53.000Z","size":51,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-04T05:55:52.758Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datreeio.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":"CODEOWNERS","security":null,"support":null}},"created_at":"2018-01-31T13:16:42.000Z","updated_at":"2019-05-15T14:32:54.000Z","dependencies_parsed_at":"2022-08-21T02:31:09.109Z","dependency_job_id":null,"html_url":"https://github.com/datreeio/koa-requestid","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/datreeio/koa-requestid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datreeio%2Fkoa-requestid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datreeio%2Fkoa-requestid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datreeio%2Fkoa-requestid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datreeio%2Fkoa-requestid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datreeio","download_url":"https://codeload.github.com/datreeio/koa-requestid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datreeio%2Fkoa-requestid/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260269430,"owners_count":22983645,"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","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-11-25T10:30:14.280Z","updated_at":"2026-05-09T09:13:41.660Z","avatar_url":"https://github.com/datreeio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# koa-requestid [![Build Status](https://travis-ci.com/datreeio/koa-requestid.svg?branch=master)](https://travis-ci.com/datreeio/koa-requestid)\n\nA koa middleware to generate and forward request ids between services\n\n### Install\n\n`npm install @datreeio/koa-requestid`\n\n### Test\n\n`npm test`\n\n## usage\n\n### basic usage\n\n```javascript\nconst requestId = require('@datreeio/koa-requestid')\nconst koa = require('koa')\nconst app = new koa()\napp.use(\n  requestId({\n    headerKey: 'testKey'\n  })\n)\n```\n\n### custom id generator usage\n\n```javascript\nconst requestId = require('@datreeio/koa-requestid')\nconst koa = require('koa')\nconst app = new koa()\n\napp.use(\n  requestId({\n    headerKey: 'testKey',\n    idGenerator: someIdGenerator\n  })\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatreeio%2Fkoa-requestid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatreeio%2Fkoa-requestid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatreeio%2Fkoa-requestid/lists"}