Tr

Transpile Scala to TypeScript

Hacker News

Transpile Scala to TypeScript

Hey HN! I created a Scala compiler plugin that takes Scala case classes and traits, transpiles them into Typescript, and emits it as a build artifact. There's a couple of SBT plugins that try to accomplish this but due to binary incompatibilities, can't work on Scala codebases that aren't on either Scala 2.10 (SBT 0.x) or Scala 2.12 (SBT 1.x). Using a Scala compiler plugin, it operates at the compiler level (as it's own Phase) so there's guaranteed to be no binary compatibility issues. I ran into this as I'm working on a Scala 2.13 project and couldn't get any of the current solutions to work (due to a myriad of reasons). Why do I need to transpile my Scala into Typescript? I have a Typescript frontend and don't want to manually curate my TS definitions coming from the backend. With Scala2TS, I can simply compile my Scala app and have the TS interfaces ready to be published to my NPM registry, then consumed by my frontend app. Thanks for checking this out! https://github.com/scala2ts

Share card

Actual performance

1points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: created · Missing: supports, reddit linkedin, podcasting
84%84% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: using, code · Missing: mac, agents, macos
56%56% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
42%42% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: interface · Missing: plus, platform, intuitive
31%31% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: io · Missing: https docs, excited, just released
30%30% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
13%13% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Ce
Cerialize – Typescript serialization by annotation39%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Cerialize – Typescript serialization by annotation

Hacker News1
Sc
Scala-ts – Scala to TypeScript compiler41%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Scala-ts – Scala to TypeScript compiler

Hacker News66
Ha
Hapi with Typescript51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Hapi with Typescript

Hacker News2
JS
JSONSchema to TypeScript compiler51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

JSONSchema to TypeScript compiler

Hacker News72
Ge
Get started modding Factorio in TypeScript44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Get started modding Factorio in TypeScript

Hacker News69
We
WebSockets Explained with TypeScript64%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

WebSockets Explained with TypeScript

Hacker News3
A
A BubbleShooter Implementation in TypeScript38%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A BubbleShooter Implementation in TypeScript

Hacker News2
Bi
Binary Serialization with TypeScript40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Binary Serialization with TypeScript

Hacker News2
TS
TSCPL – My ACPL to TypeScript Transpiler38%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

TSCPL – My ACPL to TypeScript Transpiler

Hacker News2
Du
DuoCode 1.0 bridges the gap between C# and TypeScript31%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

DuoCode 1.0 bridges the gap between C# and TypeScript

Hacker News7