repowisepipecat-ai/pipecat

Architecture of pipecat-ai/pipecat

pipecat-ai/pipecat is 1,792 source files holding 22,357 symbols across 6 modules, written mainly in Python, TypeScript, JavaScript. The largest module is src, with 732 files, and 16 files are entry points into the dependency graph.

How pipecat fits together

Input enters through transports such as WebSockets or WebRTC, which carry audio and video into a conversation pipeline. Pipelines are built from composable components, and each pipeline can act as an agent that hands off to or coordinates with other agents over a shared bus. src/pipecat is the package entry point, holding the project metadata and a helper that returns the version string. src/pipecat/adapters standardizes how a universal conversation context and tool definitions are converted into provider-specific invocation parameters. src/pipecat/audio contains resamplers such as SOXRAudioResampler, which returns the original bytes when sample rates match and otherwise converts the audio. examples/multi-worker/distributed-handoff/pgmq-handoff/main.py is one of the project's entry points and runs a distributed handoff example. evals contains evaluation judges that score model outputs within a fixed timeout.

Largest modules

  • src: 732 files and 164,148 lines of code
  • examples: 440 files and 56,484 lines of code
  • tests: 366 files and 109,150 lines of code
  • scripts: 26 files and 4,672 lines of code
  • docs: 5 files and 314 lines of code
  • evals: 4 files and 268 lines of code

Languages

By file count: Python 1,483 files, TypeScript 64 files, JavaScript 17 files, Shell 8 files, Makefile 1 file.

Documentation

Repowise documents pipecat in 2,336 pages generated from the source, 50 of them written explanations of the repository and its modules. Module guides include:

  • src/pipecat/services/aws: AWS AI Providers
  • src/pipecat/audio: Audio Contribution Guide
  • src/pipecat/services/baseten: Baseten AI Providers

More on pipecat: summary and FAQ, codebase overview, code health.