Built something? We create video reels & spotlights for GitHub projects.Promote your project →
facebook
Home / OCaml / infer

facebook/infer

A static analyzer for Java, C, C++, and Objective-C

OCaml ◇ c MIT
★15.7KSTARS
⑂2.1KFORKS
!208ISSUES
🏆#623GLOBAL RANK
🔥1DAYS TRENDING
🚀
Maintainer Growth Kit for infer

Claim this project, add your verified backlink badge to your README, and download milestone cards.

Claim Repo

Star History

Continuous Observations
Interactive star growth chart for facebook/infer
CSV
⭐ VIRAL README KIT

Add Live Star History & Verified Badges to README.md

Keep your repository README looking professional and dynamic. As our continuous crawler records new stars, these official SVG badges update in real time with zero maintenance.

Open README on GitHub ↗
Option 1: Interactive Star History Chart Dynamic SVG

Renders your high-resolution star trajectory chart right inside your GitHub README or project docs.

facebook/infer Star History Preview
markdown
[![Star History Chart](https://githubrepo.cloud/api/badge/chart/facebook/infer.svg?theme=dark)](https://githubrepo.cloud/repo/facebook/infer?utm_source=readme_chart)
Direct SVG Link ↗
Option 2: Verified Shields Badges Shields.io Style

Compact Shields-style badges for your README header. Shows real-time stars and global ranking.

Featured badge Stars badge Rank badge
markdown (badge trio)
[![Featured on GitHubRepo.cloud](https://githubrepo.cloud/badge/facebook/infer.svg?metric=featured)](https://githubrepo.cloud/repo/facebook/infer?utm_source=readme_badge) [![GitHubRepo Stars](https://githubrepo.cloud/badge/facebook/infer.svg?metric=stars)](https://githubrepo.cloud/repo/facebook/infer?utm_source=readme_badge) [![Global Rank](https://githubrepo.cloud/badge/facebook/infer.svg?metric=rank)](https://githubrepo.cloud/repo/facebook/infer?utm_source=readme_badge)

Momentum

+393

STARS · LAST 30 DAYS

13

PER DAY

#1

MOST-STARRED OCaml

Window7 days30 days90 days
Stars gained+91+393+1.2K
Per day131313
Forks gained+10+42+105

infer gained 393 stars in the last 30 days, about 13 a day, and now has 15.7K. It is about 12 years old and has averaged roughly 1.3K stars a year. It ranks #1 among OCaml repositories and #623 across all languages on GitHubRepo.

Trending Record

infer has maintained a continuous presence across global trending indexes, peaking at #1997. Below is the 30-day activity profile:

💡 Overview

infer is an open-source project written in OCaml: A static analyzer for Java, C, C++, and Objective-C.

Engineered for speed, consistency, and developer ease, it solves common hurdles in c, code-quality, cpp. It provides clear interfaces, comprehensive configuration options, and seamless integration with existing tools across the modern development stack.

⚡ Key Features

1

Optimized execution pipeline written in OCaml for predictable speed.

2

Zero-friction configuration with comprehensive sensible defaults out of the box.

3

Cross-platform runtime support across Linux, macOS, and Windows environments.

4

Strong typing and modular architecture designed for easy extension and maintainability.

5

Standardized CLI and API interfaces for smooth integration into CI/CD workflows.

6

Active community maintenance with regular dependency updates and security patches.

📥 Installation

terminal
$ git clone https://github.com/facebook/infer.git
cd infer

⚙ System Requirements

Platforms

  • • macOS
  • • Linux
  • • Windows

Runtime & Dependencies

OCaml environment and standard tooling

Architecture

x86_64, ARM64 (Apple Silicon & Graviton)

🧠 How It Works

infer coordinates its core functionality through a modular OCaml pipeline. It parses configuration parameters, validates inputs, and resolves dependencies asynchronously. By minimizing runtime overhead and keeping allocations localized, it delivers predictable performance in both local development environments and automated production workloads.

🎯 Production Use Cases

Production System Integration

Embed infer into OCaml backend services to handle core application logic.

CI/CD Automated Pipelines

Run automated validation, builds, and integration suites during deployments.

Developer Tooling & Workflows

Accelerate developer onboarding with pre-configured project utilities.

Open Source Extension

Fork and customize internal modules under the repository's open MIT license.

🚀 Getting Started

1

Install infer using your package manager: `git clone https://github.com/facebook/infer.git`

2

Initialize your project workspace or configuration file for infer.

3

Import infer into your codebase or invoke it directly from your terminal.

4

Execute your test suite or run `infer --help` to verify successful setup.

👍 Strengths

Active community backing with 15,712 GitHub stars and verified adoption.
Permissive open-source distribution under the MIT license.
Built in OCaml for high execution speed and developer familiarity.
Cross-platform compatibility across modern Linux, macOS, and Windows environments.
Clean modular design allowing flexible configuration and pipeline integration.

⚠️ Considerations

Requires familiarity with OCaml and modern CLI workflows.
Ecosystem extensions may require manual configuration depending on environment constraints.
Active development roadmap means breaking API changes may occur across major versions.

⇄ Alternatives & Direct Competitors

A
berke/aurochs ★ 48 OCaml

Aurochs is a parser generator that uses the parse expression grammar (PEG) or "packrat" approach. It takes a grammar in a BNF-like notation (a .peg file) and produces bytecode (a .nog file) for a stack automaton. This bytecode is later interpreted on the input to parse using a C library. Bindings are given for Ocaml, Java and Exascript.

Compare ↗
J
berke/jsure ★ 37 OCaml

JSure is a fast, standalone Javascript checker.

Compare ↗
O
andrenth/ospec ★ 27 OCaml

BDD for OCaml

Compare ↗
C
russross/cownfs ★ 15 OCaml

Copy-on-write NFS server

Compare ↗

👥 Who Should Use This

Developers and engineering teams building with OCaml, seeking reliable, tested, and actively maintained tooling for production workloads.

🏆 Nearby in the Rankings

facebook/infer is currently ranked #623 by stars across every repository tracked on GitHubRepo. These are adjacent projects:

RankRepositoryLanguageStarsAction
#618 remarkjs/react-markdown JavaScript ★ 15.9K Compare ↗
#619 zaproxy/zaproxy Java ★ 15.8K Compare ↗
#620 jasmine/jasmine JavaScript ★ 15.8K Compare ↗
#621 OrcaSlicer/OrcaSlicer C++ ★ 15.8K Compare ↗
#622 spree/spree Ruby ★ 15.7K Compare ↗
#623 facebook/infer This Project OCaml ★ 15.7K
#624 ifixai-ai/iFixAi Python ★ 15.7K Compare ↗
#625 getgrav/grav PHP ★ 15.7K Compare ↗
#626 PCSX2/pcsx2 C++ ★ 15.6K Compare ↗
#627 Homebrew/homebrew-core Ruby ★ 15.6K Compare ↗
#628 opensandbox-group/OpenSandbox Python ★ 15.5K Compare ↗

Frequently Asked Questions

What does infer do? +

A static analyzer for Java, C, C++, and Objective-C

What language is infer written in? +

The primary language is OCaml. Topics include: c, code-quality, cpp, java, objective-c.

Is infer actively maintained? +

Yes, the last recorded push was on Sep 30, 2026 with 208 open issues being tracked.

How many stars does infer have? +

infer has 15,712 stars and 2,098 forks on GitHub.

How does infer rank among GitHub repositories? +

With 15,712 stars, facebook/infer is ranked #623 globally across all repositories tracked on GitHubRepo and #1 among OCaml projects.

What license is infer distributed under? +

The repository reports a MIT license. Always verify the repository LICENSE file for legal terms.

From our network
FOR MAINTAINERS

Built something? Put it in front of millions of developers.

We make a short reel about your project and post it across YouTube, Instagram, Threads, and X. Send a link, we do the rest.