Live data from Hacker News

Ask HN: What are the best open source TypeScript projects I can learn from?

news.ycombinator.com

41–50 of 76 posts

Re: Ask HN: What are the best open source TypeScript projects I can learn from?

#42
post #9
post #8

I want to ask the same question for Python and Go. I'd love to see some quality OSS using Python or Go and contribute to them if I can.

The best opensource projects that you'll stay interested in the medium-long term are projects you actively use. Anything else you'll get bored of.

Library code is usually quite different from app code.

Re: Ask HN: What are the best open source TypeScript projects I can learn from?

#43

* https://github.com/excalidraw/excalidraw * https://github.com/calcom/cal.com * https://github.com/supabase/supabase * https://github.com/appwrite/appwrite * https://github.com/n8n-io/n8n * https://github.com/appsmithorg/appsmith * https://github.com/directus/directus * https://github.com/Budibase/budibase

Thanks, these are extremely interesting beyond TypeScript.

Re: Ask HN: What are the best open source TypeScript projects I can learn from?

#46

Depends whether you actually want to learn TypeScript or just how to consume it. More than 90% of TypeScript code I've seen is not actually taking advantage of TypeScript's static analysis capabilities to write safer more scalable code and is instead just being used as glorified autocomplete. If you actually want to learn, then take a look at the implementation for stuff like Zod: https://github.com/colinhacks/zod/tr…

I wouldn’t discount the value of glorified autocomplete. Being able to hit the period (.) and see what’s inside this imported object is great, especially when consuming libraries as you mentioned.

Re: Ask HN: What are the best open source TypeScript projects I can learn from?

#47

I work on Linen https://github.com/Linen-dev/linen.dev its an open source Slack alternative. Its a full stack typescript app. We do a mono repo with typesharing between both client and backend. If you are looking for a realworld typescript SAAS app this would be good

Is server source code included? If yes, in which package is it? Thanks!

Re: Ask HN: What are the best open source TypeScript projects I can learn from?

#50

Depends whether you actually want to learn TypeScript or just how to consume it. More than 90% of TypeScript code I've seen is not actually taking advantage of TypeScript's static analysis capabilities to write safer more scalable code and is instead just being used as glorified autocomplete. If you actually want to learn, then take a look at the implementation for stuff like Zod: https://github.com/colinhacks/zod/tr…

Your suggestion of zod is a very good one. I’ll take it further and suggest that if one wants to really embrace and learn TypeScript (or type systems like it), implementing your own zod-like library is an excellent learning experience. Building a set of composable “parse, don’t validate” primitives will help you think in the way the type system is designed to be most effective. And you’ll generally write better code for it.
Post reply on HN