Sign inLaunch Now
ts-polyglot logo

productivity ยท ts-polyglot.dev

ts-polyglot

Import functions from C, C++ and Rust source files straight into TypeScript, with real types.

ts-polyglot is a productivity tool for TypeScript developers who need to use functionality defined in C, C++, or Rust source files. It imports functions from those source files directly into TypeScript and preserves their types, giving TypeScript code a typed interface to native or systems-oriented code. This makes it relevant to projects that combine TypeScript with existing native implementations, performance-sensitive components, command-line utilities, or language-specific libraries. By generating or exposing TypeScript-compatible function definitions from source code, ts-polyglot can reduce the need to recreate interfaces manually and helps keep calls aligned with the underlying function signatures. It is intended for developers comfortable working across language boundaries and managing the build or runtime requirements of mixed-language applications. The tool focuses on importing functions and their type information; broader concerns such as compilation, linking, packaging, memory management, and platform compatibility remain part of the surrounding project.

ts-polyglot screenshot

About ts-polyglot

ts-polyglot is a productivity tool for TypeScript developers who need to use functionality defined in C, C++, or Rust source files. It imports functions from those source files directly into TypeScript and preserves their types, giving TypeScript code a typed interface to native or systems-oriented code. This makes it relevant to projects that combine TypeScript with existing native implementations, performance-sensitive components, command-line utilities, or language-specific libraries. By generating or exposing TypeScript-compatible function definitions from source code, ts-polyglot can reduce the need to recreate interfaces manually and helps keep calls aligned with the underlying function signatures. It is intended for developers comfortable working across language boundaries and managing the build or runtime requirements of mixed-language applications. The tool focuses on importing functions and their type information; broader concerns such as compilation, linking, packaging, memory management, and platform compatibility remain part of the surrounding project.

Upvotes over time

Last 24 hours
Total upvotes19
Last 24h+0
Peak hour-
Upvotes Over Time24 hours
24h ago18h12h6hNow

0 comments

Join the discussion about ts-polyglot.

Sign in to comment
Loading comments...