{"id":19772380,"url":"https://github.com/yurks/devel-info","last_synced_at":"2026-05-15T11:35:48.860Z","repository":{"id":72525179,"uuid":"85251868","full_name":"yurks/devel-info","owner":"yurks","description":"Collect dev-related data in node.js apps (environment, cluster, process, system, request...)","archived":false,"fork":false,"pushed_at":"2017-03-21T15:05:12.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T04:36:00.771Z","etag":null,"topics":["development","information","node","nodejs"],"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/yurks.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":"2017-03-16T23:51:09.000Z","updated_at":"2017-03-21T23:10:18.000Z","dependencies_parsed_at":"2023-03-29T04:47:46.407Z","dependency_job_id":null,"html_url":"https://github.com/yurks/devel-info","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"2b3ddcac3596f6380bd396c1038d2c68b4022d4b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yurks/devel-info","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yurks%2Fdevel-info","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yurks%2Fdevel-info/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yurks%2Fdevel-info/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yurks%2Fdevel-info/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yurks","download_url":"https://codeload.github.com/yurks/devel-info/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yurks%2Fdevel-info/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33065674,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"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":["development","information","node","nodejs"],"created_at":"2024-11-12T05:06:24.381Z","updated_at":"2026-05-15T11:35:48.844Z","avatar_url":"https://github.com/yurks.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# devel-info\n\nCollect dev-related data in node.js apps (environment, cluster, process, system, request...) and show it in pretty format.\nMay be useful for overall application state overview in production environments.\n\n![devel-info looks like a charm)](devel-info.png)\n\n## Installation\n\nUse `npm` to install it to your app:\n\n    npm install --save devel-info\n\n\n## Usage\n\n### As node server or connect/express middleware\n\nRun following script:\n\n```js\nvar develInfo = require('devel-info');\n\n// for node server\nrequire('http')\n    .createServer(develInfo())\n    .listen(8011);\n\n// or for connect middleware\nrequire('connect')()\n    .use(develInfo())\n    .listen(8011);\n```\n\nand navigate to `http://127.0.0.1:8011/devel-info` after application starts.\n\nAdditional initialization should be applied on cluster setup to collect information about workers: \n\n```js\nvar develInfo = require('devel-info');\nvar cluster = require('cluster');\ndevelInfo.initCluster(cluster);\n\nif (cluster.isMaster) {\n   // master init\n} else {\n   // workers init\n}\n```\n\nSee [example](example/index.js) for working solution. \n\n### As standalone function  \n\n```js\nvar develInfo = require('devel-info');\n\ndevelInfo(function(err, data) {\n    if (!err) {\n        console.log(data);\n    }\n});\n```\n\n## Options\n\n    develInfo([config], [callback], [clientRequest|])\n\n1. `config` could be an object with following options:\n    * `url` — url for devel-info page (default: `'/devel-info'`).\n    * `type` — output format (default: `'html'` for using as middleware or `'json'` for using with callback)\n    * `sections` — info sections collected from node app environment (default: `['package', 'proc', (config.custom), 'request', 'request.parsed', 'request.headers', 'request.headers.cookie', 'os', 'process', 'process.env', 'os.networkInterfaces']`)\n    * `custom` — custom object with any data to show in devel-info page (default: `undefined`) \n    \n    `config` could be `String` or `Array` and will be treated as `sections` option in this case. Also, `config` argument could be skipped — the defaults will be used.\n \n2. `callback` is a function which called on info gathering finish. Use it if you want to control all this stuff manually ;) \n\n3. `clientRequest` is a [node object](https://nodejs.org/api/http.html#http_class_http_clientrequest) which represents an in-progress request.\nUsed for collecting request-related information and make sense only when using `callback`. \n\n## Demo\n\nRun directly from your application root for quick demonstration:\n\n    node node_module/devel-info/example\n\n## License\n\n[MIT license](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyurks%2Fdevel-info","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyurks%2Fdevel-info","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyurks%2Fdevel-info/lists"}