Type safe web stack with Rust and TypeScript

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

AppSignal - Monitoring that respects your time & budget
APM, error tracking, and dashboards for modern web apps. Ten-minute setup, transparent flat pricing, and support from engineers who actually use the product.
www.appsignal.com
sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
sponsored
  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. AppSignal

    Monitoring that respects your time & budget. APM, error tracking, and dashboards for modern web apps. Ten-minute setup, transparent flat pricing, and support from engineers who actually use the product.

    AppSignal 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. go-patterns

    A pattern search for the ancient game of Go (by kasbah)

    It's pretty straight forward to include the output of wasm-pack into a vite config. The output is a node module in a folder in your file system with the wasm files and a single "main" JS file.

    Because I wanted to load WASM in a web worker for my project [1] I needed to use vite-plugin-wasm and `wasm-pack build --target web` but without that constraint you should be able to import the main JS file from the wasm-pack output directory using wasm-pack's default `bundler` target and no additional plugins.

    [1]: https://github.com/kasbah/calm-go-pattern-search

  5. 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.

  6. 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.

  7. 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.

  8. specta

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

  9. SaaSHub

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

    SaaSHub 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
  • An Agent Can Read Your API Docs and Still Can't Sign Up

    1 project | dev.to | 17 Sep 2026
  • I counted how many startup credit programs a machine can actually check

    1 project | dev.to | 31 Aug 2026
  • An open-source, HIPAA-eligible Twilio alternative

    5 projects | dev.to | 6 Jan 2026