Introducing Octohint

Read code at GitHub in an intelligent way

Rongjian Zhang
Dec 13, 2017 · 2 min read

GitHub is awesome. I read open source code at GitHub almost every day.

But there is a problem always bothering me. When I want to find references of a variable, or the definition position of a function, I have to use Cmd + f to find all occurrences, and check them one by one. That’s awful, especially when the file has a large number of lines.

The other approach is to git clone the whole repository to local, open it with a powerful editor like VSCode, then it is easier to find references and definition with its powerful intelligent hint.

So, is there an intelligent way to read code at GitHub?

The answer is YES. Octohint did it.

A picture is worth a thousand words

A TypeScript file at GitHub, with Octohint

Wow, no more cmd + f and git clone!


Octohint is a browser extension. If you use Chrome, just click here to download it from Chrome Web Store. Firefox, Opera and Safari users, see here.

You could click to show all references of current variable, and press cmd + click to go to definition of current variable.

Not only GitHub, GitLab and Bitbucket are also supported.

View README at GitHub for more details.


Could it work at my private GitHub/GitLab/Bitbucket?

Yes. See here

Will it upload my private project’s code to your server?

No. All code analysis are performed at your browser. Feel free to use it!


Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade