Show HN: Ts-polyglot – Call C/C++ or Rust functions directly from TypeScript
Category: devtools
Tags: ffi, typescript, native-bindings, c, rust, polyglot
Score: 6.0/10 (Innovation: 7, Technical: 5, Documentation: 1, Utility: 6)
Ts-polyglot is an experimental project that lets TypeScript import C, C++, or Rust files and call native functions directly without manually writing bindings, leveraging TypeScript 7.1's new Content Mappers feature. It's an interesting proof-of-concept that could simplify FFI workflows, though the implementation is admittedly simple and undocumented.
Target audience: backend devs, systems programmers, TypeScript developers
Repository: https://ts-polyglot.dev
View on Hacker News