Datastar itself is written in TypeScript... And it is completely agnostic as to what language or approach you use in your backend, so long as you render html with the appropriate (web standards-compliant) attributes and expressions. Use ts, rust, lisp, or whatever you want on your server.