Functions and algorithms implemented purely with TypeScript's type system

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

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • meta-typing

    📚 Functions and algorithms implemented purely with TypeScript's type system

  • Looks like the arithmetic only supports integers 0 through 10

    https://github.com/ronami/meta-typing/blob/master/src/utils/...

  • TypeScript

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

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • hkt-toolbelt

    ✨Functional and composable type utilities

  • At the risk of too much self promotion, I have a much deeper and more feature complete treatment of many of these type-level computations, represented with higher minded types (which are thus composable) here:

    https://hkt.code.lol/

    This is my "lodash for types" project. It supports integer division for up to 2^64, for example. It has over 200 composable utility types.

  • typescript-transformer-handbook

    📘 A comprehensive handbook on how to create transformers for TypeScript with code examples

  • I recently learned about Typescript transformers[0] and wish they were better supported in a first-class manner. Working with ttypescript or ts-patch[1] is easy enough, but it still feels like you're doing something you shouldn't be doing.

    My goal was to pass the Typescript types to the JS runtime, maybe there's a better way and GPT-4 just led me astray...

    [0] https://github.com/itsdouges/typescript-transformer-handbook

    [1] https://github.com/nonara/ts-patch

  • ts-patch

    Augment the TypeScript compiler to support extended functionality

  • I recently learned about Typescript transformers[0] and wish they were better supported in a first-class manner. Working with ttypescript or ts-patch[1] is easy enough, but it still feels like you're doing something you shouldn't be doing.

    My goal was to pass the Typescript types to the JS runtime, maybe there's a better way and GPT-4 just led me astray...

    [0] https://github.com/itsdouges/typescript-transformer-handbook

    [1] https://github.com/nonara/ts-patch

  • ts-math-evaluate

    Type-level math expression evaluator for TypeScript.

  • A tuple does have a upper limit of 10 000 elements, which means that with this approach we can count to 10 000 at most.

    Another approach which I tried is to do arithmetics on digits directly, storing digits in a tuple instead, but the code is not as elegant as the tuple one

    https://github.com/dqbd/ts-math-evaluate/blob/main/src/math/...

  • ts-sql

    A SQL database implemented purely in TypeScript type annotations.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
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