Civet: A TypeScript superset that favors more types and less typing
Civet: 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.
- 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.
- skrebbel
This page does a much better job presenting the language: https://civet.dev/
- 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.
- Yahivin
As the creator of this language I'm always looking for feedback, even/especially from HN :)
- postepowanieadm
I have a coffee script / raku vibes.