ranvier-fsharp

mcp
Security Audit
Pass
Health Pass
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 10 GitHub stars
Code Pass
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Demand-driven incremental F# language server powered by Ranvier, compatible with Ionide and LSP editors.

README.md

ranvier: declaration-incremental F# tooling on Ranvier

ranvier-fsharp

F# tooling that checks code one declaration at a time, built on Ranvier's reactive graph and fickle-fsharp, a fork of FSharp.Compiler.Service with declaration-level checking. An edit inside a function or binding re-checks that declaration, and stops there when its inferred signature is unchanged.

Massive Props to the Ionide Team: Ranvier.AutoComplete would not exist without the talent and dedication of the Ionide maintainers and contributors. The language server surface, protocol handling, workspace loading, analyzers, code actions, and editor feature behavior in this repository are largely based on and adapted from their landmark work across FsAutoComplete (FSAC), Ionide.LanguageServerProtocol, Ionide.ProjInfo, and ionide-vscode-fsharp. While ranvier-fsharp introduces a new declaration-incremental Ranvier checking graph underneath, the rich F# IDE experience it delivers stands squarely on the foundation Ionide built for the F# community. See Acknowledgements & Attribution for full credit.

Building from source

Use ./build.sh --schema to list commands and ./build.sh build --explain to inspect the build
plan. Use ./build.sh tui for the interactive interface or --json for structured output.

Use ./build.sh (or .\build.cmd on Windows) for repository commands. The first run publishes
a native runner and later calls reuse it until a Build input changes. See the build guide.

The tools

ranvierautocomplete: an F# language server

ranvierautocomplete: an F# language server for Ionide, Neovim, Helix, Zed, Emacs and any stdio LSP client, in place of fsautocomplete.

Ranvier.AutoComplete on NuGet

dotnet tool install -g Ranvier.AutoComplete

Ranvier for F#: the reactive graph in VS Code

Ranvier for F#: a VS Code extension that draws the reactive graph of your Ranvier code: what each write runs, what wakes each effect, and which writes are hazards. It runs alongside Ionide, on ranvierautocomplete 0.1.9 or later.

Ranvier for F# on the VS Code Marketplace

code --install-extension ranvier.ranvier-fsharp

rfs: F# for coding agents

rfs: type checks, symbols, references and renames for coding agents such as Claude Code, Codex and Cursor, as a CLI and an MCP server over one shared incremental daemon.

Ranvier.FSharp.Agent on NuGet

dotnet tool install -g Ranvier.FSharp.Agent

Ranvier.FSharp.*: embed the checker

Ranvier.FSharp.*: the checker, the language server, MSBuild project loading and the LSP plumbing as NuGet packages, with .Traced builds of the checker and the server.

Ranvier.FSharp.Server on NuGet

dotnet add package Ranvier.FSharp.Server

Which one you want

You want Use
F# in Neovim, Helix, Zed, Emacs, or VS Code with Ionide ranvierautocomplete
To see what your Ranvier code's writes run and wake, and its hazards, in VS Code Ranvier for F#, with ranvierautocomplete as Ionide's server
F# type checks, symbols, references and renames for a coding agent rfs
The checker, or the whole language server, inside your own .NET code Ranvier.FSharp.*

Why declaration-incremental checking?

Traditional F# language servers re-typecheck entire files (and downstream files) on edits or retain heavy compiler TcState / FSharpCheckFileResults graphs across open buffers. ranvier-fsharp models F# parsing, dependency extraction, declaration-level type-checking, symbol uses, and cross-project signatures as a reactive Ranvier computation graph:

  • Declaration-level incremental checking: Edits inside a function or binding body re-check only the affected declaration (~1.7–12.6 declarations/edit instead of the whole file) and stop propagation immediately when the inferred signature is unchanged.
  • Zero compiler-object retention at rest: Diagnostics, hovers, semantic classifications, symbol uses, and signature projections are extracted eagerly into compact immutable records; FSharpCheckFileResults are never retained on the heap.
  • Live in-memory cross-project propagation: Unsaved buffer edits (in LSP) and saved disk edits (in rfs) propagate across ProjectReference boundaries in memory without rebuilding DLLs on disk.
  • Causal graph inspection (rfs/why): .Traced packages (Ranvier.FSharp.Checker.Traced, Ranvier.FSharp.Server.Traced) record causal node labels so callers can inspect the exact dependency path from changed inputs to any declaration's check.

Documentation

  • ranvierautocomplete: installing it, setting it up in each editor, and every setting.
    • Ranvier analysis: the opt-in hints, lenses and hazard warnings for code that uses Ranvier, and the graph commands.
    • Colour swatches: which colour literals the server finds, and how the picker writes them back.
    • The preview commands, ranvier.preview.list and ranvier.preview.generate: a file's or a project's Ranvier.View components, and the generated props file that previews one, with the Ranvier analysis on or off. Ranvier for F# runs them.
  • Ranvier for F#: the VS Code extension.
  • rfs: the agent tool's guide, from installing it to the process monitor.
  • Ranvier.FSharp.*: the packages, embedding them, and the traced builds.
  • Building, packing and releasing: from the fickle-fsharp fork to the release tags.
  • Banners: how the cards on these pages are drawn.

Acknowledgements & Attribution

ranvier-fsharp stands on the shoulders of the Ionide team (github.com/ionide), without whom this project simply would not be possible. Over more than a decade of open-source stewardship, the Ionide maintainers and contributors designed, refined, and maintained the modern cross-editor F# developer experience — and the code in this repository is largely based on their talented work:

  • FsAutoComplete (FSAC) (Apache-2.0 — Tomas Petricek, Ben Winkel, Igor Siguta, Robin Neatherway, Dave Thomas, Krzysztof Cieślak, Chet Husk, Jimmy Byrd, Florian Verdonck, and all FSAC contributors): Ranvier.FSharp.Server draws heavily on FSAC's architecture, protocol conventions, and feature semantics — including hover & signature formatting, completion & auto-open namespace edits, semantic token mapping, inlay hints, code lenses, pipeline/inline value hints, navigation & rename rules, built-in FSAC0001–FSAC0004 analyzers, quick fixes & stub-generation code actions, and the custom fsharp/* (workspacePeek, workspaceLoad, project, lineLens, pipelineHint, documentation*) protocol surface.
  • Ionide.LanguageServerProtocol (MIT — Krzysztof Cieślak & Ionide contributors): Provides the strongly typed LSP protocol types and serialization contracts used across Ranvier.FSharp.Server.
  • Ionide.ProjInfo (MIT — Enrico Sada, Chet Husk & Ionide contributors): Powers MSBuild SDK discovery (MSBuildLocator), design-time F# project evaluation, and .sln inspection in Ranvier.FSharp.Projects.
  • ionide-vscode-fsharp (MIT — Krzysztof Cieślak, Chet Husk, Jimmy Byrd & Ionide contributors): The flagship F# extension for VS Code whose FSharp.fsac.netCoreDllPath integration makes ranvierautocomplete a seamless drop-in experience.

Special thanks as well to:

  • The F# Compiler & FSharp.Compiler.Service Team (dotnet/fsharp, .NET Foundation and contributors), upon which fickle-fsharp builds declaration-level incremental type-checking.
  • Fantomas (Florian Verdonck, Dave Thomas & fsprojects contributors) for F# source formatting.

Full upstream copyright and license notices are included in THIRD-PARTY-NOTICES.md (distributed in every NuGet package and release archive).

License

MIT — Copyright (c) 2026 Shayan Habibi. See THIRD-PARTY-NOTICES.md for third-party attribution and Apache-2.0 / MIT notices for adapted upstream components.

Reviews (0)

No results found