{"id":13686698,"url":"https://github.com/fxjs-modules/netflow","last_synced_at":"2026-06-12T08:32:30.464Z","repository":{"id":80521011,"uuid":"159324806","full_name":"fxjs-modules/netflow","owner":"fxjs-modules","description":"Netflow packets analyzer for Fibjs","archived":false,"fork":false,"pushed_at":"2018-12-18T08:03:58.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-05-22T15:35:54.144Z","etag":null,"topics":["fibjs","netflow","netflow-v5"],"latest_commit_sha":null,"homepage":"https://github.com/fxjs-modules/fib-netflowv9","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/fxjs-modules.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}},"created_at":"2018-11-27T11:28:22.000Z","updated_at":"2018-12-18T08:04:00.000Z","dependencies_parsed_at":"2023-06-10T16:15:32.023Z","dependency_job_id":null,"html_url":"https://github.com/fxjs-modules/netflow","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"d89cb5effabf654c79124a8114a8c1baf429a037"},"previous_names":["fxjs-modules/fib-netflowv9"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fxjs-modules/netflow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxjs-modules%2Fnetflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxjs-modules%2Fnetflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxjs-modules%2Fnetflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxjs-modules%2Fnetflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fxjs-modules","download_url":"https://codeload.github.com/fxjs-modules/netflow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxjs-modules%2Fnetflow/sbom","scorecard":{"id":415404,"data":{"date":"2025-08-11","repo":{"name":"github.com/fxjs-modules/netflow","commit":"d89cb5effabf654c79124a8114a8c1baf429a037"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/6 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":"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":"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":"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":"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":"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":"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"}}]},"last_synced_at":"2025-08-18T23:41:52.343Z","repository_id":80521011,"created_at":"2025-08-18T23:41:52.343Z","updated_at":"2025-08-18T23:41:52.343Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34236550,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"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":["fibjs","netflow","netflow-v5"],"created_at":"2024-08-02T15:00:38.086Z","updated_at":"2026-06-12T08:32:30.447Z","avatar_url":"https://github.com/fxjs-modules.png","language":"JavaScript","funding_links":[],"categories":["Packages"],"sub_categories":["Network"],"readme":"netflow\n==============\n\nNetFlow Version 5 library for Fibjs\n\n## install\n\n    npm install @fxjs/netflow\n\n## Usage\n\nThe usage of the netflowv9 collector library is very very simple. You just have to do something like this:\n\n\n    let Collector = require('@fxjs/netflow');\n\n    let co = new Collector(3000, function(flow) {\n        console.log(flow);\n    })\n    co.run((err) =\u003e { console.error(err); })\n\nor you can use it as event provider:\n\n    let co = new Collector({port: 3000}).on('data',function(flow) {\n        console.log(flow);\n    });\n    co.run()\n\n\nThe flow will be presented in a format very similar to this:\n\n\n    { header:\n      { version: 9,\n         count: 25,\n         uptime: 2452864139,\n         seconds: 1401951592,\n         sequence: 254138992,\n         sourceId: 2081 },\n      rinfo:\n      { address: '15.21.21.13',\n         family: 'IPv4',\n         port: 29471,\n         size: 1452 },\n      packet: Buffer \u003c00 00 00 00 ....\u003e\n      flow: [\n      { in_pkts: 3,\n         in_bytes: 144,\n         ipv4_src_addr: '15.23.23.37',\n         ipv4_dst_addr: '16.16.19.165',\n         input_snmp: 27,\n         output_snmp: 16,\n         last_switched: 2452753808,\n         first_switched: 2452744429,\n         l4_src_port: 61538,\n         l4_dst_port: 62348,\n         out_as: 0,\n         in_as: 0,\n         bgp_ipv4_next_hop: '16.16.1.1',\n         src_mask: 32,\n         dst_mask: 24,\n         protocol: 17,\n         tcp_flags: 0,\n         src_tos: 0,\n         direction: 1,\n         fw_status: 64,\n         flow_sampler_id: 2 } } ]\n\n\nThere will be one callback for each packet, which may contain more than one flow.\n\nAdditionally, you can use the collector to listen for template updates:\n\n    var collector = new Collector({port: 3000});\n    collector.on('data', function(data) {\n        console.log(data);\n    });\n    collector.run()\n\nCurrently we support netflow version 5.\n\n## Options\n\nYou can initialize the collector with either callback function only or a group of options within an object.\n\nThe following options are available during initialization:\n\n**port** - defines the port where our collector will listen to.\n\n    new Collector({ port: 5000, cb: function (flow) { console.log(flow) } })\n\nOr\n\n    new Collector(5000, function (flow) { console.log(flow) })\n\n**host** - binds to a particular host on the local interfaces.\n\n    new Collector({ port: 5000, host: '0.0.0.0', cb: function (flow) { console.log(flow) } })\n\n**type** - defines to what socket type we will bind to. Default is udp4. You can change it to udp6 is you like.\n\n    new Collector(5000, { socketType: 'udp6', cb: function (flow) { console.log(flow) } })\n\n**recvBufferSize** - defines the udp socket recvBuffer default 256kbytes.\n\n## Multiple collectors\n\nThe module allows you to define multiple collectors at the same time.\nFor example:\n\n    var Collector = require('@fxjs/netflow');\n\n    new Collector(5555, function(flow) { // Collector 1 listening on port 5555\n        console.log(flow);\n    }).run();\n\n    new Collector(6666, function(flow) { // Collector 2 listening on port 6666\n        console.log(flow);\n    }).run();","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffxjs-modules%2Fnetflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffxjs-modules%2Fnetflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffxjs-modules%2Fnetflow/lists"}