Giter Site home page Giter Site logo

did-you-mean-for-github's Introduction


Availible on Firefox Add-Ons Availible on chrome web store

"Did you mean...?" for GitHub

"Did you mean...?" for GitHub is a browser extension that suggests repositories that have a similar name when you encounter a 404 error.

Demo:

Did you mean... list on GitHub 404 page

When trying to access "https://github.com/facebook/reakt", GitHub gives a 404 error. You probably meant to go to "https://github.com/facebook/react" so this extension suggests you the correct repository.

Installation

"Pin for GitHub" is availible through the Firefox Add-On Platform and chrome web store. You can also install this extension by downloading the source from GitHub and loading the unpacked extension through "about:debugging" as a "Temporary Add-On".

How it works

The extension uses three different techniques to try to find the repository you were looking for:

  1. It has a build-in list of over 800 popular GitHub repositories and tries to find similar names.
  2. It has a build-in list of over 200 popular GitHub accounts and tries to see if the username might be spelled incorrectly
  3. It has a build-in english dictionary. It splits the name of the repository (e.g. if it is camelCase or dash-case) and searches for similar english words

The extension calculates the Damerau-Levenshtein distance to find similarity between strings.

Optionally, you can provide a GitHub API token. In this case, the extension will query the GitHub GraphQL API for the possible repository names generated above to filter out repositories that don't exist.

Contributing

Please fork this repository and create a new pull request to contribute to it.

If you notice any errors, please create a new issue on GitHub.

License

Licensed under the MIT License

did-you-mean-for-github's People

Contributors

vantezzen avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

rasmus-z

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.