# miguelgrinberg/Flask-SocketIO

Socket.IO integration for Flask applications.

Repository: https://github.com/miguelgrinberg/Flask-SocketIO
Canonical: https://ross.abutalabs.com/products/flask-socketio
Language: Python
License: MIT
License Family: permissive
Topics: python, flask, flask-socketio, socket-io, websocket
Last push: 2026-07-30T21:58:52+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 59, longevity 100
- inputs: {"age_days": 4588, "days_push": 34, "days_rel": 193, "gap_med": 57, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5509, forks 902 (observed 2026-08-28T04:09:21.784202+00:00)

## What it is
A Python library that adds Socket.IO (WebSocket with fallbacks) support to Flask applications, enabling bidirectional real-time event-based communication between server and clients. It integrates with Flask's routing and session handling and supports multiple async workers like gevent and eventlet.

## Use cases
- add real-time chat to a flask app
- push live updates to browsers over websockets
- build a flask app with socket.io events
- stream live notifications from server to clients
- implement bidirectional messaging in python web app
- add websocket support to existing flask project

## When to choose
- you already use Flask and need real-time bidirectional communication
- you want Socket.IO features like rooms, namespaces, and automatic fallback transports
- you need a mature, well-documented Python Socket.IO server

## When to avoid
- you need raw WebSocket control without the Socket.IO protocol
- your app is not built on Flask
- you want a framework-agnostic async solution like python-socketio with FastAPI

## Facets
- artifact type: library
- maturity: stable
- function: websocket, web-framework, http-server
- domain: web-development, backend
- platform: python
- tags: flask, socketio, real-time, event-driven, long-polling, web-server

## Member repositories
- miguelgrinberg/Flask-SocketIO (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:21.784202+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-29T17:56:15.967878+00:00, confidence not recorded.
  - readme: https://github.com/miguelgrinberg/Flask-SocketIO (fetched 2026-08-28T04:09:21.784202+00:00, sha b7260f056b6c)
  - registry_pypi: https://pypi.org/pypi/flask-socketio/json (fetched 2026-08-29T08:51:16.858327+00:00, sha 6d5e58fcfb84)
- Data as of 2026-08-30T08:39:29.467469+00:00.
