fmtlib

    fmtlib/fmt

    A modern formatting library

    25.9K stars
    3.1K forks
    322 GitHub watchers
    Updated Nov 8, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    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 d is 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

    Excerpt from the fmtlib/fmt README on GitHub (MIT license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Sep 3: +863Sep 4: +501Sep 5: +119Sep 6: +60Sep 7: +28Sep 8: +33Sep 9: +19Sep 10: +22Sep 11: +21Sep 12: +9Oct 2: +7

    +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

    fmtlib/fmt compared with Mobile repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    milind-soni/OpenMausBot20.6K+8.4K75today
    stablyai/orca121.4K+6.7K75today
    cjpais/Handy38.3K+1.0K758 days ago
    elie222/rakazo7.8K+95875today
    rustdesk/rustdesk128.9K+859751 day ago
    fmtlib/fmt25.9K—601 day ago
    Category median38.3K+1.0K75—

    Discover Repositories

    Search across tracked repositories by name or description