TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

219 点作者 pototo666超过 2 年前
What are the best open source TypeScript frontend and backend real world projects I can learn from?<p>I am a self-taught web developers and I haven&#x27;t worked for any good companies. There are no seniors reviewing my code.<p>My code quality can be improved but I don&#x27;t know how. Maybe reading some good codebase is a way out.<p>I use React in frontend and express in Backend. Do you know any good OSS projects that use those stacks?<p>Maybe I should read popular OSS frameworks instead of web app&#x27;s source code? I am thinking of changing my job, so reading real web app&#x27;s source code might be more relavant.<p>I am very thankful for any advices. And Happy New Year!

34 条评论

FBISurveillance超过 2 年前
* <a href="https:&#x2F;&#x2F;github.com&#x2F;excalidraw&#x2F;excalidraw">https:&#x2F;&#x2F;github.com&#x2F;excalidraw&#x2F;excalidraw</a><p>* <a href="https:&#x2F;&#x2F;github.com&#x2F;calcom&#x2F;cal.com">https:&#x2F;&#x2F;github.com&#x2F;calcom&#x2F;cal.com</a><p>* <a href="https:&#x2F;&#x2F;github.com&#x2F;supabase&#x2F;supabase">https:&#x2F;&#x2F;github.com&#x2F;supabase&#x2F;supabase</a><p>* <a href="https:&#x2F;&#x2F;github.com&#x2F;appwrite&#x2F;appwrite">https:&#x2F;&#x2F;github.com&#x2F;appwrite&#x2F;appwrite</a><p>* <a href="https:&#x2F;&#x2F;github.com&#x2F;n8n-io&#x2F;n8n">https:&#x2F;&#x2F;github.com&#x2F;n8n-io&#x2F;n8n</a><p>* <a href="https:&#x2F;&#x2F;github.com&#x2F;appsmithorg&#x2F;appsmith">https:&#x2F;&#x2F;github.com&#x2F;appsmithorg&#x2F;appsmith</a><p>* <a href="https:&#x2F;&#x2F;github.com&#x2F;directus&#x2F;directus">https:&#x2F;&#x2F;github.com&#x2F;directus&#x2F;directus</a><p>* <a href="https:&#x2F;&#x2F;github.com&#x2F;Budibase&#x2F;budibase">https:&#x2F;&#x2F;github.com&#x2F;Budibase&#x2F;budibase</a>
评论 #34209117 未加载
评论 #34229528 未加载
评论 #34210979 未加载
评论 #34206290 未加载
评论 #34214442 未加载
评论 #34206650 未加载
评论 #34208618 未加载
Benjamin_Dobell超过 2 年前
Depends whether you actually want to learn TypeScript or just how to consume it. More than 90% of TypeScript code I&#x27;ve seen is not actually taking advantage of TypeScript&#x27;s static analysis capabilities to write safer more scalable code and is instead just being used as glorified autocomplete.<p>If you actually want to learn, then take a look at the implementation for stuff like Zod: <a href="https:&#x2F;&#x2F;github.com&#x2F;colinhacks&#x2F;zod&#x2F;tree&#x2F;master&#x2F;src&#x2F;helpers">https:&#x2F;&#x2F;github.com&#x2F;colinhacks&#x2F;zod&#x2F;tree&#x2F;master&#x2F;src&#x2F;helpers</a><p>You can do some really powerful stuff that hugely benefits your team. A decent example I stumbled across recently when I went to release my own library (that does the same thing) is <a href="https:&#x2F;&#x2F;github.com&#x2F;leancodepl&#x2F;ts-routes">https:&#x2F;&#x2F;github.com&#x2F;leancodepl&#x2F;ts-routes</a>
评论 #34207631 未加载
评论 #34206337 未加载
评论 #34208616 未加载
cheeseblubber超过 2 年前
I work on Linen <a href="https:&#x2F;&#x2F;github.com&#x2F;Linen-dev&#x2F;linen.dev">https:&#x2F;&#x2F;github.com&#x2F;Linen-dev&#x2F;linen.dev</a> 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
评论 #34207794 未加载
lioeters超过 2 年前
This could be a good learning resource, a collection of client &amp; server-side TypeScript projects.<p>Awesome TypeScript - <a href="https:&#x2F;&#x2F;github.com&#x2F;dzharii&#x2F;awesome-typescript">https:&#x2F;&#x2F;github.com&#x2F;dzharii&#x2F;awesome-typescript</a><p>And here&#x27;s a list of projects on GitHub tagged with the topic &quot;TypeScript&quot;, sorted by most stars. Many build tools I see on the first page, starting with the TypeScript compiler itself - which is an impressive and interesting codebase, but it may not be so suitable for study purpose.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;topics&#x2F;typescript">https:&#x2F;&#x2F;github.com&#x2F;topics&#x2F;typescript</a><p>You might enjoy learning from some books too.<p>The TypeScript Handbook - <a href="https:&#x2F;&#x2F;www.typescriptlang.org&#x2F;docs&#x2F;handbook&#x2F;intro.html" rel="nofollow">https:&#x2F;&#x2F;www.typescriptlang.org&#x2F;docs&#x2F;handbook&#x2F;intro.html</a><p>TypeScript Deep Dive - <a href="https:&#x2F;&#x2F;basarat.gitbook.io&#x2F;typescript&#x2F;" rel="nofollow">https:&#x2F;&#x2F;basarat.gitbook.io&#x2F;typescript&#x2F;</a>
christofosho超过 2 年前
This is not exactly a codebase, but I believe it merits mention in this thread as a great TypeScript learning resource.<p><a href="https:&#x2F;&#x2F;type-level-typescript.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;type-level-typescript.com&#x2F;</a><p>A short online course about intermediate-to-advanced level TypeScript.
评论 #34212765 未加载
评论 #34209096 未加载
tuxracer超过 2 年前
Senior dev here. Recently have some extra time. Happy to offer some code reviews to help you get started. Contact info in bio
mhluongo超过 2 年前
I&#x27;m part of the team that maintains a digital wallet browser extension with a really clean codebase — check it out.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;tallyhowallet&#x2F;extension">https:&#x2F;&#x2F;github.com&#x2F;tallyhowallet&#x2F;extension</a>
评论 #34212591 未加载
austin-cheney超过 2 年前
I am working on a Node&#x2F;browser OS in TypeScript to solve for decentralization&#x2F;peer-to-peer relations if you want to check that out.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;prettydiff&#x2F;share-file-systems">https:&#x2F;&#x2F;github.com&#x2F;prettydiff&#x2F;share-file-systems</a><p>Selling points:<p>* No frameworks and minimal dependencies<p>* The GUI loads in the browser with full state restoration in about 260ms in Chrome.<p>* Full peer to peer file system access<p>* Original WebSocket service support faster than the popular NPM packages (ws, socket.io)<p>* Peer-to-peer end-to-end test automation in the browser that is faster and easier than the big browser test automation applications (puppeteer, playwrite)<p>* I am currently working on a streaming command terminal for the browser for support for for things like vim and irssi. The current experimental terminal only supports basic command input&#x2F;output
zadler超过 2 年前
Zapatos, check out how it does type safe querying. Very impressive work and shows that typescript’s type model has a lot of power.
评论 #34205850 未加载
sebrindom超过 2 年前
You should check out <a href="https:&#x2F;&#x2F;github.com&#x2F;medusajs&#x2F;medusa">https:&#x2F;&#x2F;github.com&#x2F;medusajs&#x2F;medusa</a><p>It’s an open source commerce engine built in Node w. TypeScript. The domain is fairly easy to wrap your head around and the architecture and code quality are often praised.
okhobb超过 2 年前
I&#x27;ve found NestJs to be a very thoughtful application framework. I&#x27;d argue it demonstrates pro-level typescript coding.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;nestjs&#x2F;nest">https:&#x2F;&#x2F;github.com&#x2F;nestjs&#x2F;nest</a>
评论 #34208917 未加载
plondon514超过 2 年前
I definitely wouldn’t say it’s the “best” open source project but my side project <a href="https:&#x2F;&#x2F;github.com&#x2F;codeamigo&#x2F;codeamigo">https:&#x2F;&#x2F;github.com&#x2F;codeamigo&#x2F;codeamigo</a> is a full stack project written in TypeScript and I’m happy to answer any questions you have about it. Full project here: <a href="https:&#x2F;&#x2F;codeamigo.dev" rel="nofollow">https:&#x2F;&#x2F;codeamigo.dev</a>
darkest_ruby超过 2 年前
Fp-ts and io-ts, best examples of what functional programming along with strict type safety can achieve. The source code is a pleasure to read and explore
评论 #34205857 未加载
TowerTall超过 2 年前
This book gave me a good push in the right direction when I was in the same situation as you many years ago. It gave me the tools I needed, and it is still very relevant today. &quot;old but not obsolete&quot; as they say in the terminator movie.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Code_Complete" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Code_Complete</a>
m_a_g超过 2 年前
I want to ask the same question for Python and Go. I&#x27;d love to see some quality OSS using Python or Go and contribute to them if I can.
评论 #34205561 未加载
评论 #34205738 未加载
评论 #34205879 未加载
评论 #34205895 未加载
评论 #34205727 未加载
评论 #34205575 未加载
评论 #34206729 未加载
评论 #34205588 未加载
mburst超过 2 年前
I started working on a project to solve this exact issue <a href="https:&#x2F;&#x2F;github.com&#x2F;mburst&#x2F;protomolecule">https:&#x2F;&#x2F;github.com&#x2F;mburst&#x2F;protomolecule</a>. I haven&#x27;t spent too much time building out other frameworks, but the first framework is React + Express which fits what you&#x27;re looking for
dimitropoulos超过 2 年前
<a href="https:&#x2F;&#x2F;github.com&#x2F;type-challenges&#x2F;type-challenges">https:&#x2F;&#x2F;github.com&#x2F;type-challenges&#x2F;type-challenges</a><p>The type challenges are a great thing to learn with. Admittedly, they&#x27;re a bit intense but it&#x27;s a great way to &quot;expand your awareness&quot;.<p>As a shameless self plug, I&#x27;m participating in a 140-day long project to do them all (complete with video explanations) that just started yesterday, if you wanna follow along: <a href="https:&#x2F;&#x2F;github.com&#x2F;type-challenges&#x2F;type-challenges&#x2F;issues&#x2F;21338">https:&#x2F;&#x2F;github.com&#x2F;type-challenges&#x2F;type-challenges&#x2F;issues&#x2F;21...</a>
nullandvoid超过 2 年前
This could be a good place <a href="https:&#x2F;&#x2F;create.t3.gg" rel="nofollow">https:&#x2F;&#x2F;create.t3.gg</a> (understanding all the code generation would be useful, but also you can deep dive into any one of the type safe libraries).
reducesuffering超过 2 年前
<a href="https:&#x2F;&#x2F;github.com&#x2F;shadcn&#x2F;taxonomy">https:&#x2F;&#x2F;github.com&#x2F;shadcn&#x2F;taxonomy</a> has been very useful for me learning the new Next.js 13 app&#x2F; React Server Components in Typescript.
tuan3w超过 2 年前
Outline: <a href="https:&#x2F;&#x2F;github.com&#x2F;outline&#x2F;outline">https:&#x2F;&#x2F;github.com&#x2F;outline&#x2F;outline</a><p>One of the best code base that I have seen, not just TypeScript.
nomilk超过 2 年前
This is such a valuable question for other languages too. I wonder if there&#x27;s a repo&#x2F;resource listing such projects..<p>I asked a similar question about ruby some time ago, and came across one good recommendation (<a href="https:&#x2F;&#x2F;github.com&#x2F;sharetribe&#x2F;sharetribe">https:&#x2F;&#x2F;github.com&#x2F;sharetribe&#x2F;sharetribe</a>), but would love to have many more. I&#x27;m also self-taught and feel I haven&#x27;t read enough great ruby code!
bunnyfoofoo超过 2 年前
For backend and general typescript knowledge, I’d highly recommend Apollo GraphQL: <a href="https:&#x2F;&#x2F;github.com&#x2F;apollographql&#x2F;apollo-server">https:&#x2F;&#x2F;github.com&#x2F;apollographql&#x2F;apollo-server</a><p>Check out their apollo-server and apollo-client repos. It’s a very useful codebase to be knowledgeable about. This is something you should mention in an interview as a strong positive if the company wants graphql experience.
mirekrusin超过 2 年前
<a href="https:&#x2F;&#x2F;github.com&#x2F;preludejs">https:&#x2F;&#x2F;github.com&#x2F;preludejs</a> for lightweight functional approach.
joshka超过 2 年前
Meta question: I wonder what it would take to splat a code quality metric on every github repo. Obviously this is a combination of subjective and objective factors, but I wonder if doing this in bulk would lead to a general improvement in the industry. Particularly paired with CoPilot and having some sort of feedback into the training this would be pretty neat...
gherkinnn超过 2 年前
How about a different approach. Instead doing more of the same, branch out in to a different language. Elm, for example. [0]<p>Elm specifically will teach you lots on the static types end of things. And it will only take a weekend or so of tinkering to show improvements in your TS life.<p>0 - <a href="https:&#x2F;&#x2F;elm-lang.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;elm-lang.org&#x2F;</a>
tajaheidkebbie超过 2 年前
Lolssss you’ve all been duped… this list will be used to train an ai model, which will then take over your job!!
zhardy超过 2 年前
I have the same question, but for Java. I&#x27;m was front-end developer that now learning back-end.
fatih-erikli超过 2 年前
<a href="https:&#x2F;&#x2F;github.com&#x2F;fatih-erikli&#x2F;table">https:&#x2F;&#x2F;github.com&#x2F;fatih-erikli&#x2F;table</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;fatih-erikli&#x2F;sketchbook">https:&#x2F;&#x2F;github.com&#x2F;fatih-erikli&#x2F;sketchbook</a>
tttcos超过 2 年前
This one is good reading, it&#x27;s the backend of a real-time 2D multiplayer war game: <a href="https:&#x2F;&#x2F;github.com&#x2F;wight-airmash&#x2F;ab-server">https:&#x2F;&#x2F;github.com&#x2F;wight-airmash&#x2F;ab-server</a>
schwartzworld超过 2 年前
It&#x27;s not popular, but I&#x27;m very proud of my ADT library I&#x27;m working on. <a href="https:&#x2F;&#x2F;github.com&#x2F;schwartzworld&#x2F;schtate">https:&#x2F;&#x2F;github.com&#x2F;schwartzworld&#x2F;schtate</a>
td8超过 2 年前
I don&#x27;t know about the quality, but Mattermost is in TS: <a href="https:&#x2F;&#x2F;github.com&#x2F;mattermost&#x2F;mattermost-webapp">https:&#x2F;&#x2F;github.com&#x2F;mattermost&#x2F;mattermost-webapp</a>
ushakov超过 2 年前
tRPC, because you can learn a lot of type-inference tricks using generics and proxies<p><a href="https:&#x2F;&#x2F;github.com&#x2F;trpc&#x2F;trpc">https:&#x2F;&#x2F;github.com&#x2F;trpc&#x2F;trpc</a>
评论 #34205902 未加载
99112000超过 2 年前
You should contribute to open source project that has reviewers, it&#x27;s like doing a test and having it graded by teachers.
评论 #34214454 未加载
Matthias247超过 2 年前
The vscode codebase might be interesting.