{"id":19952648,"url":"https://github.com/qxip/ndpi-node","last_synced_at":"2026-04-14T02:31:17.421Z","repository":{"id":36296338,"uuid":"40600884","full_name":"QXIP/nDPI-node","owner":"QXIP","description":"nDPI Node.js bindings for Deep Packet Inspection","archived":false,"fork":false,"pushed_at":"2015-08-30T11:01:13.000Z","size":764,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T15:16:43.136Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://ntop.org","language":"C","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/QXIP.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}},"created_at":"2015-08-12T13:03:23.000Z","updated_at":"2022-02-18T18:40:00.000Z","dependencies_parsed_at":"2022-09-04T19:51:19.522Z","dependency_job_id":null,"html_url":"https://github.com/QXIP/nDPI-node","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/QXIP/nDPI-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QXIP%2FnDPI-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QXIP%2FnDPI-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QXIP%2FnDPI-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QXIP%2FnDPI-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QXIP","download_url":"https://codeload.github.com/QXIP/nDPI-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QXIP%2FnDPI-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31779942,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: 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":"2024-11-13T01:13:58.510Z","updated_at":"2026-04-14T02:31:17.400Z","avatar_url":"https://github.com/QXIP.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"http://www.ntop.org/wp-content/uploads/2015/05/ntop.png\" alt=\"NTOP\"\u003e\n\u003c/p\u003e\n\n\n# nDPI-node\n\n\nProof-of-Concept lua binding based on ndpireader and nDPI from [NTOP](http://ntop.org)\n\n## Requirements\n```\nnpm install ffi\nnpm install ref\nnpm install ref-struct\nnpm install pcap-parser\n```\n\n## Test\n```\n./run_pcap\n```\n\n## Output\n\n```\nnDPI Memory statistics:\n\tnDPI Memory (once):      91.02 KB     \n\tFlow Memory (per flow):  1.92 KB      \n\tActual Memory:           3.29 MB      \n\tPeak Memory:             3.29 MB      \n\nTraffic statistics:\n\tEthernet bytes:        210941        (includes ethernet CRC/IFC/trailer)\n\tDiscarded bytes:       22728        \n\tIP packets:            465           of 871 packets total\n\tIP bytes:              199781        (avg pkt size 229 bytes)\n\tUnique flows:          86           \n\tTCP Packets:           406          \n\tUDP Packets:           58           \n\tVLAN Packets:          0            \n\tMPLS Packets:          0            \n\tPPPoE Packets:         0            \n\tFragmented Packets:    0            \n\tMax Packet size:       1480         \n\tPacket Len \u003c 64:       259          \n\tPacket Len 64-128:     34           \n\tPacket Len 128-256:    22           \n\tPacket Len 256-1024:   55           \n\tPacket Len 1024-1500:  95           \n\tPacket Len \u003e 1500:     0            \n\tnDPI throughput:       4.83 K pps / 16.71 Mb/sec\n\tTraffic throughput:    8.67 pps / 30.71 Kb/sec\n\tTraffic duration:      53.663 sec\n\tGuessed flow protos:   22           \n\n\nDetected protocols:\n\tUnknown              packets: 39            bytes: 2578          flows: 25           \n\tDNS                  packets: 17            bytes: 2365          flows: 10           \n\tHTTP                 packets: 138           bytes: 51961         flows: 12           \n\tNTP                  packets: 10            bytes: 900           flows: 5            \n\tDHCP                 packets: 3             bytes: 1038          flows: 3            \n\tIMAPS                packets: 33            bytes: 10093         flows: 2            \n\tICMP                 packets: 1             bytes: 300           flows: 1            \n\tSSL                  packets: 132           bytes: 51325         flows: 14           \n\tTwitter              packets: 2             bytes: 324           flows: 1            \n\tDropBox              packets: 10            bytes: 5103          flows: 3            \n\tYouTube              packets: 2             bytes: 984           flows: 2            \n\tGoogle               packets: 74            bytes: 72304         flows: 7            \n\tSpotify              packets: 4             bytes: 506           flows: 1            \n\n\nProtocol statistics:\n\tSafe                         61418 bytes\n\tAcceptable                  134295 bytes\n\tFun                           1490 bytes\n\tUnrated                       2578 bytes\n\n```\n\n## TO-DO\n\n- Implement Callback function\n- Implement Live Capture (node-pcap)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqxip%2Fndpi-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqxip%2Fndpi-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqxip%2Fndpi-node/lists"}