1.0.0 • Published 9 months ago

reactjs-github-widget v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

React Github Widget

React Github Widget is a React component that displays a list of GitHub repositories for a given username. It fetches the repository data from the GitHub API and renders it in a customizable format with additional styling changes.

How it Works

The React Github Widget component simplifies the process of integrating GitHub repositories into your React applications. It handles data fetching and rendering of the repository list for you.

Installation

You can install the React Github Widget package using npm or yarn:

npm install react-github-widget

or

yarn add react-github-widget

Usage

To use the React Github Widget component in your application, follow these steps:

  1. Import the component in your file:

    import ReactGithubWidget from 'react-github-widget';
  2. Place the component in your JSX code, passing the username prop with the desired GitHub username:

    <ReactGithubWidget username="your-username" />
  3. Customize the styling of the component using CSS or the className prop.

Example

Here's an example of using React Github Widget in a React component:

import React from 'react';
import ReactGithubWidget from 'react-github-widget';

function App() {
  return (
    <div>
      <h1>My GitHub Repositories</h1>
      <ReactGithubWidget username="your-username" />
    </div>
  );
}

export default App;

Features

  • Fetches the list of GitHub repositories for a given username.
  • Shows the Github User being Fetched username and their Porfile picture.
  • Renders each repository with a box layout, displaying repository size, description, coding language, and a color dot representing the coding language.
  • Provides customization options for styling using CSS or the className prop.

Future Enhancements

  • Pagination support for large repositories.
  • Filter and sort options for the repository list.
  • Additional customization options for the rendered components.
  • Error handling and fallback UI for failed API requests.
  • Unit tests and documentation improvements.
  • Experiment with different CSS styles to further customize the appearance of the rendered repository list.
  • Consider integrating React Github Widget as a component within a larger application, such as a developer portfolio or project showcase page.
  • Explore the GitHub API documentation to discover additional data that can be integrated into the component, such as repository descriptions or star counts.

Contributions and feedback from the community are welcome to enhance the functionality and usability of React Github Widget.

acornacorn-import-assertionsacorn-nodeacorn-walkajvajv-keywordsansi-stylesasn1.jsassertavailable-typed-arraysbalanced-matchbase64-jsbn.jsbrace-expansionbrorandbrowser-packbrowser-resolvebrowserify-aesbrowserify-cipherbrowserify-desbrowserify-rsabrowserify-signbrowserify-zlibbrowserslistbufferbuffer-frombuffer-xorbuiltin-status-codescached-path-relativecall-bindcaniuse-litechalkchrome-trace-eventcipher-baseclone-deepcolor-convertcolor-namecolorettecombine-source-mapcommanderconcat-mapconcat-streamconsole-browserifyconstants-browserifyconvert-source-mapcore-util-iscreate-ecdhcreate-hashcreate-hmaccross-spawncrypto-browserifydash-astdebugdefineddeps-sortdes.jsdetectivediffie-hellmandomain-browserduplexer2electron-to-chromiumellipticenhanced-resolveenvinfoes-module-lexerescaladeescape-string-regexpeslint-scopeesrecurseestraverseeventsevp_bytestokeyfast-deep-equalfast-json-stable-stringifyfast-safe-stringifyfastest-levenshteinfind-upfor-eachfs.realpathfunction-bindgensyncget-assigned-identifiersget-intrinsicglobglob-to-regexpglobalsgopdgraceful-fshashas-flaghas-protohas-symbolshas-tostringtaghash-basehash.jshmac-drbghtmlescapehttps-browserifyieee754import-localinflightinheritsinline-source-mapinsert-module-globalsinterpretis-argumentsis-bufferis-callableis-core-moduleis-generator-functionis-plain-objectis-typed-arrayisarrayisexeisobjectjest-workerjs-tokensjsescjson-parse-even-better-errorsjson-schema-traversejson5jsonparseJSONStreamkind-oflabeled-stream-splicerloader-runnerlocate-pathlodash.memoizelru-cachemd5.jsmerge-streammiller-rabinmime-dbmime-typesminimalistic-assertminimalistic-crypto-utilsminimatchminimistmkdirp-classicmodule-depsmsneo-asyncnode-releasesobject-assignobject-inspectonceos-browserifyp-limitp-locatep-trypakoparentsparse-asn1path-browserifypath-existspath-is-absolutepath-keypath-parsepath-platformpbkdf2picocolorspkg-dirprocessprocess-nextick-argspublic-encryptpunycodeqsquerystring-es3randombytesrandomfillread-only-streamreadable-streamrechoirresolveresolve-cwdresolve-fromripemd160safe-buffersafer-bufferschema-utilssemverserialize-javascriptsha.jsshallow-cloneshasum-objectshebang-commandshebang-regexshell-quoteside-channelsimple-concatsource-mapsource-map-supportstream-browserifystream-combiner2stream-httpstream-splicerstring_decodersubargsupports-colorsupports-preserve-symlinks-flagsyntax-errortapableterserterser-webpack-pluginthroughthrough2timers-browserifyto-fast-propertiestty-browserifytypedarrayumdundeclared-identifiersupdate-browserslist-dburi-jsurlutilutil-deprecatevm-browserifywatchpackwebpackwebpack-mergewebpack-sourceswhichwhich-typed-arraywildcardwrappyxtendyallist
1.0.0

9 months ago