fmtlib/fmt
A modern formatting library
Build with Backblaze B2
SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.
Loading star history...
Where it stands
Rank, growth pace and release cadence relative to everything GStars tracks.
1 release in the last 90 days, the latest 1 day ago, with 436 contributors on GitHub.
Peaked at #5 in the weekly ranking the week of Aug 30, its best in the past year.
Use Cases & Benefits
- Provides a fast, safe, and modern C++ formatting library as an alternative to stdio and iostreams.
- Delivers high performance with type safety, compile-time format string checks, and minimal code bloat across platforms.
- Use for formatting strings and printing with Python-like syntax in C++20 and C++23 projects.
- Use for safely formatting and printing user-defined types with compile-time error detection.
- Use for high-performance logging, file output, and colored terminal text in cross-platform C++ applications.
Should you depend on it?
License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.
License
MIT
Permissive: commercial use, modification and redistribution are allowed with attribution.
Community files
- README: present
- Contributing guide: present
Watch-outs
No watch-outs from GStars' checks.
General guidance from repository metadata, not legal advice. How we score
From the README
{fmt} is an open-source formatting library providing a fast and safe alternative to C stdio and C++ iostreams.
If you like this project, please consider donating to one of the funds that help victims of the war in Ukraine: https://www.stopputin.net/.
Q&A: ask questions on StackOverflow with the tag fmt.
Try {fmt} in Compiler Explorer.
See the documentation for more details.
Print to stdout (run)
Format a string (run)
Format a string using positional arguments (run)
Print dates and times (run)
Print a container (run)
Check a format string at compile time
This gives a compile-time error in C++20 because
dis an invalid format specifier for a string.Write a file from a single thread
This can be 5 to 9 times faster than fprintf.
Print with colors and text styles
Daily snapshots
Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots
+2,173 stars over 85 days across 18 snapshot days; best day +863 on Sep 3.
Forks
3.1K+146
Open issues
9+0
Compared with peers in Mobile
Fastest-growing repositories GStars tracks in this cohort for the week of Nov 8, by 7-day star growth
| Repository | Stars | +7d | Health | Last release |
|---|---|---|---|---|
| milind-soni/OpenMausBot | 20.6K | +8.4K | 75 | today |
| stablyai/orca | 121.4K | +6.7K | 75 | today |
| cjpais/Handy | 38.3K | +1.0K | 75 | 8 days ago |
| elie222/rakazo | 7.8K | +958 | 75 | today |
| rustdesk/rustdesk | 128.9K | +859 | 75 | 1 day ago |
| fmtlib/fmt | 25.9K | — | 60 | 1 day ago |
| Category median | 38.3K | +1.0K | 75 | — |
Discover Repositories
Search across tracked repositories by name or description