# dropbox/goebpf

Library to work with eBPF programs from Go

Repository: https://github.com/dropbox/goebpf
Canonical: https://ross.abutalabs.com/products/goebpf
Language: Go
License: NOASSERTION
License Family: other
Topics: ebpf, golang, xdp, bpf, perfevents, go, golang-library, xdpdump, cats, cats-effect
Last push: 2026-07-02T12:45:56+00:00

## Health v2 (maintenance only)
Score: 73/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 90, release rhythm 35, longevity 100
- inputs: {"age_days": 2778, "days_push": 62, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1168, forks 82 (observed 2026-08-28T04:03:50.961796+00:00)

## What it is
A Go library for loading, attaching, and interacting with eBPF programs, maps, and perf events on Linux. It supports XDP, socket filters, kprobes, and tc classifiers with a simple Load/Attach/Lookup API.

## Use cases
- load and attach XDP programs from Go
- capture packets with an XDP dump tool
- read eBPF maps from a Go application
- trace kernel functions with kprobes
- stream perf events from eBPF to userspace

## When to choose
- you need to drive eBPF programs from Go with a simple high-level API
- you want XDP, kprobe, or perf event support without writing C userspace code
- you need a mockable eBPF interface for testing Go code

## When to avoid
- you need program types beyond socket filter, XDP, kprobe, or tc-cls
- you work in a non-Go language or need CO-RE/BTF-based portability tooling
- you need tc-act features, which are only partially implemented

## Facets
- artifact type: library
- maturity: active
- function: sdk, developer-tools, monitoring, networking
- domain: developer-tools, networking, operating-systems, performance
- platform: go, cli
- tags: ebpf, xdp, kprobe, perf-events, kernel, bpf-maps, packet-processing, linux

## Member repositories
- dropbox/goebpf (main) score 73

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:50.961796+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:28:46.684479+00:00, confidence not recorded.
  - readme: https://github.com/dropbox/goebpf (fetched 2026-08-28T04:03:50.961796+00:00, sha 60b6ae5f17d5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
