Open Source Alternatives LogoOpen Source Alternatives
AlternativesBlogAdvertise
Open Source Alternatives LogoOpen Source Alternatives

Stay Updated

Subscribe to our newsletter for the latest news and updates about Alternatives

Open Source Alternatives LogoOpen Source Alternatives

Handpicked Open Source Alternatives to Paid Softwares

Product
  • Search
  • Categories
  • Tag
  • Sign In
Resources
  • Blog
  • Collection
  • Submit
  • Advertise your tool
Company
  • Privacy Policy
  • Terms of Service
  • Refund Policy
  • Sitemap
Copyright © 2026 All Rights Reserved.
Home/Categories/Developer Tools/pyrefly
Pyrefly logo

pyrefly

Analyze Python codebases for type errors at blazing speed with a built-in language server for IDE integration.

6.2K starsRustMITActive this week
Visit websiteGitHub repo
Pyrefly Python type checker preview
Contents
  1. 01What pyrefly does
  2. 02

Repository

Stars
6.2K
Forks
365
License
MIT
Latest
1.0.0
Last commit
today
Last verified
May 18, 2026
Repo
facebook/pyrefly ↗

Additional details

Tech stack
  • 03Similar open-source tools
  • TL;DR

    pyrefly Analyze Python codebases for type errors at blazing speed with a built-in language server for IDE integration.MIT · Rust · 6.2K stars · Active this week

    what it does

    What pyrefly does#

    The Problem with Python Type Checking

    Python's dynamic nature is a double-edged sword. Flexibility accelerates early development but bites back at scale: type errors surface only at runtime, silent mismatches propagate across large codebases, and existing tools struggle to keep up. Running mypy on a 120,000-line project takes roughly nine minutes. Pyright, while faster, consumes over 3 GB of RAM on large packages like NumPy and still clocks in at 70 seconds for a single dependency. At Instagram's scale — 20 million lines of Python — neither tool is viable in a tight feedback loop.

    The Solution: Pyrefly

    Pyrefly is an open-source Python type checker and language server written in Rust, developed by Meta and battle-tested on the Instagram codebase. It checks over 1.8 million lines of code per second, completing a full pass on NumPy in 4.8 seconds compared to mypy's 8 seconds and pyright's 70 seconds. It reaches over 90% conformance with the Python typing specification and ships as a single binary that handles both static analysis and LSP-based editor features — no separate daemon required.

    Unlike Microsoft's Pylance, which is a closed-source extension limited to official VS Code builds, Pyrefly is MIT-licensed and works in any editor: VS Code, Neovim, Zed, and Emacs. Teams using PyCharm Professional for its deep type inference can replace that paid dependency with Pyrefly's LSP, which delivers equivalent in-editor type checking, hover types, go-to-definition, and autocomplete at no cost.

    Self-Hosting and Installation

    Install with a single command: pip install pyrefly. It also supports uv, poetry, conda, and cargo. Run pyrefly init to generate a config file and pyrefly check to analyze your project. The VS Code extension is available on the marketplace (). Neovim users can wire it up via . No cloud account, no telemetry required — fully self-hosted from day one.

    tech stack · detected from GitHub

    What it's built on#

    Languages
    PythonRustTypeScript
    Frameworks
    React
    Tooling
    esbuild
    also worth a look

    Similar open-source tools#

    superpowers

    superpowers

    Empower your coding agents with Superpowers

    196KShellMIT
    react-doctor

    react-doctor

    Diagnose and fix your React code effortlessly

    10.1KTypeScriptMIT
    RuView

    RuView

    Intelligent AI agents for real-world applications

    59.5KRustMIT
    Agent Skills

    Agent Skills

    Structured workflows for AI coding agents.

    41KShellMIT
    Skills for Real Engineers

    Skills for Real Engineers

    Empower AI coding agents with essential engineering skills.

    78.5KShellMIT
    9Router

    9Router

    Smart AI Router with 3-Tier Fallback

    9.8KJavaScriptMIT
    Language
    Rust
    Open issues
    587
    Contributors
    238
    First release
    2025

    Categories

    Developer ToolsWeb DevelopmentAI & Machine Learning

    Tags

    Developer ToolsAI Coding AssistantCode Editors
    meta.pyrefly
    lspconfig