npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

octotree

v1.6.1

Published

Display GitHub code in tree format

Downloads

11

Readme

Octotree

Browser extensions (Chrome, Firefox, Safari and Opera) to display GitHub code in tree format. Useful for developers who frequently read source in GitHub and do not want to download or checkout too many repositories. Features:

  • Easy-to-navigate code tree like IDEs
  • Fast browsing with pjax
  • Customizable hotkey
  • Support private repositories (see instructions)
  • Support GitHub Enterprise (Chrome and Opera only, see instructions)

Install on Chrome and Firefox

  • Download and install Octotree from Chrome Web Store or Mozilla Add-ons Store
  • Navigate to any GitHub repository (or just refresh this page as an example)
  • The code tree should show on the left-hand side of the screen

Install on Safari and Opera

You can install the prebuilt extensions located in the dist folder. For security reason, only download Octotree from this location.

  • Safari: drag safari.safariextz to the browser and follow the instructions
  • Opera: drag opera.nex to the browser and follow the instructions

GitHub access token

Octotree uses GitHub API to retrieve repository metadata. By default, it makes unauthenticated requests to the GitHub API. However, there are two situations when requests must be authenticated:

When that happens, Octotree will ask for your GitHub personal access token. If you don't already have one, create one, then copy and paste it into the textbox. Note that the minimal scopes that should be granted are public_repo and repo (if you need access to private repositories).

Alternatively, you can manually enter or update the token by following these steps:

  • Navigate to any GitHub repository
  • Open the Chrome (or Safari, Firefox) developer console
  • Execute the following line:
localStorage.setItem('octotree.github_access_token', 'REPLACE WITH TOKEN')

Note: if you use GitHub Enterprise, each site will need its own access token. Therefore, Octotree stores access token on a per-site basis.

GitHub Enterprise

By default, Octotree only works on github.com. To support GitHub Enterprise on Chrome or Opera, you must grant Octotoree sufficient permissions. Follow these steps to do so:

  • Navigate to any GitHub repository on github.com
  • Open Octotree's setting panel
  • Fill in the GitHub Enterprise URLs textbox, one site URL per line
  • Click Save and accept any permission prompt
  • Navigate to your GitHub Enterprise site (or refresh if you're already in one)
  • You might be asked to create an access token

Changelog

v1.6

  • Update all dependencies to latest version
  • Allow navigating to commit trees https://github.com/buunguyen/octotree/issues/157
  • Support keyboard navigation https://github.com/buunguyen/octotree/issues/158
  • Fix bug handling back tick in paths https://github.com/buunguyen/octotree/issues/160

v1.5.3

  • Fix bug https://github.com/buunguyen/octotree/pull/149
  • Fix bug https://github.com/buunguyen/octotree/issues/151
  • Fix bug https://github.com/buunguyen/octotree/issues/155

v1.5.2

  • Fix bug https://github.com/buunguyen/octotree/issues/147

v1.5

  • Option to show in non-code pages
  • Option to load tree only when sidebar is visible
  • Option to configure tab size
  • Bug fixes

v1.4.1

  • New header to match new GitHub design
  • Bug fixes

v1.4

  • Support GitHub enterprise
  • Change default hotkey (cmd+b for Safari and cmd+shift+s for all other browsers)
  • Some other minor changes

v1.3

  • Setting panel allowing:
  • Changing access token
  • Changing hotkeys
  • Changing sidebar default visibility
  • Changing folder collapsing option
  • Sidebar appears better in large monitors
  • More responsive in big repositories
  • And bug fixes

v1.2

  • Hide sidebar by default (upon many user requests)
  • Hotkey (cmd+b, ctrl+b) to toggle sidebar
  • Sidebar is now resizable
  • Support rendering submodules
  • Reflect GitHub selection to Octotree
  • New sidebar header and progress indicator
  • And bug fixes

v1.1

  • New UI that blends better with GitHub!
  • Hide Octotree on non-code pages
  • When asking for token, show more detailed message and not fly out automatically
  • Extend pjax timeout to work better with big files
  • Sanitize file and folder names before displaying
  • Fix error when a branch name contains slashes
  • Gulp script to build for Chrome, Firefox and Safari
  • And some other minor changes

Credit

  • Many thanks to all contributors who submit pull requests, report bugs and suggest ideas
  • Extension icon by pstadler