Hacker News new | ask | show | jobs
by phase_9 4351 days ago
Slightly off topic, but can anyone share a link to a large, well designed (open-source) codebase written in TypeScript? Github incorrectly/mistakenly tags C projects at TypeScript thanks to the `.ts` files present (thanks for picking a unique TLA Microsoft ;)

[0] https://github.com/trending?l=typescript

5 comments

This beta product for a firebase security compiler is written in typescript (by me) for node.js

https://github.com/firebase/blaze_compiler

Typescript has been a joy to develop in. The codebase is a mix of typescript and plain JS for some of the parsing.

There are a few interesting architectures patterns like a work around for no subclassing of Error by wrapping an error with a backwards chained decorator

https://github.com/firebase/blaze_compiler/blob/master/src/e...

(thanks to mindplay for that idea here https://typescript.codeplex.com/discussions/465345)

That product is still in it's infancy so gradually being refactored towards full modularisation, so its still a work in progress.

FYI: I use pycharm with the node.js plugin, and typescript compiles in the background without intervention, and I can step debug the program, and the line at the top off all the files transparent changes the stack traces back into TS.

Mozilla's Shumway replacement for Flash uses TypeScript. Shumway's TypeScript translates ActionScript to JS. The Shumway team chose TypeScript for a few reasons. TypeScript's syntax is pretty close to ActionScript's, which simplifies the mapping from ActionScript to Shumway's implementation of Adobe's Flash APIs. Using three languages (AS, JS, and TS) also helps enforce modularity between the content (AS), compiler, runtime, and JITted (JS) code.

https://github.com/mozilla/shumway/

Check out Plottable (https://github.com/palantir/plottable/). It's an open source library for data viz / charting, written as a layer on D3, and it's developed in Typescript. They have a mostly incomplete Github page here (http://palantir.github.io/plottable/) with a tutorial (http://palantir.github.io/plottable/tutorials/)
I built RavenDB's tooling [0] in TypeScript.

I also just finished building this app [1] for homeless youth in Minnesota using TypeScript and Angular.

[0]: https://github.com/JudahGabriel/ravendb/tree/master/Raven.St...

[1]: http://ysnmn.org

I like to think that my BrowserFS [0] codebase is a relatively well-designed TypeScript codebase, but I'm a bit biased. Not sure what you view as 'large', though.

[0] https://github.com/jvilk/BrowserFS