Giter Site home page Giter Site logo

techgaun / active-forks Goto Github PK

View Code? Open in Web Editor NEW
2.3K 30.0 294.0 157 KB

Find active github forks of a repo https://git.io/vSnrC

Home Page: https://techgaun.github.io/active-forks/index.html

HTML 48.86% JavaScript 51.14%
github api forks hacktoberfest

active-forks's Introduction

active-forks

Find the active github forks of a project

NOTE: Looking for maintainer(s) to keep this project going

While I want to be able to spend some time on this, I've had a lot of changes in life in general and thus can not spend as much time on this repo. If you are interested in taking over to maintain this project, please file an issue.

This project allows you to find the most active forks of a repository.

Find Active Fork

As Bookmarklet

If you would like to use this tool as a bookmarklet, you can do so by saving the following javascript code as the bookmarklet. Since Github doesn't allow javascript in its markdown, you can add it manually. Hit Ctrl+D to create a new bookmark and paste the javascript below into the URL or "Location" entry (you may have to click "More" to see the URL field). Any time you're on a Github repo you can click the bookmarklet and it'll bring up the Active Forks of that repo.

javascript:!function(){if(title=document.title,title)if(thing=title.split(/(GitHub\s-\s)*([^:]*)/)[2],thing){var t="https://techgaun.github.io/active-forks/index.html#"+thing;window.open(t)}else window.alert("Not%20a%20valid%20GitHub%20page")}();

Screenshot

active-forks's People

Contributors

henrygab avatar itchylol742 avatar kyleking avatar marcosellys avatar matthewmerrill avatar mesaugat avatar michalsvec avatar mickge avatar morrowsend avatar np-trivial avatar rabinshrestha avatar sandipsubedi avatar schambers avatar syed-umair avatar techgaun avatar zvizvi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

active-forks's Issues

lexicographic sort on last update is misordering forks

The lexicographic sort of last update of a fork is putting 2 years, 3 years, 4 years, ... 8 years, before 9 months. Months should come before years. "a year" needs to come before "2 years" etc.

Either the sorting rule attached to the column needs to parse the duration before making comparisons, or a hidden value should be used at the sort key.

Show how many commits ahead a fork is from the original repo and view them

Part of the definition of "active fork" is that it has commits past the original repo, so I think it is important (it certainly is to me) to see how many commits ahead a branch is. It would be cool if I can see the commit messages that the new repo has that the old one doesn't.

This repo/library is not being maintained, but I can't even import the library because it relies on a dependancy that is not in the android runtime (anymore at least), so all I want is to find a fork that solved that issue. Many of them just forked it without adding any new commits, and it is several years old (which I don't care about, so long as it works), but I can't tell if anyone fixed that issue just by looking at the last commit. There are 377 forks, so it is not feasible to look through each one to see if it has any commits that solve that issue.

Maybe there should even be a condition for "new commit message contains phrase"... so I can search for "dependancy" or "JUnit" (the missing dependancy), etc.

Sort by latest fork (as default)

I think the main point of the project (as title says) is to show the Active Forks.
However, when we enter the site and type repo-url , it doesn't give the results sorted by the "latest push" (which is the sign of "activeness").

Would be nice if you defaulted that.

Access to fetch at ... from origin 'https://techgaun.github.io' has been blocked by CORS policy

I tried input liudonghua123/webhek_puzzle in https://techgaun.github.io/active-forks/index.html and then I got the following errors in my console.

Access to fetch at 'https://api.github.com/repos/liudonghua123/webhek_puzzle/forks?sort=stargazers&per_page=100' from origin 'https://techgaun.github.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Failed to load resource: net::ERR_FAILED

The final url is https://techgaun.github.io/active-forks/index.html#liudonghua123/webhek_puzzle.

Bookmarklet in README is outdated / broken

The javascript bookmarklet present on the README seems to be a little outdated. GitHub prepends the repo name with "GitHub - ", causing the new window to search for a repo name such as "GitHub - techgaun/active-forks".
The code snippet appears to also cause the original window to overwrite all page contents with a single "[object Window]".

I adjusted the snippet to this, and find it working as intended in current versions of Firefox and Chrome:

javascript:(function(){ title=document.title;if(title){  thing=title.split(/(GitHub\s-\s)*([^:]*)/)[2];var newPage = 'https://techgaun.github.io/active-forks/index.html#'+thing;window.open(newPage)}})()

edit - some times Repo page titles do not include the "GitHub - " prefix, regex was updated to account for this

Github apiv4 GraphQL

Hey,
Not sure if this is issue, maybe question\suggestion. Looks like github will add GraphQL support to their api. Using it would solve probably all current issues, you could make one query and get all required data, maybe pagination would work, maybe sorting works. Haven't looked much in what is supported, but I think this should be reviewed, maybe it's possible to migrate.

https://developer.github.com/v4/

Cannot find info for repo name containing ".git"

Trying to find info for KirkMcDonald/kirkmcdonald.github.io:

  • https://techgaun.github.io/active-forks/index.html#KirkMcDonald/kirkmcdonald.github.io

What the API link should be:

  • https://api.github.com/repos/KirkMcDonald/kirkmcdonald.github.io/forks?sort=stargazers&per_page=100

What the website actually reached out to:

  • https://api.github.com/repos/KirkMcDonald/kirkmcdonaldhub.io/forks?sort=stargazers&per_page=100

image

Feature request: Show the main repository as well

It would be nice to see the main repository in the table for easy comparison of the displayed metrics. Otherwise it's easy to forget how many stars, and how recently the main repository was updated to compare it to the other forks.

Direct links to the checked repo

Would be nice to be able to send direct links to people such as https://techgaun.github.io/active-forks/#someuser/somerepo and that would load data for that particular repo

Integrity check exception when using Adblock

Just a note for adblock users.
The adblock version employs a beta feature to cache popular libraries, in my case jquery 3.1.1 minified slim version got cached and instead the minified version is served to the browser resulting in an invalid integrity check.
To circumvent this either disabled adblock for the page, disable the beta feature or use my work which temporarily disabled the check (https://github.com/KilianB/active-forks).
A pull request doesn't make sense since this is a bug in adblock and we should not lower security because of them (I created a support ticket in hope that they sort our their caching policy).

I made a bookmarklet for this

I use this tool periodically but it was always a hassle copying and pasting the repo into this page, so I wrote a bookmarklet for it. Go ahead and throw it on your readme. Just it Ctrl+D to create a new bookmark and paste the javascript below into the URL or "Location" entry. Any time you're on a github repo you can click the bookmarklet and it'll bring up the activeforks of that repo.

javascript:var title=document.title;if(title){ thing=title.split(':');var newPage = 'https://techgaun.github.io/active-forks/index.html#'+thing[0];open(newPage ,'targetname')}

share to social (twitter, fb) & copy to clipboard features

when no repo is being looked at:

Find active forks of a github repo: https://techgaun.github.io/active-forks/index.html

when repo is being looked at:

Active forks of <source_github_url> : https://techgaun.github.io/active-forks/index.html/#techgaun/github-dorks

Fix the URL generation once repo is input

the url generated once the repo is input is incorrect. It changes to https://techgaun.github.io/#techgaun/github-dorks but it should have been https://techgaun.github.io/active-forks/#techgaun/github-dorks

Note the missing active-forks

This was recently added bug.

[Feature] Show most recent release for each fork

Releases are available in some forks that include changes introduced in the forks in question.
It would be very useful if in the fork report table there was a link to the latest release available for each of these, if available, for example by also including the date on which they were released (sortable in the table).

Show / Filters changes to README.md

While exploring forks, I usually find a common element for the most interesting ones, the README.md file has changed.
This is kind of logical: if the user has changed the README.md it's probably because he wants to give a new purpose to the repo.

Do you think it would possible or worth to add README changed as a filter field?

Last push inaccurate

Hello,

The "last push" column is always inaccurate while it's the most relevant information we need to find active forks.

Thanks

Number of open issues

Number of open issues on forks can give an idea of whats going on. Would be nice to have it in the column. Looks like we have more columns and maybe there's a better way to lay it out too but for this particular issue, hopefully we can show number of open issues somewhere (maybe by the repo that says 3 open issues for example)

[Feature request] Last commit

Hello,

As pointed out in #32 (comment), the result from Active Forks shows last push date, regardless of the last commit date.

Therefore, I would like to suggest adding the last commit date to the result.

As stated, the branch also matters, therefore I would suggest actually adding 3 1 columns :

  • the last commit date from default branch
  • the last commit date from any branch (if more recent)
  • the branch name of said commit

EDIT : that would require a lot of API calls for each fork repository, so it's not doable.

Thanks

Show if issues are enabled

Hi! this project is a great idea.
It would be good to know if issues are enabled for the project, so you know you can post questions/bugs/etc
Thanks!

wrong last push date - github api returns wrong data

see https://techgaun.github.io/active-forks/#https://github.com/ileben/ShivaVG

actual

Link Owner Name Branch Stars Forks Open Issues Size Last Push
Link Ecognize ShivaVG master 12 6 10 1113 19 days ago

expected

last push was 2016-07-28 = 5 years ago, per https://github.com/Ecognize/ShivaVG/branches/all

shields: GitHub last commit

{
  "data": {
    "repository": {
      "createdAt": "2012-09-27T04:53:51Z",
      "pushedAt": "2021-10-17T20:07:27Z",
      "updatedAt": "2021-10-17T11:25:22Z",
      "refs": {
        "nodes": [
          {
            "target": {
              "authoredDate": "2016-07-28T00:15:03Z",
              "committedDate": "2016-07-28T00:15:03Z"
            }
          }
        ]
      }
    }
  }
}
{
  repository(name: "ShivaVG", owner: "Ecognize") {
    createdAt
    pushedAt
    updatedAt
    refs(last: 1, refPrefix: "refs/heads/") {
      nodes {
        target {
          ... on Commit {
            authoredDate
            committedDate
          }
        }
      }
    }
  }
}

also deep forks are not listed โ†’ #31

Cleanup non issue

When my account was compromised a spam issue was created in this repo. I sincerely apologize. Cleaning up such issues via script.

Fetch more than 30 forks

Forks from GitHub are paged 30 at a time. It would be nice to fetch them all for large projects (many forks).

Unable to get active forks of forked projects

So I wanted to see who forked a project of a user who had previously forked the project.

WHY?
because I am using this tool to check if a project has a fork that is being updated and the user hasn't merged the updates to the main project.

You can give it a try with a project I forked from a forked project. From your tool I can't see myself as a fork from the main project but when I try to see active forks of the forked project I forked I get an error.

Main Project: https://github.com/ernw/nmap-parse-output
Forked Project I forked: https://github.com/JakeSamu/nmap-parse-output
My Fork: https://github.com/iAmG-r00t/nmap-parse-output

The weird thing is when I updated the repo, the active repo site says the Forked Project is the one that is active see below screenshot while I can't see my fork from the site ๐Ÿ˜„

image

image

image

[feature suggestion] useful condition for downloads

I often use active-forks to try locating a fork with usable download
the current solution is mostly switch to 100 and ctrl+click to open all of the links in tabs, looking for their releases. it is often disappointing though..

2022-11-04_080737

2022-11-04_081026

=-=-=

this might be useful in the conditions feature,
might be useful to query the repos.

  • has a releases

  • release has "non default artifacts" (i.e. actual files to download)

  • has actions

  • actions has "cli" (for example), with at least one artifact.

Doesn't work at all

I could understand you don't have time/wish to support this repo but what is that?

- (CGFloat)width {
    dispatch_async(dispatch_get_main_queue(), ^{
        return self.frame.size.width;
    });
}

Function must return its value immediately but you call dispatch_async which of course doesn't work.

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.