{"id":19119973,"url":"https://github.com/zhouchaowen/prism","last_synced_at":"2025-05-05T16:07:50.164Z","repository":{"id":192251308,"uuid":"686005007","full_name":"Zhouchaowen/prism","owner":"Zhouchaowen","description":"eBPF-based API Interface Builder","archived":false,"fork":false,"pushed_at":"2023-10-09T13:48:24.000Z","size":7771,"stargazers_count":34,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T22:11:38.350Z","etag":null,"topics":["api","ebpf","http","tc"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Zhouchaowen.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":"2023-09-01T14:06:00.000Z","updated_at":"2025-01-18T16:52:01.000Z","dependencies_parsed_at":"2024-11-09T05:22:49.628Z","dependency_job_id":null,"html_url":"https://github.com/Zhouchaowen/prism","commit_stats":null,"previous_names":["zhouchaowen/prism"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zhouchaowen%2Fprism","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zhouchaowen%2Fprism/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zhouchaowen%2Fprism/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zhouchaowen%2Fprism/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zhouchaowen","download_url":"https://codeload.github.com/Zhouchaowen/prism/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252531830,"owners_count":21763290,"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":["api","ebpf","http","tc"],"created_at":"2024-11-09T05:12:04.178Z","updated_at":"2025-05-05T16:07:50.122Z","avatar_url":"https://github.com/Zhouchaowen.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prism\n\nPrism is an eBPF-Based interface generator that captures the HTTP traffic of Ingress and Egress through TC and passes it to the user mode through ringbuf to assemble complete data.\n\n# Run\n\n- Kernel \u003e= 5.4.0\n\n## operating run\n\n\u003e device_name, replace with the name of the network device the program is attached to (e.g. eth0)\n\n```bash\nprism -n \u003cdevice_name\u003e\n```\n\n## docker run\n\n```bash\ndocker run --net host --privileged --name prism -itd zmosquito/prism:v0.0.2 ./prism -n \u003cdevice_name\u003e\n```\n\n# How to compile\n\n## require\n\n- Kernel \u003e= 5.4.0 \n- LLvm \u003e= 14\n- Clang \u003e= 14\n- Golang \u003e= 1.18\n- Cmake\n\n```bash\n# Ubuntu 22.04\napt-get install linux-kernel-headers linux-headers-$(uname -r)\napt-get update \u0026\u0026 apt-get install -y make clang-14 llvm-14 libc6-dev libc6-dev-i386 libz-dev libelf-dev libbpf-dev iproute2 \u0026\u0026 apt-get clean\nln -s $(which clang-14) /usr/bin/clang \u0026\u0026 ln -s $(which llc-14) /usr/bin/llc\n```\n\n## compile\n\n```bash\nmake build\n```\n\n## docker\n\ncompile by docker\n\n```bash\ndocker run --rm  -v /root/prism:/root/prism ghcr.io/cilium/ebpf-builder:1694533004 bash -c \"cd /root/prism \u0026\u0026 make build\"\n```\n\n## Demo\n\nhttps://www.bilibili.com/video/BV1tK4y1c7rh/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhouchaowen%2Fprism","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhouchaowen%2Fprism","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhouchaowen%2Fprism/lists"}