{"id":14990707,"url":"https://github.com/anoushk1234/zig-ebpf","last_synced_at":"2025-04-12T02:42:52.212Z","repository":{"id":254082261,"uuid":"845388698","full_name":"anoushk1234/zig-ebpf","owner":"anoushk1234","description":"Zig virtual machine for eBPF programs.","archived":false,"fork":false,"pushed_at":"2024-09-04T15:26:09.000Z","size":5882,"stargazers_count":26,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-18T01:44:15.698Z","etag":null,"topics":["assembler","bpf","ebpf","interpreter","packet-filtering","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/anoushk1234.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2024-08-21T06:43:36.000Z","updated_at":"2024-11-27T12:13:03.000Z","dependencies_parsed_at":"2024-09-24T16:04:09.941Z","dependency_job_id":"36e8f32d-ebcb-4d4a-b09d-cab213099d7b","html_url":"https://github.com/anoushk1234/zig-ebpf","commit_stats":{"total_commits":39,"total_committers":4,"mean_commits":9.75,"dds":"0.23076923076923073","last_synced_commit":"d2944760adec9d06e69168299cf48cc4e784463d"},"previous_names":["anoushk1234/zig-ebpf"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoushk1234%2Fzig-ebpf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoushk1234%2Fzig-ebpf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoushk1234%2Fzig-ebpf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoushk1234%2Fzig-ebpf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anoushk1234","download_url":"https://codeload.github.com/anoushk1234/zig-ebpf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239862653,"owners_count":19709444,"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":["assembler","bpf","ebpf","interpreter","packet-filtering","zig"],"created_at":"2024-09-24T14:20:38.297Z","updated_at":"2025-02-20T16:30:37.485Z","avatar_url":"https://github.com/anoushk1234.png","language":"Zig","funding_links":[],"categories":["Zig"],"sub_categories":[],"readme":"# eBPF in Zig ⚡️\n\nThis is a wip implementation of eBPF in native Zig inspired by Quentin Monnet's [rbpf](https://github.com/qmonnet/rbpf/). This is different from existing zig eBPF libraries as it implements the ISA natively in zig without depending on libbpf or any C modules.\n\n## What works\n- [x] 64-bit ALU operations\n- [x] Memory operations\n- [x] Byteswap operations\n- [x] Branch instructions (needs more testing)\n- [x] Syscalls\n- [ ] JIT Compiler\n- [x] Assembler (needs more testing)\n- [x] Disassembler\n- [ ] Unit Tests \u0026 Fuzzing\n\n## Why\nShort answer: I was bored\n\nLong answer: I wanted to work on something low level and complex, and also I really like Zig and wanted an excuse to write a large-ish project in it. I was inspired by Quentin Monnet and Solana Labs's work in rbpf and thought there should be a native Zig eBPF implementation. So I wanted to learn, experiment and have some fun in open source.\n\n## Contribution and Feedback\nThe author of this repo is new to Zig so if you feel there can be some improvements in making the code more idiomatic then PRs are welcome!\n\nFollowing in the footsteps of rbpf, this project expects new commits to be coveryed by the [Developer's Ceritificate of Origin](https://wiki.linuxfoundation.org/dco).\n\n## License\nzig-ebpf is distributed under both MIT License and Apache License(Version 2.0).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanoushk1234%2Fzig-ebpf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanoushk1234%2Fzig-ebpf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanoushk1234%2Fzig-ebpf/lists"}