ag2ai/faststream

Asynchronous Python framework for event-driven services. A thin client for Kafka, RabbitMQ, NATS, Redis and MQTT with full access to native broker features,...

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 15 minutes ago
Added to GitGenius on September 12th, 2026
Created on December 1st, 2022
Open Issues & Pull Requests: 108 (+0)
GitHub issues: Enabled
Number of forks: 390
Total Stargazers: 5,339 (+0)
Total Subscribers: 29 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 5.9 hours
Mean response time: 20.7 days
90th percentile: 21.4 days
Tracked items: 380

Most active contributors

Sign in to see contributor activity.

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 64% of open issues come from outside the core team, a mix of external reports and the maintainers' own roadmap. Only 6% of issues opened in the past year have been closed. Three people close 79% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 78
New in 7 days: 1
Closed in 7 days: 2
Avg open age: 450 days
Stale 30+ days: 37
Stale 90+ days: 3

Recent activity

Opened in 7 days: 1
Closed in 7 days: 2
Comments in 7 days: 0
Events in 7 days: 2

Top labels

  • bug (164)
  • enhancement (152)
  • good first issue (73)
  • documentation (40)
  • Core (38)
  • Confluent (28)
  • Redis (26)
  • AioKafka (21)

Detailed Description

FastStream is an asynchronous Python framework for building event-driven applications that consume and produce messages across multiple brokers.

FastStream addresses the friction of writing message queue producers and consumers by providing a decorator-based API similar to FastAPI, where type hints drive validation and documentation generation automatically. It wraps Kafka, RabbitMQ, NATS, Redis, and MQTT with a unified interface while preserving full access to each broker's native features. The framework handles message parsing, lifecycle management, and serialization through Pydantic or Msgspec, eliminating boilerplate without abstracting away broker capabilities.

Teams building microservices around event streams should consider FastStream if they value rapid development and observability built in from the start. The tool suits projects already familiar with FastAPI's patterns, since the decorator syntax and dependency injection system are intentionally similar. It generates AsyncAPI documentation automatically and includes an in-memory test client that validates subscribers and publishers without requiring running broker containers, making CI faster and more reliable. The framework is appropriate for teams that need to work with multiple broker types or want to avoid vendor lock-in, since each broker is a first-class client with its own consumer groups, exchanges, JetStream, or other native abstractions fully exposed.

Development activity shows consistent engagement with regular commits addressing bug fixes and feature improvements. The project maintains active issue triage and responds to user questions in discussions. Pull requests receive timely review and integration. The codebase demonstrates ongoing refinement of core functionality and expansion of integrations with other frameworks.