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.

Github1s – One second to read GitHub code with VS Code

1692 pointsby tardismechanicover 4 years ago

67 comments

lxeover 4 years ago
There are software projects that get posted once in a while on HN that are on a completely different level of quality, whether it's product, UX, or tech. This is one of those posts.
评论 #26085309 未加载
评论 #26093260 未加载
评论 #26086372 未加载
评论 #26085599 未加载
评论 #26086661 未加载
Gehinnnover 4 years ago
If you like the text editor that powers VS Code (Monaco) and would like to use it for writing Markdown on github, check out my foss chrome&#x2F;Firefox browser extension [1]! It replaces all text areas with a Monaco editor.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;hediet&#x2F;browser-ext-github-monaco" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hediet&#x2F;browser-ext-github-monaco</a>
评论 #26087741 未加载
评论 #26086573 未加载
评论 #26094890 未加载
评论 #26088581 未加载
评论 #26087054 未加载
评论 #26086588 未加载
Jarredover 4 years ago
Feature request: make CMD+P support searching files in the repository. Currently, it shows &quot;No matching results&quot;.<p>To implement this quickly client-side, one easy way would be to use jsdelivr&#x27;s data api. For example, to get the directory tree for Ruby on Rails:<p><a href="https:&#x2F;&#x2F;data.jsdelivr.com&#x2F;v1&#x2F;package&#x2F;gh&#x2F;rails&#x2F;rails@06e8d5c29fa9cce83cd99cefed2d135094584acd&#x2F;flat" rel="nofollow">https:&#x2F;&#x2F;data.jsdelivr.com&#x2F;v1&#x2F;package&#x2F;gh&#x2F;rails&#x2F;rails@06e8d5c2...</a>
评论 #26087162 未加载
评论 #26087290 未加载
Garbageover 4 years ago
This is brilliant.<p>CodeSandbox also has this. For example, you can import this project in CodeSandbox using link <a href="https:&#x2F;&#x2F;githubbox.com&#x2F;conwnet&#x2F;github1s" rel="nofollow">https:&#x2F;&#x2F;githubbox.com&#x2F;conwnet&#x2F;github1s</a> (adding box between github and .com)<p><a href="https:&#x2F;&#x2F;codesandbox.io&#x2F;docs&#x2F;importing" rel="nofollow">https:&#x2F;&#x2F;codesandbox.io&#x2F;docs&#x2F;importing</a>
评论 #26086824 未加载
wrboyceover 4 years ago
This is really cool, and has inspired the latest function to be added to my zshrc:<p><pre><code> vscodetmp () { local repo=$1 [[ ! $repo =~ &quot;https:&#x2F;&#x2F;*&quot; ]] &amp;&amp; repo=&quot;https:&#x2F;&#x2F;github.com&#x2F;${repo}&quot; local temp=&quot;$(mktemp -d)&quot; git clone &quot;${repo}&quot; &quot;${temp}&quot; code --wait -n &quot;${temp}&quot; rm -rf &quot;${temp}&quot; }</code></pre>
评论 #26089484 未加载
评论 #26088751 未加载
评论 #26088190 未加载
Jarredover 4 years ago
It’s very impressive how fast this loads. Every time I’ve integrated Monaco (web-based Visual Studio Code), it takes multiple seconds to render. GitHub Codespaces, the official way to open GitHub repos in a web-based Visual Studio Code instance, loads probably 20x slower than this.
评论 #26085536 未加载
评论 #26085666 未加载
评论 #26085952 未加载
mtlynchover 4 years ago
This is neat, but search seems to be broken. I loaded one of my repositories and ran global searches for strings I know exist and they came up with no results. After I opened the file in the web editor, the results would appear in subsequent searches.
评论 #26085359 未加载
评论 #26084892 未加载
kaladin_1over 4 years ago
Cudos! You have motivated more than a few today. This is big push to really do one thing very well.<p>This by far ticks the box for the best project I&#x27;ve seen this year.<p>Perfect UI&#x2F;UX clone. Search functionality is very close to desktop VS Code.<p>Even mind-blowing is the loading speed. At this age and time where some blogs take 2mins to load.
评论 #26087185 未加载
miki123211over 4 years ago
This is amazing for accessibility. Github&#x27;s own interface is kinda meh with screen readers. This is much better.
vemvover 4 years ago
I enjoyed replicating just now an analogously fast workflow that shallow-clones a git repo and then opens it in my GUI IDE <i>from the terminal</i> without any other clicking around being necessary.<p>So I can `pbpaste | git_clone_and_open_in_ide` and be done.
lostintangentover 4 years ago
If folks are interested in browsing (and editing) GitHub repos in VS Code without cloning, the GistPad extension might be worth checking out: <a href="https:&#x2F;&#x2F;marketplace.visualstudio.com&#x2F;items?itemName=vsls-contrib.gistfs#repositories" rel="nofollow">https:&#x2F;&#x2F;marketplace.visualstudio.com&#x2F;items?itemName=vsls-con...</a>.<p>It’s not necessarily as convenient as a web client, but it lets you work from your existing&#x2F;customized editor setup (e.g. theme, keybindings), and it supports editing, branches, commenting, etc.
评论 #26086431 未加载
akmittalover 4 years ago
Github has Codespaces in early release (<a href="https:&#x2F;&#x2F;github.com&#x2F;codespaces&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;codespaces&#x2F;</a>), but much faster
评论 #26086578 未加载
评论 #26086353 未加载
blackoilover 4 years ago
Brilliant!! Github should make it first class. Most times, I don&#x27;t need full power of codespace, something leaner(free) just to browse code will be awesome.
babyover 4 years ago
That’s it. Black magic. That’s what all of us wanted, that’s what we thought would happen with advances in technology, it just happened!
reustleover 4 years ago
This is fabulous. I remember something similar 2 or 3 years ago where you could &quot;log in with github&quot; and create commits using VS Code in the browser. Does anyone remember the name? Is it still alive? Iirc it was a very simple name like &quot;code.org&quot; (but not that).
评论 #26085022 未加载
评论 #26085206 未加载
DangerousPieover 4 years ago
This made me think that VS Code should really just have a &quot;View Github Repository&quot; option where you paste the URL and it opens something like this, except in the normal desktop app. If you want to be elaborate you could even have support for making changes.
评论 #26089993 未加载
评论 #26096796 未加载
zaptheimpalerover 4 years ago
How does this magic work? Does VS Code run completely in the browser?
评论 #26085445 未加载
评论 #26086142 未加载
评论 #26085432 未加载
评论 #26085441 未加载
评论 #26087027 未加载
评论 #26085444 未加载
评论 #26085439 未加载
ibraheemdevover 4 years ago
This is absolutely amazing! I frequently reference Github repositories while developing so this helps me a lot. Thanks to whoever made this!<p>(side note: I wonder if someone could&#x2F;has made a similar tool for vim; that way I can stay in the terminal)
评论 #26102161 未加载
haskellandchillover 4 years ago
Oh VS is just JavaScript, but how exactly does this work? I couldn&#x27;t tell by reading the code except that it does have src&#x2F;vs that has what looks like a subset of the Microsoft code files in it.
metahostover 4 years ago
Could not get it to work with private repos even after using an API token, is it supported?
评论 #26091499 未加载
评论 #26086856 未加载
jeswinover 4 years ago
Very useful, thanks. This will also be handy as a browser plugin - like click on an icon to switch to vscode view.
评论 #26084943 未加载
samzerover 4 years ago
Would it be possible to view personal private respository code with this?<p>I&#x27;m not sure what it would take to make that happen.
评论 #26085964 未加载
stevetoddover 4 years ago
Holy smokes—worked fast and smooth on my phone too! Well done!
sergiotapiaover 4 years ago
Gamechanger my man! This is so good it warrants a browser extension to add a button to all repos to View in VSCode.<p>Kivubg ut
评论 #26085475 未加载
abaloneover 4 years ago
This is cool and I hope they don’t run into copyright issues with the domain, which they probably will. Trademark lawyers basically have to go after violations otherwise they risk losing control of the mark. Maybe GitHub could be nice and license it to the project for free.
评论 #26089662 未加载
chiiover 4 years ago
it&#x27;d be interesting to have language servers also working (i wonder if it&#x27;s possible to run language servers as local service workers on the browser), so that you can also navigate via symbols.
jonas_kgomoover 4 years ago
This is similar to the idea of Codespaces from Github <a href="https:&#x2F;&#x2F;github.com&#x2F;features&#x2F;codespaces" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;features&#x2F;codespaces</a>
drusepthover 4 years ago
I&#x27;m confused how to use this. Do I need VS Code installed and&#x2F;or do I need to open the URL through VS Code? The readme doesn&#x27;t seem to offer much guidance, and any time I visit any 1s repo (even the example <a href="https:&#x2F;&#x2F;github1s.com&#x2F;microsoft&#x2F;vscode" rel="nofollow">https:&#x2F;&#x2F;github1s.com&#x2F;microsoft&#x2F;vscode</a> link in the readme), I just see a blank, white page.<p>People are talking about loading pages on mobile, so it doesn&#x27;t seem like VSC is needed...
评论 #26087040 未加载
评论 #26087031 未加载
评论 #26086946 未加载
bilekasover 4 years ago
I was a little bit confused reading what this project was..<p>It&#x27;s early and was thinking it was some VSCode extension thinking : &quot;Okay, kinda quirky but big deal?&quot;<p>Then it hit me.. This is outstanding!
vemvover 4 years ago
github1s.com doesn&#x27;t seem a very fortunate domain name as it&#x27;s obviously based on github.com - it&#x27;s well plausible that it will be taken down sooner or later.
评论 #26086413 未加载
altiluniumover 4 years ago
I&#x27;m trying to reverse engineer how it works..<p>It is a static webpage, hosted on Github Pages <a href="https:&#x2F;&#x2F;conwnet.github.io&#x2F;github1s" rel="nofollow">https:&#x2F;&#x2F;conwnet.github.io&#x2F;github1s</a><p>And, here is the static webpage source-code: <a href="https:&#x2F;&#x2F;github.com&#x2F;conwnet&#x2F;github1s&#x2F;blob&#x2F;gh-pages&#x2F;404.html" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;conwnet&#x2F;github1s&#x2F;blob&#x2F;gh-pages&#x2F;404.html</a>
评论 #26130848 未加载
S0undover 4 years ago
This link showed up on &#x2F;r&#x2F;programming yesterday. Everyone is freaking out that the domain is registered from China.<p><a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;programming&#x2F;comments&#x2F;lfpngg&#x2F;explore_github_source_code_right_on_the_web&#x2F;gmodnwk&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;programming&#x2F;comments&#x2F;lfpngg&#x2F;explore...</a><p>hackernews doesn&#x27;t seems to care, which is ironic in many levels.
评论 #26086757 未加载
mbar84over 4 years ago
With the leverage we&#x27;re all getting out of the Monaco editor component, can somebody give that team at Microsoft a Touring award or something?
spark3kover 4 years ago
This is brilliant. Should be a core part of GitHub
评论 #26088872 未加载
nicomeemesover 4 years ago
This is awesome, would be great if there was a chrome extension or addon for Octotree, so you could click a button to open the repo.
bachmeierover 4 years ago
While this is a move in the right direction, Gitlab has had a similar feature for years, and it&#x27;s not read-only.
评论 #26085631 未加载
CreepGinover 4 years ago
Can private repos be supported in any way?
评论 #26085348 未加载
naqushabover 4 years ago
What a nice feature. Octotree[1] is a Chrome extension which does that fantastically. It also supports Enterprise Github in Pro version.<p>[1] <a href="https:&#x2F;&#x2F;www.octotree.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.octotree.io&#x2F;</a>
aflagover 4 years ago
Really nice! Is there any way to enable light mode? I find dark mode hard to read.
AltruisticGapHNover 4 years ago
How does this compare to Octotree browser extension in terms of main uses?
spionover 4 years ago
Really cool concept, however language service and file search don&#x27;t quite work (even for TypeScript projects) due to lazy loading of files and directories.<p>Still, its almost there! Can&#x27;t wait!
ChrisArchitectover 4 years ago
this is great&#x2F;neat but took me awhile to understand what it was from the name. One second implies time of reading or...I dunno it&#x27;s just confusing&#x2F;unclear.
ghego1over 4 years ago
This is incredibly cool!!! I don&#x27;t know to what extent this is affiliated to GitHub, but if it is not it should be definitely bought&#x2F;incorporated
lifeplusplusover 4 years ago
would be cool if you could fork the repo and make pr
soheilover 4 years ago
It&#x27;d be nice if it could lazily clone the repo in the background so the search functionality would work as more files are indexed.
breckover 4 years ago
Thanks, I love it.<p>Also goes to show how GitHub&#x27;s simple but well thought out url structure continues to pay dividends in unexpected ways.
评论 #26085526 未加载
softmarshmallowover 4 years ago
how about <a href="https:&#x2F;&#x2F;github.surf&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.surf&#x2F;</a>. ? This supports also CLI &quot;surf .&quot; and browser extension by default.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;bridgedxyz&#x2F;github.surf" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bridgedxyz&#x2F;github.surf</a>
softmarshmallowover 4 years ago
I found github.surf<p>github.surf this works same as github1s, but i like it more for no reason lol.<p>e.g. github.surf&#x2F;matchabot&#x2F;matcha-bot
jculover 4 years ago
Amazing. It even works great on my phone. This is one of the best things I&#x27;ve seen on hacker news.
the_arunover 4 years ago
Pretty cool, but I would assume this depends on internet speed for left nav items? no?
lynxaegonover 4 years ago
Thanks for this one! I really needed something like this to explore github repos.
ddtaylorover 4 years ago
That domain name is probably going to run them in trouble though =&#x2F;
offtop5over 4 years ago
I&#x27;d love to see this hosted internally and used for code reviews.<p>Very cool project !
qwertywert_over 4 years ago
Is it safe to just give this an OAuth token for private repo access?
estover 4 years ago
This would break some github&#x27;s geo-blocking repos.
funman7over 4 years ago
Yes I need this in my life, for Bitbucket.
therealmarvover 4 years ago
Search broken. So what is the benefit?
wly_cdgrover 4 years ago
That was more than one second. Fail.
_pmf_over 4 years ago
Why not make GitHub fast? Why do I have to use an editor embedding a web browser instead of using a web browser?
funman7over 4 years ago
Yes I need this for bitbucket.
rahulpadalkarover 4 years ago
This is insane!!!!!!!!!!!
geniiumover 4 years ago
Really nice product
aviparsover 4 years ago
not sure the benefit, but it does work well
whitecrow90over 4 years ago
Fantastic &lt;3
jack_rimintonover 4 years ago
Brilliant!
qbasic_foreverover 4 years ago
I wouldn&#x27;t get too attached to this tool, folks. Github lawyers are not going to be happy with this domain directly infringing on their copyright and are almost certainly at this very minute sending cease and desists. Even if they like the tool and want to see it succeed, the domain is a bit of a fishing and spam risk for them. Best case Github tells them to knock it off and suggests a different domain they use.<p>Gitpod has been around for a few years and offers the exact same service but on a more distinct gitpod.io domain: <a href="https:&#x2F;&#x2F;www.gitpod.io&#x2F;docs&#x2F;getting-started&#x2F;#prefixed-url" rel="nofollow">https:&#x2F;&#x2F;www.gitpod.io&#x2F;docs&#x2F;getting-started&#x2F;#prefixed-url</a>
cjohanssonover 4 years ago
Ok one second is an exaggeration and I can&#x27;t scroll to read in my iPhone, maybe Github10sdesktop would be more realistic. But cool anyway
评论 #26085139 未加载
评论 #26085084 未加载