TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Trends – A GitHub trending PWA

95 pointsby jack_hanfordalmost 7 years ago
Over the past few weeks I&#x27;ve been working on a small application to view trending repos on GitHub. I built the PWA[1] with React, Next.js and GraphQL .. but what&#x27;s interesting is the application is only using React server side, meaning the client side javascript is only a few lines code adding some event listeners and registering a service worker for offline capability. This helped me achieve a perfect google chrome performance audit<p>I learned a ton working on it and would love to talk about it if anyone has any questions!<p>Application Link: <a href="https:&#x2F;&#x2F;trends.now.sh" rel="nofollow">https:&#x2F;&#x2F;trends.now.sh</a><p>Source code on Github: <a href="https:&#x2F;&#x2F;github.com&#x2F;hanford&#x2F;trends" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hanford&#x2F;trends</a><p>[1]: <a href="https:&#x2F;&#x2F;developers.google.com&#x2F;web&#x2F;progressive-web-apps&#x2F;" rel="nofollow">https:&#x2F;&#x2F;developers.google.com&#x2F;web&#x2F;progressive-web-apps&#x2F;</a>

14 comments

yodonalmost 7 years ago
I&#x27;m super intrigued by the client-side&#x2F;server-side rendering question. When I discovered single page apps I thought I&#x27;d seen the future - servers were just things that hosted web services, and all the presentation was a bundled, minimized blob served up by a static CDN. So simple, so clean, such clear separation of concerns. But now I&#x27;m seeing reports of faster first page rendering with React server than React client, and here I&#x27;m seeing a clearly very smart person articulating a completely different class of benefit of server-side rendering. Clearly I shouldn&#x27;t be walking away from old style server side rendering so casually. My question is how do you think about that choice, now that we have the freedom to go either direction?
评论 #17604018 未加载
评论 #17606328 未加载
vimslayeralmost 7 years ago
The page load speed is seriously impressive, congrats!<p>There&#x27;s something weird going on with the styling of the dropdowns, though: <a href="https:&#x2F;&#x2F;i.imgur.com&#x2F;WQ3m52X.gif" rel="nofollow">https:&#x2F;&#x2F;i.imgur.com&#x2F;WQ3m52X.gif</a><p>I&#x27;m on Windows 10 &amp; Chrome
评论 #17605140 未加载
评论 #17605552 未加载
评论 #17605397 未加载
评论 #17605335 未加载
david-cakoalmost 7 years ago
Related question:<p>Does anyone know of a solution to the jank on firefox (perhaps others) when you have a hover scale effect? I figure animating all dimensions and text size instead of scale may do the trick, but that&#x27;s a pain.<p>I&#x27;d even be okay with indefinitely deferring the re-render at the end of the animation if possible.
ransom1538almost 7 years ago
Horrifying to see my stupid side (joke) project manipulated the star rankings. <a href="https:&#x2F;&#x2F;www.gitstarred.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.gitstarred.com&#x2F;</a>. I guess it doesn&#x27;t take many stars to do that.
thrilleratplayalmost 7 years ago
I like to check the trending repos once a day, but Github keeps moving the link to it, this is fantastic. While I am sure others will be asking to add more languages, could there be a feature to check multiple languages at once with the language displayed with the repo? It is annoying on Github to have to check both Javascript and Typescript for similar trending projects.<p>A simple vertical list would also be nice, but that is personal preference.
tutfbhufalmost 7 years ago
I did the same but with a PureScript frontend <a href="https:&#x2F;&#x2F;madnight.github.io&#x2F;grendy&#x2F;" rel="nofollow">https:&#x2F;&#x2F;madnight.github.io&#x2F;grendy&#x2F;</a> and a Haskell backend <a href="https:&#x2F;&#x2F;github.com&#x2F;madnight&#x2F;grendel" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;madnight&#x2F;grendel</a>
roryisokalmost 7 years ago
No text on IE mobile.<p><a href="https:&#x2F;&#x2F;i.imgur.com&#x2F;Naqr8Xg.jpg" rel="nofollow">https:&#x2F;&#x2F;i.imgur.com&#x2F;Naqr8Xg.jpg</a><p>I know nobody supports IE mobile but I thought id report it. It&#x27;s a shame because I was looking for exactly this app, and it seems to work otherwise
评论 #17609842 未加载
评论 #17607037 未加载
romdevalmost 7 years ago
Changing the width or zooming in and out changes the number of columns (nice!), but the max seems to be 4. Is that a hard limit? Seems like a responsive UI should respect wider screens in landscape. Nice work, btw.
评论 #17605659 未加载
Mithoriumalmost 7 years ago
Never used next, looks interesting. So with this setup, the browser doesn&#x27;t do any work, all pages are loaded as if they were static, and rendered server side?
评论 #17604767 未加载
askaboutitalmost 7 years ago
This site is lightning fast. Just how it should be!
butzalmost 7 years ago
Select options are white on white background in Firefox. And it would be nicer, if changing language and time wouldn&#x27;t reload whole page.
评论 #17605271 未加载
KaoruAoiShihoalmost 7 years ago
Cool. Just curious if this is supposed to be just an exercise or does it have information that&#x27;s not on github&#x27;s own trending page?
评论 #17605283 未加载
codesectionsalmost 7 years ago
I notice that it lets you sort by language. Does the underlying data let you get at trends in relative language popularity?
评论 #17603961 未加载
HNNeweralmost 7 years ago
Nice work, but I would put more effort in supporting Firefox rather than Chrome.