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

noauth-github-activityfeed

v1.0.0

Published

retrieves a Github activity feed -- using Github API without authentication!

Downloads

3

Readme

noauth-github-activityfeed

retrieves a Github activity feed -- using Github API without authentication!

background

This module is written to be used in the browser using browserify. It uses Github API without authentication.

usage

var githubFeed = require('noauth-github-activityfeed')

githubFeed('ninabreznik', function (err, feed) {
  console.log(feed)
})

This will output an array of objects:

[
  {
    "type": "PushEvent",
    "repo": "https://api.github.com/repos/ninabreznik/noauth-github-activityfeed",
    "details": {
      "push_id": 1940532575,
      "size": 1,
      "distinct_size": 1,
      "ref": "refs/heads/master",
      "head": "289c00d1abe5d9b52b308e2ae164056738abcc86",
      "before": "029f76a7140d0b96b8c64822a9e23885309e1d0f",
      "commits": [
        {
          "sha": "289c00d1abe5d9b52b308e2ae164056738abcc86",
          "author": {
            "email": "[email protected]",
            "name": "ninabreznik"
          },
          "message": "Add github activityfeed using Github API",
          "distinct": true,
          "url": "https://api.github.com/repos/ninabreznik/noauth-github-activityfeed/commits/289c00d1abe5d9b52b308e2ae164056738abcc86"
        }
      ]
    },
    "time": "2017-08-23T22:48:28Z"
  },
  {
    "type": "CreateEvent",
    "repo": "https://api.github.com/repos/ninabreznik/noauth-github-activityfeed",
    "details": {
      "ref": "master",
      "ref_type": "branch",
      "master_branch": "master",
      "description": "retrieves a Github activity feed -- using Github API without authentication! ",
      "pusher_type": "user"
    },
    "time": "2017-08-23T22:09:53Z"
  },
  {
    "type": "IssuesEvent",
    "repo": "https://api.github.com/repos/ethereum/browser-solidity",
    "details": {
      "action": "opened",
      "issue": {
        "url": "https://api.github.com/repos/ethereum/browser-solidity/issues/706",
        "repository_url": "https://api.github.com/repos/ethereum/browser-solidity",
        "labels_url": "https://api.github.com/repos/ethereum/browser-solidity/issues/706/labels{/name}",
        "comments_url": "https://api.github.com/repos/ethereum/browser-solidity/issues/706/comments",
        "events_url": "https://api.github.com/repos/ethereum/browser-solidity/issues/706/events",
        "html_url": "https://github.com/ethereum/browser-solidity/issues/706",
        "id": 251386221,
        "number": 706,
        "title": "Update colors/UI elements in Remix + remove style-guide from Browser-solidity",
        "user": {
          "login": "ninabreznik",
          "id": 1076427,
          "avatar_url": "https://avatars1.githubusercontent.com/u/1076427?v=4",
          "gravatar_id": "",
          "url": "https://api.github.com/users/ninabreznik",
          "html_url": "https://github.com/ninabreznik",
          "followers_url": "https://api.github.com/users/ninabreznik/followers",
          "following_url": "https://api.github.com/users/ninabreznik/following{/other_user}",
          "gists_url": "https://api.github.com/users/ninabreznik/gists{/gist_id}",
          "starred_url": "https://api.github.com/users/ninabreznik/starred{/owner}{/repo}",
          "subscriptions_url": "https://api.github.com/users/ninabreznik/subscriptions",
          "organizations_url": "https://api.github.com/users/ninabreznik/orgs",
          "repos_url": "https://api.github.com/users/ninabreznik/repos",
          "events_url": "https://api.github.com/users/ninabreznik/events{/privacy}",
          "received_events_url": "https://api.github.com/users/ninabreznik/received_events",
          "type": "User",
          "site_admin": false
        },
        "labels": [],
        "state": "open",
        "locked": false,
        "assignee": null,
        "assignees": [],
        "milestone": null,
        "comments": 0,
        "created_at": "2017-08-19T00:16:07Z",
        "updated_at": "2017-08-19T00:16:07Z",
        "closed_at": null,
        "body": ""
      }
    },
    "time": "2017-08-19T00:16:07Z"
  }
  ...

api

var githubFeed = require('noauth-github-activityfeed')

example

Clone the repository and run npm start to see the example.js or see the demo page

noauth-github-activityfeed({ username }, cb(err, tweets))

Specify a username of the Github user whose activity feed (events) you want to see. The callback cb will contain an optional error as its first parameter, and an array with the user's latest activity as its second parameter.

installation

$ npm i noauth-github-activityfeed

ever-shifting ground

As Github API changes, things will break. If you notice that noauth-github-activityfeed isn't working, please file an issue. Better yet, file a fixing pull request.

license

MIT