Node.js adds experimental support for TypeScript

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB - Purpose built for real-time analytics at any scale.
InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • proposal-type-annotations

    ECMAScript proposal for type syntax that is erased - Stage 1

    Imho standardizing the syntax is enough and this is what https://github.com/tc39/proposal-type-annotations does.

    The type checker is immensely complex and should be left out so that other type checkers can be developed, e.g. similar to how it's for Python today.

  • InfluxDB

    Purpose built for real-time analytics at any scale. InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.

    InfluxDB logo
  • node

    Node.js JavaScript runtime ✨🐢🚀✨

    Namespaces are also not supported as per https://github.com/nodejs/node/blob/main/doc/api/typescript.....

    I for one can can live without all these features and will be banning via eslint.

  • loaders

    ECMAScript Modules Loaders

    There's a "dedicated thread" on the question here https://github.com/nodejs/loaders/issues/214

    There are about 100 messages in the comments on the linked PR all about the import extensions compatibility/consequences :)

    There's a "roadmap doc" here https://github.com/nodejs/loaders/issues/217 that states "No .js extension for .ts files."

  • TypeScript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    TypeScript in its current usage reminds me of Hello, World! or FizzBuzz Enterprise Edition. There's almost more code dedicated to typing than the actual running software itself in some codebases I've seen.

    The authors trick you with reasonable examples on https://www.typescriptlang.org, but in the wild, you have these ridiculous codebases that couldn't control themselves and they have this insane ratio of multiple declaration files to actual source files and you have to ask yourself, "Are you writing software to get something actually done, or do you just like write type definitions?"

    Even people who write in C++ don't go to the lengths that TypeScript users do. It's super weird and cult-like.

  • rescript-compiler

    The compiler for ReScript.

  • closure-library

    Discontinued Google's common JavaScript library

    Google’s Closure Library is fascinating too. It’s being retired, but if you want to build a rich text interface for email authoring that truly feels like Gmail, warts and all, you can just use a pre-compiled version of the library and follow https://github.com/google/closure-library/blob/master/closur... within a more modern codebase!

  • ts-sql

    A SQL database implemented purely in TypeScript type annotations.

    I don't use them directly much, but template literal generic and contidiontal types is probably the closest a mainstream language has inched towards dependent types.

    Some examples of TypeScript power:

    - SQL database in TypeScript types: https://github.com/codemix/ts-sql

    - Statically typed raw SQL queries: https://github.com/andywer/squid?tab=readme-ov-file#tag-func...

    - (Someone fill in your TS hackery for me)

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • squid

    🦑 Provides SQL tagged template strings and schema definition functions. (by andywer)

    I don't use them directly much, but template literal generic and contidiontal types is probably the closest a mainstream language has inched towards dependent types.

    Some examples of TypeScript power:

    - SQL database in TypeScript types: https://github.com/codemix/ts-sql

    - Statically typed raw SQL queries: https://github.com/andywer/squid?tab=readme-ov-file#tag-func...

    - (Someone fill in your TS hackery for me)

  • typefuck

    Type-level Brainfuck interpreter in TypeScript

    There are various programming language interpreters that run entirely in the type system:

    - BF: https://github.com/susisu/typefuck

    - Assembly: https://github.com/judehunter/ts-asm

  • ts-asm

    Assembly interpreter implemented entirely in TypeScript's type system (type annotations)

    There are various programming language interpreters that run entirely in the type system:

    - BF: https://github.com/susisu/typefuck

    - Assembly: https://github.com/judehunter/ts-asm

  • swc-node

    Faster ts-node without typecheck

    tsx has very slow startup performance, I prefer https://github.com/swc-project/swc-node which is around twice as fast.

  • closure-compiler

    A JavaScript checker and optimizer.

    This can give you some hints of the current status of closure compiler:

    https://github.com/google/closure-compiler/issues/2731

    I happen to know this because we have some old projects that depend on this and are working hard to get rid of the dependency.

    I wish Google either updates it or just mark the whole thing deprecated -- the world has already moved on anyway. Relating this to Google's recent cost cutting, and seeing some other Google's open source projects more or less getting abandoned, I have to say that today's Google is definitely not the same company from two decades ago.

  • openapi-typescript

    Generate TypeScript types from OpenAPI 3 specs

    Maybe I just have bad luck, but most of the libraries I've tried that are "crazy to look at" seem good in theory but are janky in practice. For example, openapi-fetch (https://github.com/openapi-ts/openapi-typescript/tree/main/p...), on paper seems great, but has lots of jank in practice.

    And I would wager the bugs and jank are in no small part due to the extremely complex generics/constraints.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Big Changes Ahead for Deno

    13 projects | news.ycombinator.com | 15 Aug 2022
  • Rust Is the Future of JavaScript Infrastructure

    8 projects | news.ycombinator.com | 11 Nov 2021
  • Starting a TypeScript Project in 2021

    14 projects | news.ycombinator.com | 21 Apr 2021
  • Integrate Dropbox API with React: A Comprehensive Guide

    1 project | dev.to | 6 Sep 2024
  • Building a Personal Finance App with Arcjet

    9 projects | dev.to | 6 Sep 2024

Did you konow that TypeScript is
the 2nd most popular programming language
based on number of metions?