![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
github-contributions-counter
Advanced tools
A simple Javascript API that will return the public github contributions history for a user based on a universal function
A simple Javascript API that will return the public Github contributions history for a user based on a universal function
This was not designed in affiliation with Github, Getting contribution history is not part of their API as of the creation of this package. It essentially scrapes information from a Github profile. All within the browser!
Via NPM
npm i github-contributions-counter
Via Yarn
yarn add github-contributions-counter
import { getGithubContributions } from 'github-contributions-counter'
// can use a commonjs require as well
/**
* Can also be used with await
*/
getGithubContributions({
username: 'github_username',
config: { partition: 'current' }
}).then((r) => {
console.log(r)
})
Parameter | Description | Status | Type |
---|---|---|---|
username | A valid github username. Organization names are not currently supported | Required | string |
config | A optional configuration object named config that accepts an optional partition type, an optional proxy and optional logs . | Optional | Object |
An optional config
object can be added as a second parameter to customize behavior.
Key | Description | Default Value | Type |
---|---|---|---|
proxy | A string proxy url. Since data is being scraped from within the browser a proxy is required to handle CORS errors. If no proxy is required a fallback proxy is used. However it is intentionally rate limited to 50 calls every 30 seconds. For this reason, the usage of a custom proxy is recommended. You can follow this example to quickly standup your own CORS proxy. | null | string |
partition | A string partition to upon which to categorize data. - "year" : Group contributions by year. - "all" : The Sum of all contributions for that user since account creation. - "current" : The Current default contributions displayed on the user's Github Profile (the past 365 days). | "all" | string |
logs | A string log level that can be specified for log levels. - "error: : Throw an Error whenever a failure is detected - "warning" : Log warnings in the console but do not throw an error - "none" : Do not throw any errors or log anything to the console | "none" | string |
Contributions are welcomed and encouraged! Refer to Contribution Guidelines
git clone git@github.com:SammyRobensParadise/github-contributions-counter.git
npm install
# or
yarn install
Develop 💻
Build using rollup.js
npm run build
# or
yarn run build
Author: Sammy Robens-Paradise. sammy.world
FAQs
A simple Javascript API that will return the public github contributions history for a user based on a universal function
The npm package github-contributions-counter receives a total of 79 weekly downloads. As such, github-contributions-counter popularity was classified as not popular.
We found that github-contributions-counter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.