{"id":33304536,"url":"https://github.com/packetstream-llc/ouroboros","last_synced_at":"2025-11-18T17:01:23.826Z","repository":{"id":317312099,"uuid":"1060076902","full_name":"PacketStream-LLC/ouroboros","owner":"PacketStream-LLC","description":"ouroboros is a tool to manage and chain multiple eBPF programs together, simplifying complex program flows with `bpf_tail_call`","archived":false,"fork":false,"pushed_at":"2025-11-12T06:09:01.000Z","size":201,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-12T08:12:19.855Z","etag":null,"topics":["ebpf","ebpf-tail","xdp"],"latest_commit_sha":null,"homepage":"","language":"Go","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/PacketStream-LLC.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-19T10:55:30.000Z","updated_at":"2025-11-12T06:09:04.000Z","dependencies_parsed_at":"2025-10-01T08:45:53.455Z","dependency_job_id":null,"html_url":"https://github.com/PacketStream-LLC/ouroboros","commit_stats":null,"previous_names":["packetstream-llc/ouroboros"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/PacketStream-LLC/ouroboros","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacketStream-LLC%2Fouroboros","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacketStream-LLC%2Fouroboros/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacketStream-LLC%2Fouroboros/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacketStream-LLC%2Fouroboros/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PacketStream-LLC","download_url":"https://codeload.github.com/PacketStream-LLC/ouroboros/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacketStream-LLC%2Fouroboros/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285101682,"owners_count":27115042,"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","status":"online","status_checked_at":"2025-11-18T02:00:05.759Z","response_time":61,"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":["ebpf","ebpf-tail","xdp"],"created_at":"2025-11-18T17:00:27.454Z","updated_at":"2025-11-18T17:01:23.806Z","avatar_url":"https://github.com/PacketStream-LLC.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg width=\"384\" height=\"384\" alt=\"ouroboros logo\" src=\"https://github.com/user-attachments/assets/8484c64e-1058-40ca-8e12-1b6d4d713594\" /\u003e\u003c/p\u003e\n\n\u003e [!WARNING]\n\u003e This is not an official PacketStream LLC service or product.\n\n`ouroboros` helps you manage and chain multiple eBPF programs together via managing central `PROGRAM_MAPS` and shared `PINNED` eBPF maps/ringbufs, \nmaking it easier to `bpf_tail_call` and build complex chain of eBPF program flow structure for complext programs\n\n## What is it?\n\nRunning a single eBPF program is straightforward. But what if you need to run many of them in a specific order? `ouroboros` simplifies this by letting you:\n\n- **Organize** your eBPF programs into a single project with metadata provided with `ouroboros.json`.\n- **Share** and **Allocate** eBPF maps and ring buffers on initialization via `ouroboros.json` configuration.\n- **Create** program maps for centralized tail call management and easy chaining in your C code.\n- **Machine Generated** constants for program IDs and jump targets, so you don't have to manually manage them.\n- **Chain** them together using eBPF tail calls with generated `JUMP_TO_PROGRAM` and `PROG_*` constants, easily implement tailing to next program.\n- **Build and load** everything with simple commands, without finding pinned path when you use `bpftool` directly.\n\n## Installation\n\nMake sure you have Go, Clang, and LLVM installed.\n\n```bash\ngo install github.com/PacketStream-LLC/ouroboros@latest\n```\n\n## Getting Started\n\n1.  **Create a project:**\n    ```bash\n    mkdir my_firewall\n    cd my_firewall\n    ouroboros create\n    ```\n    This will create `ouroboros.json`, `src/` and `target/` directories.\n\n2.  **Add your first program:**\n    ```bash\n    ouroboros add block_list\n    ```\n    Now, edit the C code in `src/block_list/main.c`.\n\n3.  **Build and load it:**\n    ```bash\n    ouroboros load\n    ```\n    This will compile your programs and load them into the kernel.\n\n4.  **Attach to an interface:**\n    ```bash\n    ouroboros attach eth0\n    ```\n\n5.  **See the logs:**\n    ```bash\n    ouroboros log\n    ```\n\n## Usage\nSee [USAGE.md](USAGE.md) for detailed usage instructions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacketstream-llc%2Fouroboros","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpacketstream-llc%2Fouroboros","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacketstream-llc%2Fouroboros/lists"}