We use TypeScript not based on preference, but because we want to make money

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

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • slonik

    A Node.js PostgreSQL client with runtime and build time type safety, and composable SQL.

    I've found libraries like Zod useful when interacting with external data sources like a database. Slonik[1] uses Zod to define the types expected from a SQL query and then performs runtime validation on the data to ensure that the query is yielding the expected type.

    I don't think it's necessary to use Zod/runtime validation everywhere, but it's a nice tool to have on hand.

    [1]https://github.com/gajus/slonik

  • CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  • TypeScript

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

    Zod is great. It has some weaknesses - you can't just reuse types from external libraries; it can be verbose.

    There are some libraries that provide a cleaner experience (e.g. typescript-is/typia). But they rely either on code generation or extending the TypeScript compiler while Zod just makes do with some clever typing.

    TypeScript itself will never integrate something like this as it goes against their design goals[1].

    [1] https://github.com/microsoft/TypeScript/wiki/TypeScript-Desi...

  • marshal.ts

    A new full-featured and high-performance TypeScript framework

    zod or yup gets you quite a bit of the way there in practice - when you would reach for a Typescript type, making it in zod instead is more verbose but gives that runtime layer.

    But for those who actually want full-stack non-stripped runtime type reflection based on Typescript syntax alone... https://deepkit.io/ - https://deepkit.io/blog/introducing-deepkit-framework - is a really promising and cool project.

    It patches the typescript compiler (which pointedly considers runtime type information out of scope) with its own type compiler that emits a bespoke bytecode that is executed in a bespoke VM to communicate runtime type information to both server and client as needed. https://docs.deepkit.io/english/runtime-types.html

    And from that baseline, there are very cool things you can do like an ORM entirely based on type annotations https://docs.deepkit.io/english/database.html or strongly-typed RPCs https://docs.deepkit.io/english/rpc.html .

    It's very much in the alpha stage, but it's really well thought out - there's a tremendous degree of care the developer is taking towards code cleanliness and developer experience. I'm torn between wishing this project to have a fully funded team and take the world by storm, vs. "letting them cook" so to speak and seeing the developer experience unfold organically. Either way, it's a breath of fresh air into the Typescript ecosystem!

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

  • Ask HN: Are you using MSSQL at work, is it popular?

    1 project | news.ycombinator.com | 26 Jan 2024
  • Creating a NodeJS project without frameworks in 2023

    5 projects | dev.to | 31 Oct 2023
  • Top 6 ORMs for Modern Node.js App Development

    7 projects | dev.to | 11 Oct 2023
  • Integrating Slonik with Express.js

    2 projects | dev.to | 30 Sep 2023
  • ERDIA: TypeORM entity specification documentation tool

    6 projects | dev.to | 28 Aug 2023

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