New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-github-activity-feed

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-github-activity-feed

Turn-key Github activity feed React component. Great for portfolio sites of sporadic open-source developers.

latest
Source
npmnpm
Version
3.0.3
Version published
Weekly downloads
5
25%
Maintainers
1
Weekly downloads
 
Created
Source

react-github-activity-feed

GitHub license npm downloads npm version npm type definitions Storybook GitHub issues GitHub Workflow Status

Turn-key Github activity feed React component. Great for portfolio sites of sporadic open-source developers.

demo animation

Storybook Demo & Docs available here

Most of the credit goes to @caseyscarborough for his work on github-activity-feed

Install

yarn add react-github-activity-feed
# or
npm i --save react-github-activity-feed

QuickStart

import { GithubActivityFeed } from "react-github-activity-feed";
import "react-github-activity-feed/light.css"
//  or "react-github-activity-feed/dark.css"

const MyGithubActivity = () => (
    <GithubActivityFeed
        user="callumjhays"
        repo="react-github-activity-feed"
        limit={20}
    />
);

Requires react >= v16.8 for functional components & hooks. If you need older version support please post a quick github issue and I'll get around to it.

Why

Like react-github-activity, I was inspired by github-activity-feed but wanted a simpler way to include it in a react app.

I also wanted to publish my first npm react component package and try out Rollup and hosting storybook demos on github.io.

Unlike react-github-activity, rather than starting from scratch (maybe because he wanted support for private events), I just "react-ified" the original library. I also wanted to try avoiding littering the global JS namespace, so I manually copied and edited the source-code.

Limitations

  • Limited by github REST api request rate (currently 60/hour). After this, the component will display an error.
  • Very bloated (added 160kB) to my next.js production build. Unsure why this

Keywords

react

FAQs

Package last updated on 10 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts