msgspec/msgspec

A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML

View on GitHub ↗Jump to charts ↓Open shareable report →

Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 2 hours ago
Type:Library / SDKCategory(s):Core & Utility LibrariesLanguages & Runtimes
Added to GitGenius on September 16th, 2026
Created on January 26th, 2021
Open Issues & Pull Requests: 230 (+0)
GitHub issues: Enabled
Number of forks: 207
Total Stargazers: 4,155 (+0)
Total Subscribers: 25 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 2.4 days
Mean response time: 54.6 days
90th percentile: 148.7 days
Tracked items: 222

Maintainer activity

2 people did triage or write work on this repository in the last 12 months.

Counts unlabeled, assigned, unassigned, milestoned, demilestoned, locked, unlocked over the last 12 months. These are issue and pull request events that require triage or write permission. Commits and code review are not counted. labeled and renamed are excluded because GitHub issue forms record the issue author as the actor. Figures from October 7, 2026. This count is not comparable across projects: each project's automation decides which of these events a person emits.

How this project is maintained

About 13% of issues opened in the past year have never received a reply. 86% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. 63% of issues opened in the past year have been closed, leaving a working backlog. Three people close 68% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 120
New in 7 days: 1
Closed in 7 days: 0
Avg open age: 583 days
Stale 30+ days: 109
Stale 90+ days: 92

Recent activity

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

Top labels

  • bug (6)
  • documentation (1)
  • enhancement (1)
  • help wanted (1)

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

msgspec is a serialization and validation library for Python that supports JSON, MessagePack, YAML, and TOML formats with a focus on performance.

The library addresses the need for fast, reliable data serialization and validation across multiple formats. It works by providing a unified interface for encoding and decoding data while simultaneously validating against schemas. The tool uses compiled code paths and optimized algorithms to achieve high throughput compared to pure Python alternatives, making it suitable for performance-sensitive applications that need to handle structured data.

Teams should consider msgspec when they need to serialize data across multiple formats without switching between different libraries, or when serialization performance is a bottleneck in their application. It suits projects that require schema validation alongside serialization, such as APIs that need to validate incoming requests or configuration systems that must enforce structure. The library is particularly valuable for applications processing large volumes of data where the speed difference between msgspec and standard library tools becomes measurable.

The project shows consistent development activity with regular updates addressing both feature requests and performance improvements. The maintainers actively respond to issues and incorporate user feedback into releases. The codebase demonstrates attention to edge cases and compatibility concerns across different Python versions and platforms. Documentation is comprehensive and includes practical examples for common use cases. The project maintains a clear separation between its core serialization logic and validation features, allowing users to adopt either capability independently.