facebook

    facebook/folly

    #472 this week

    An open-source C++ library developed and used at Facebook.

    developer-tools
    C++
    Apache-2.0
    30.6K stars
    5.9K forks
    30.6K GitHub watchers
    Updated Oct 16, 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.

    Ranks #472 of 2,845 repositories GStars tracks this week (top 17%).

    5 releases in the last 90 days, the latest 4 days ago, with 280 contributors on GitHub.

    Gained 37% fewer stars in the last 90 days than in the 90 days before.

    Use Cases & Benefits

    • Provides a collection of high-performance, practical C++17 library components used extensively at Facebook.
    • Delivers optimized, scalable implementations that complement standard and Boost libraries, focusing on large-scale performance.
    • Use for enhancing C++ projects requiring efficient concurrency primitives and synchronization mechanisms.
    • Use for building scalable networked applications leveraging folly's optimized data structures and utilities.
    • Use for integrating with Facebook's open-source C++ ecosystem to share and reuse core components reliably.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Apache 2.0

    Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.

    Community files

    • README: present
    • Contributing guide: present
    • Code of conduct: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    Folly (acronymed loosely after Facebook Open Source Library) is a library of C++17 components designed with practicality and efficiency in mind. Folly contains a variety of core library components used extensively at Facebook. In particular, it's often a dependency of Facebook's other open source C++ efforts and place where those projects can share code.

    It complements (as opposed to competing against) offerings such as Boost and of course std. In fact, we embark on defining our own component only when something we need is either not available, or does not meet the needed performance profile. We endeavor to remove things from folly if or when std or Boost obsoletes them.

    Performance concerns permeate much of Folly, sometimes leading to designs that are more idiosyncratic than they would otherwise be (see e.g. PackedSyncPtr.h, SmallLocks.h). Good performance at large scale is a unifying theme in all of Folly.

    Folly is a collection of relatively independent components, some as simple as a few symbols. There is no restriction on internal dependencies, meaning that a given folly module may use any other folly components.

    All symbols are defined in the top-level namespace folly, except of course macros. Macro names are ALL_UPPERCASE and should be prefixed with FOLLY_. Namespace folly defines other internal namespaces such as internal or detail. User code should not depend on symbols in those namespaces.

    Excerpt from the facebook/folly README on GitHub (Apache-2.0 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

    Forks

    5.9K+21

    Open issues

    487+30

    Compared with peers in Developer Tools

    Fastest-growing repositories GStars tracks in this cohort for the week of Oct 11, by 7-day star growth

    facebook/folly compared with Developer Tools repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    DietrichGebert/ponytail173.5K+5.3K756 days ago
    OpenCut-app/OpenCut95.1K+1.7K5923 days ago
    michael-denyer/pstack-claude3.3K+92575today
    EpicGames/raddebugger8.5K+8147514 days ago
    superdesigndev/treg5.9K+71045—
    facebook/folly30.6K+0754 days ago
    Category median8.5K+92575—

    Also by facebook

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description