Giter Club home page Giter Club logo

octotree's Introduction

Octotree

Browser extensions (Chrome, Firefox and Safari) 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
  • Support private repositories (require personal access token)

Install on Chrome

  • Download and install Octotree from the Chrome store
  • Navigate to any GitHub project (or just refresh this page as an example)
  • The code tree should show as follows:

When extension is active

Install on Firefox and Safari

I'm in the process of submitting the extensions to Mozilla and Safari stores. Meanwhile, you can install the prebuilt extensions located in the dist folder.

  • Firefox: drag octotree.xpi to the browser and follow the instructions
  • Safari: drag octotree.safariextz to the browser and follow the instructions

GitHub API Rate Limit

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 shows the screen below to ask for your GitHub personal access token. If you don't already have one, create one, then copy and paste it into the textbox.

Enter personal access token

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

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

Contribution

There are several improvements that can be made to Octotree. Contribution is very welcome.

  • Hide sidebar when navigating to non-code pages like Issues, PRs...
  • Make the width of the sidebar resizable.
  • Allow docking sidebar to either the left or right side.
  • Allow users to enter access token any time.
  • Synchronize (two-way) between sidebar selection and GitHub selection.
  • Show progress indicator while the code tree or a file is being loaded (with Pjax). (Showing spinner in the toggle button?)

Credit

  • Icon by pstadler
  • Thanks to many people submitting pull requests, reporting bugs and suggesting ideas here and on HN

octotree's People

Contributors

buunguyen avatar letunglam avatar spittie avatar k2nr avatar behnam avatar isbadawi avatar vakata avatar jsutlovic avatar luegg avatar

Watchers

James Cloos avatar said avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.