Replies: 3 comments 7 replies
This comment has been hidden.
This comment has been hidden.
-
I can't say for sure, but I think it's on the unlikely side that we offer up a public Go API; doing so would be a pretty heavy burden on the design of our codebase and prevent us from making a lot of breaking internal changes (other than I guess bumping the Our main API users are not at all Go projects, of course; all of our API users are either in JS or out-of-proc, and that's where our current focus lies. That same API is likely to be consumable from Go out-of-proc as well. The fact that we can't really do Go plugins or anything also makes it unlikely that it'll be useful for things like editor plugins, either. |
Beta Was this translation helpful? Give feedback.
-
We are exploring a plugin system for Gitea, an open-source project that uses Go for the backend and TypeScript for the frontend. Since Go’s native plugin system is complex, we’re looking for a solution that allows us to compile TypeScript from Go and seamlessly run both backend and frontend components. If we can achieve this, it would greatly simplify plugin development and integration. |
Beta Was this translation helpful? Give feedback.
-
Are there any current plans to eventually expose a stable, documented Go API that other Go applications can use to embed and invoke the TypeScript compiler directly? Right now, most functionality appears to live as
internal
packages and thus not usable externally.If a public API is on the roadmap, do you anticipate supporting features like AST manipulation, incremental builds, or custom diagnostics?
I’d love to see such an API because I have services using Otto to run JavaScript, but Otto isn’t robust enough to run the JS-based TypeScript compiler as-is—so a Go-native approach would really help me transparently compile TypeScript.
Beta Was this translation helpful? Give feedback.
All reactions