meta

    meta/folly

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

    developer-tools
    C++
    Apache-2.0
    30.6K stars
    5.9K forks
    990 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.

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

    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 meta/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+14

    Open issues

    488+28

    Compared with peers in Developer Tools

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

    meta/folly compared with Developer Tools repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    stablyai/orca119.3K+6.6K40today
    affaan-m/ECC299.7K+4.9K6338 days ago
    max-sixty/worktrunk12.1K+2.3K5419 days ago
    herdrdev/herdr49.4K+2.1K5925 days ago
    The-PR-Agent/pr-agent15.6K+1.5K651 day ago
    meta/folly30.6K—6413 days ago
    Category median49.4K+2.3K59—

    Also by meta

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description