Aleph-Alpha/ts-rs
Some data may be outdated — see provenance labels.
Generate TypeScript bindings from Rust types observed · 2026-10-07
Health v2 · maintenance only
77/100
- Activity 97
- Release rhythm 37
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-22. Adoption (stars, forks) is never an input.
- gap_med: 132
- age_days: 2136
- days_rel: 263
- days_push: 19
- n_releases_24m: 4
Adoption not part of the score
1905 stars · 171 forks observed · 2026-10-07
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
ts-rs is a Rust library with a derive macro that generates TypeScript type declarations from Rust structs and enums. It keeps backend and frontend types in sync by exporting bindings during tests, with serde compatibility and multi-file import support.
Use cases
- generate typescript types from rust structs
- share types between rust backend and typescript frontend
- keep rust and typescript type definitions in sync
- export rust enums as typescript unions
- generate bindings for a wasm project
- generate typescript interfaces compatible with serde
When to choose
- you build web apps with a Rust backend and TypeScript frontend
- you want types generated automatically from a single source of truth
- you use serde and want bindings to match your serialization
- you need multi-file exports with generated imports
When to avoid
- your backend is not written in Rust
- you need runtime serialization rather than type declarations
- you want JSON Schema or OpenAPI output instead of TypeScript
Facets
library · maturity stable
serialization developer-tools web-development developer-tools apis rust cross-platform typescript-bindings code-generation derive-macro serde wasm
2 sources
- readme: https://github.com/Aleph-Alpha/ts-rs · fetched 2026-10-07 · db337e1658ab
- registry_crates: https://crates.io/api/v1/crates/ts-rs · fetched 2026-08-29 · b573b7e87c97
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Aleph-Alpha/ts-rs | main | 77 |
For agents
markdown · JSON · MCP: product_card(name="Aleph-Alpha/ts-rs")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem