Civet: A TypeScript superset that favors more types and less typing

Civet: TypeScript superset that favors more types and less typing

Civet: A TypeScript superset that favors more types and less typing

Civet is a tasteful superset of TypeScript that compiles to TypeScript, adding pattern matching, a pipe operator, and shorthand for object literals, imports, and JSX. It implements proposed ES features like the pipeline operator and pattern matching, while offering conveniences such as const assignment shorthand and implicit returns. The project includes plugins for Vite, esbuild, and other tools, plus a VSCode extension with a language server for syntax highlighting and completions.

Civet is essentially a tasteful superset of TypeScript.
  1. catlifeonmars

    I’ve always liked coffeescript style syntax.

    Just to nitpick, there is a whole list of reasons under “Changes from ES6” that invalidate the claim that this is a superset of typescript. In order to be a superset, you have to accept any valid typescript.

  2. skrebbel

    This page does a much better job presenting the language: https://civet.dev/

  3. bluegatty

    Love some of this.

    The problem is that I feel that most sugar is for humans, and that simpler syntax rules esp. that are clear are better fine for AI.

    Like the direction though.

  4. Yahivin

    As the creator of this language I'm always looking for feedback, even/especially from HN :)

  5. postepowanieadm

    I have a coffee script / raku vibes.

More from this day

2026-11-28