Caper has now reached v1.0, some 5+ years after development first started.
Caper is a tool for understanding and processing “pcap expressions” (also known as tcpdump filters) which are used for network packet analysis. It is entirely written in OCaml and includes pcap analysis logic, a from-scratch BPF compiler, and conversion to/from English expressions.
You can use Caper online through the BPF Exam site.
Caper’s README describes motivation, building, and usage examples, and its CHANGELOG describes recent updates.
A huge thanks goes to Caper’s contributors. Further contributions and feedback are welcome – a list of contribution ideas is included on Caper’s web page.