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

nstar-login

v1.0.4

Published

Login to the NStar website https://nstar.com

Readme

#NStar Login Login to the NStar website https://nstar.com using node.js

Design

NStar uses a 2-step login process. First this module submits the login form with the username and password. Then

Login Form

To login issue a post request to the url https://nstar.com/NSTAR/Default.asp. The following fields must be submitted with the post request


{
    __VIEWSTATE: "/wEPDwUKMTQxMDk5NzkzNg9kFgJmD2QWAgIBD2QWAgIDD2QWAgIBD2QWAgIBD2QWBGYPFgIeB1Zpc2libGVoFgYCAQ8WAh8AaGQCAw8WAh8AaGQCBQ8WAh8AaGQCCA8WAh4Fc3R5bGUFfXdpZHRoOjBweDtwYWRkaW5nOjA7aGVpZ2h0OjEwMCU7YmFja2dyb3VuZC1jb2xvcjojQzREM0UzO2JvcmRlci10b3A6MXB4IHNvbGlkICM0NDQ7Ym9yZGVyLWJvdHRvbToxcHggc29saWQgIzQ0NDtkaXNwbGF5Om5vbmU7ZBgCBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WAQUiY3RsMDAkTWFpbiRMb2dpbkJveCRjYkxCUmVtZW1iZXJNZQUSY3RsMDAkTWFpbiRtdkxvZ2luDw9kZmQeVNtSkk/ZK/B4mgmxqXRe/KuPLg==",
    __EVENTVALIDATION: "/wEWCAKT+InMBALAgpxNAvLyy8gHAqfWyUACgsTihAICm5274gECnZD4ngUCtJXpsg+nzIR8FBaarsVtHKxb3YI2bPdBEQ==",
    __SubmitToken: "foo",
    ctl00$Main$LoginBox$UserName: "usernameHere",
    ctl00$Main$LoginBox$Password: "passwordHere",
    ctl00$Main$LoginBox$btLogin: ""
}

The __VIEWSTATE and __EVENTVALIDATION values can be fetched from the page located at https://secure8.i-doxs.net/NSTAR/Default.aspx

On a successful login post, the NStar server will return a 302 redirect status code and set-cookie header. There should be a header Location: /NSTAR/Secure/SecretQuestion.aspx

Secret Question

After the login is successful, NStar presents a page which asks for a response to a secret question. To pass the secret question test, issue a post request to the url https://secure8.i-doxs.net/NSTAR/Secure/SecretQuestion.aspx.

After answering the secret question correctly, the NStar server will return a 302 redirect status code and set-cookie header. There should be a header Location: /NSTAR/Secure/Home.aspx

To submit the secret question, the following fields must be set


{
    __VIEWSTATEFIELDCOUNT: "7",
    __VIEWSTATE: "foo...",
    __VIEWSTATE1: "foo...",
    __VIEWSTATE2: "foo...",
    __VIEWSTATE3: "foo...",
    __VIEWSTATE4: "foo...",
    __VIEWSTATE5: "foo...",
    __VIEWSTATE6: "foo...",
    __VIEWSTATE7: "foo...",
    __EVENTVALIDATION: "/wEWLAKbwpWiCgLY1OD0CwLAgpxNAvLyy8gHAqWxrtkEAuH",
    "ctl00$Main$txtAnswer": "secretAnswerHere",
    "ctl00$Main$btnSubmit": "anyValueButThisKeyMustBeSet"
}