Skip to content
CAI
Produce a survey ↗Verify a survey

fable-compiler/ts2fable

This system is a code generator that converts TypeScript type definitions into F# code compatible with the Fable compiler. It provides a CLI and a web-based interface to transform TypeScript ASTs into F# modules, supporting features like interfaces, enums, generics, and various configuration options for code output. The project includes a comprehensive test suite that validates the translation of complex TypeScript constructs, including React, Babylon.js, and other library bindings.

55.0

Adequate · 6 August 2026

31k

lines of production code

F#

primary language

2

bus factor · 18 authors in all

4

measurements over time

CAI band scale
CAI trend line

How it got here

2017–2018 · Initial project scaffolding and core feature implementation

This period established the foundational structure of the ts2fable project, including build automation, dependency management, and the core TypeScript-to-F# conversion logic. It also introduced key configuration options for code generation and expanded test coverage for various libraries like React and BreezeJS.

15 changes

2019–2023 · test coverage and build system

This period focused on expanding test coverage for the TypeScript-to-F# code generator, adding extensive regression tests for complex TypeScript constructs like generics, literals, and JSDoc comments. The project also introduced a new F#-based build script to manage compilation, testing, and bundling, replacing the previous configuration.

7 changes

CAI lens gauges

Survey your own repository

fable-compiler/ts2fable was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point the surveyor at a repository you know and see whether you agree with it.

Survey a repository

About this page

  • The description of this project is derived from its own commit history, not from its README.
  • The score is its highest published measurement, taken on 6 August 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 7c63ece515 — the exact code this score is about.
  • Scored under rubric rubric-2026.08.19. Score the same commit under that rubric and you get the same number.
CAI link cards