GithubHelp home page GithubHelp logo

github-user-search's Introduction

GitHub User Search

This is a Next.js app that uses Apollo to query GitHub's GraphQL API to search for users and organizations. See it in action here.

Authentication

Queries to the GitHub API are currently handled with a Personal Access Token with the minimum permissions required to access information about users and organizations returned from search queries.

App Structure

While Next.js has some very useful server-side generation abilities, this app does not use them. Queries to the GitHub API are instead made client-side. The primary reason for this approach is that there are 72,800,732 possible results (as of writing), and I do not wish to statically render that many pages. Nor do I wish to have a Next.js app running on a server to render pages as requested, as this app is meant to be deployed to a static host like Netlify.

User Details

A user's details can be viewed at /user/:username, which is linked to from the individual search results.

Contribution history queries cannot exceed a year's worth of time, so only the latest year is currently displayed. I may update this to simply query every possible year separately, but it's not so terribly important right now.

Aesthetics

Design inspired by each of these three Dribbble shots.

github-user-search's People

Contributors

tvanantwerp avatar

Watchers

 avatar  avatar

github-user-search's Issues

Debounce the search function

The API is queried with every keystroke to the search box. Debouncing it such that it waits for the user to stop typing first will reduce unnecessary API calls considerably.

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.