Skip to content

Successor Map · Languages and runtimes

CoffeeScript to TypeScript: from nicer syntax to checked types

CoffeeScript is still released, so this is not an end-of-life story. Teams such as Dropbox left over the language's ambiguities and for TypeScript's type checking, which CoffeeScript says it does not do itself.

Slide: CoffeeScript on the left, an arrow, and TypeScript on the right.
Status of the old tool
Still active
Effort to move
A real project
gen2.dev's view
Move when convenient
Sources checked
2026-11-28

Key facts

Gen 1CoffeeScript, first released as version 0.1.0 in 2009
Gen 2TypeScript
Kind of toolLanguages and runtimes
Status of Gen 1Still active The changelog on coffeescript.org lists version 2.7.1 on 2026-10-20, after 2.7.0 on 2022-04-23, and the repository is not archived.
Effort to moveA real project: plan it and run both for a while
Automate part of itdecaffeinate decaffeinate input.coffee Converts CoffeeScript source to modern JavaScript; adding TypeScript types is still yours to do.
What breaksAutomated conversion produces valid JavaScript whose behavior can differ in small ways, and Dropbox reports that its first attempt with a converter caused a major outage.
Should you move?Move when convenient CoffeeScript still ships releases, so there is no deadline, but it does no type checking of its own and large teams have documented moving off it. This is gen2.dev's view, not the maintainers'.
Sources checked2026-11-28, 5 sources

Gen 1 and Gen 2 side by side

npm registry Gen 1 Gen 2
Packagecoffeescripttypescript
Latest version2.7.17.0.2
Latest releaseOct 25, 2026Jul 8, 2026
First releaseMar 2, 2014Oct 1, 2012
LicenseMITApache-2.0
Downloads, last week1,641,809416,002,589

Read from each package registry on November 29, 2026. Downloads include automated installs such as build servers, so compare them as a trend, not a head count.

What Gen 1 was

"CoffeeScript is a little language that compiles into JavaScript." That is how its own documentation opens, followed by its golden rule: "It's just JavaScript." Version 0.1.0 is dated 2009-12-24 in the changelog and 1.0.0 followed on 2010-12-24.

It gave teams a shorter syntax that still compiled to ordinary JavaScript. Dropbox moved its web application to CoffeeScript during a Hack Week in 2012.

What replaced it

TypeScript, for most teams that moved, and for a specific reason. The CoffeeScript documentation says, "CoffeeScript does not do any type checking itself." Its answer is to write Flow's comment-based type syntax and pass the output to Flow.

The language is not abandoned. CoffeeScript 2.0.0 is dated 2017-09-18, and the changelog lists 2.7.1 on 2026-10-20.

Dropbox described its own reasons in a 2020 retrospective. In a November 2015 survey of its engineers, "only 15% thought we should stay on CoffeeScript, and 62% felt we should ditch it." The complaints were about the language itself, including syntactic ambiguity that made errors easy to write.

What moving involves

There are two steps, and only the first is automatic.

  1. CoffeeScript to JavaScript. The decaffeinate project describes its goal as "Fully automated conversion of the CoffeeScript language to modern JavaScript."
  2. JavaScript to TypeScript. The TypeScript handbook describes going file by file: accept JavaScript with allowJs, rename a file to .ts or .tsx, then turn on stricter options such as noImplicitAny.

Dropbox had 329,000 lines of CoffeeScript. It estimated a manual conversion at about 10 engineer-years, then built a pipeline: "First we ran decaffeinate to generate valid ES6," followed by its own converter to TypeScript. The automated migration took about two months.

Until the last file is converted, the codebase contains two languages. Plan for running two systems at once: two compilers, two sets of lint rules and two sets of habits.

What breaks

Converted code is valid, not necessarily identical in behavior. Dropbox writes that "our first attempt to use decaffeinate caused a major outage." It also describes a bug that came from a CoffeeScript scoping quirk surfacing after conversion.

The generated JavaScript is also not the code a person would write. Expect a cleanup pass, and expect the first TypeScript run to report a long list of type errors that were always there.

Should you move?

Move when you are already working in that code. CoffeeScript still publishes releases, so nothing forces a date.

The exceptions are a small, stable codebase that nobody finds painful, which can stay where it is, and a large one under active development, where the lack of type checking is a daily cost and the move deserves its own plan. Start new work in TypeScript.

Common questions

Is CoffeeScript dead?

No. Its maintainers have not announced an end. The changelog on coffeescript.org lists version 2.7.1 on 2026-10-20, after 2.7.0 on 2022-04-23, and the repository is not archived.

What replaced CoffeeScript?

TypeScript. Effort to move: A real project: plan it and run both for a while

Should I move off CoffeeScript?

gen2.dev's view: Move when convenient. CoffeeScript still ships releases, so there is no deadline, but it does no type checking of its own and large teams have documented moving off it.

Sources

  1. CoffeeScript documentation and changelog - coffeescript.org - Describes the language, states that CoffeeScript does not do any type checking itself, and lists every release with its date, from 0.1.0 on 2009-12-24 to 2.7.1 on 2026-10-20.
  2. jashkenas/coffeescript - GitHub - The source repository; it is public and not archived, and the README makes no maintenance statement.
  3. The Great CoffeeScript to Typescript Migration of 2017 - David Goldstein, Dropbox (May 13, 2020) - Why Dropbox adopted CoffeeScript in 2012, the November 2015 survey, the size of the codebase, the tools used, the outage and the time the migration took.
  4. decaffeinate README - GitHub - Describes decaffeinate as converting CoffeeScript source to modern JavaScript and gives its status as complete.
  5. Migrating from JavaScript - TypeScript Handbook - The file-by-file route from JavaScript to TypeScript: allowJs, renaming files to .ts or .tsx, and noImplicitAny.
  6. coffeescript - npm - latest version, release dates, license and last week's downloads, read on November 29, 2026
  7. typescript - npm - latest version, release dates, license and last week's downloads, read on November 29, 2026

Sources checked on 2026-11-28. Tools change status quickly; if this date is old, read the sources before acting on it.