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 🙏

© 2026 – Pkg Stats / Ryan Hefner

gsjs

v2.1.2

Published

GradeSource scraper

Readme

npm npm npm

gsjs (GradeSource web scraper)

gsjs is a web scraper that scrapes all the course information as well as scores and rank for a specific user from GradeSource website.

Getting Started

Prerequisites

You need to have node.js and npm to install gsjs. Check your node.js version by running

node -v

Installing

If you want to use this package in your own project, install the package from npm by running

npm install gsjs

Or if you want to have the source code, just clone this repo.

Usage

Two simple steps to use:

  1. Import the package in your javascript file
const gsjs = require('gsjs');
  1. Call the createCourse() method by passing an url and a secret code provided by instructor. The method returns a promise, so do whatever you want with the course object inside then(). For example,
gsjs.createCourse('http://www.gradesource.com/reports/823/28732/index.html', 7414).then(function (course) {
  console.log('***** course object: *****');
  console.log(course);
});

will output the following

***** course object: *****
Course {
  url: 'http://www.gradesource.com/reports/823/28732/index.html',
  secret: 7414,
  name: 'CSE 120',
  instructor: 'Professor Joseph Pasquale',
  last_update: 'Fri Mar 31 2017 05:43:01 GMT-0700',
  categories:
   [ { name: 'Programming', props: [Object] },
     { name: 'Midterm', props: [Object] },
     { name: 'Final', props: [Object] } ],
  scores:
   [ { category: 'Programming', rank: 34, points: 29, score: '96.67%' },
     { category: 'Midterm', rank: 44, points: 21, score: '87.50%' },
     { category: 'Final', rank: 5, points: 52, score: '86.67%' } ],
  overallRank: 9,
  overallScore: '89.92%'
}

Testing

This project uses ava for testing. If you are in the gsjs directory, simply run

npm test

or

ava

to run all the tests.

Documentation

TODO

Todos

  • [ ] Documentation
  • [ ] Error checking
  • [ ] Improve data output

Contributing

All issues are welcome to tackle on and please send me a pull request if possible.

License

This project is licensed under the MIT License - see the LICENSE.md file for details