Type safe web stack with Rust and TypeScript

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

Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
  1. rust-typescript

    a rust typescript integration

    The short answer is: Yes

    Long answer is: looking at the skeleton code in the repo, it's setup for development to run 2 servers (a server just serving static files for the svelt app PORT=3000, and a server running the API PORT=3001) https://github.com/beeeeep54/rust-typescript/blob/main/backe...

    But I have seen people do that but:

    - Package it into 1 docker container (or 1 service for lack of a better term) that runs both with a proxy that's only there in "prod" deployment not local development. so inside the container it's 2 processes, but outside it's like 1 selfcontained application

    - enable a static server on the API endpoint once deployed. It's usually 1 line in every web framework in most languages. Something like `app.serveStatic("/", "./static")`. In this case it's 1 server doing both

    - Deploy them as 2 different services that scale and are managed completely independently.

    then take all that and multiply it by 2 or 4 for all the proxy/path/domain permutations

  2. Sevalla

    Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!

    Sevalla logo
  3. typeshare

    Discontinued Generate code in different languages from Rust type definitions for FFI interop.

    I use https://github.com/1Password/typeshare it has it's quirks, but works nicely

  4. fastapi

    FastAPI framework, high performance, easy to learn, fast to code, ready for production

    > Ideally I'd like to be able to write types in typescript, and write python types, then verify that the types are compatible (not identical)

    Have a look at https://fastapi.tiangolo.com/

    FastAPI allows you to define your types in Python using Pydantic for stronger type guarantees. FastAPI also generates an OpenAPI.json file for your backend and then you can feed this OpenAPI.json document into https://github.com/OpenAPITools/openapi-generator to generate a typescript library that contains all the types. Then you don't need to verify your types, because the typescript types will be directly generated from your Python types. The generated typescript library also contains methods for each of your REST endpoints, so that you don't have to think about network requests.

  5. openapi-generator

    OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)

    > Ideally I'd like to be able to write types in typescript, and write python types, then verify that the types are compatible (not identical)

    Have a look at https://fastapi.tiangolo.com/

    FastAPI allows you to define your types in Python using Pydantic for stronger type guarantees. FastAPI also generates an OpenAPI.json file for your backend and then you can feed this OpenAPI.json document into https://github.com/OpenAPITools/openapi-generator to generate a typescript library that contains all the types. Then you don't need to verify your types, because the typescript types will be directly generated from your Python types. The generated typescript library also contains methods for each of your REST endpoints, so that you don't have to think about network requests.

  6. ts-rs

    Generate TypeScript bindings from Rust types

    I have been using https://github.com/Aleph-Alpha/ts-rs to generate TypeScript types from Rust for quite a while now. Very happy and it has a lot of good impact when doing large refactor to the API. Claude Code also selected this automatically for a full-stack app I was experimenting.

  7. specta

    Easily export your Rust types to other languages (by specta-rs)

  8. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    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

  • Show HN: Build type-safe web APIs with JavaScript, instantly

    5 projects | news.ycombinator.com | 25 Oct 2023
  • OpenAPI v4 Proposal

    24 projects | news.ycombinator.com | 31 May 2023
  • Show HN: Mixing Deterministic Codegen with LLM Codegen for Client SDKs

    2 projects | news.ycombinator.com | 26 Aug 2025
  • Always Up-to-Date API Docs Are Real (And No, It’s Not AI)

    4 projects | dev.to | 15 Aug 2025
  • Use Your Type System

    10 projects | news.ycombinator.com | 24 Jul 2025