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

qlik-sense-authenticate

v0.2.0

Published

Qlik Sense helper package that simplifies the authentication communication

Readme

Under development!

This package will simplify (or at least this is the idea) of authenticating against Qlik Sense. If the authentication is successful the result will be session id which can be used is the request that will follow.

At the end this package will support 4 authentication methods:

  • Certificates
  • Header
  • JWT
  • Windows/Form

At the moment only Windows/Form is available (and need more testing. Please do not use for production!)

Installation

npm install --save qlik-sense-authenticate

Once the installation is complete the package can be included in the project:

const qAuth = require('qlik-sense-authenticate');

Authentication Methods

Windows/Form usage


    let config = {
        type: 'win',
        props: {
            url: 'https://my-qlik-sense-server',
            proxy: '(optional) if not the default Virtual Proxy is used',
            username: 'domain\\username OR .\\username',
            password: 'my-password',
            header: '(optional) it will default to X-Qlik-Session'
        }
    }
    
    let sessionId = await qAuth.login(config)
    // if all is ok:
    // { error: false, message: 11111111-2222-3333-4444-555555555555 }

Do not expose your username and password! Please use at least environment variables.

The returned session can be passed as a Cookie on any other request which communicates with Qlik Sense

Session re-use

On each successful authentication the package will store the session id in session.txt file in the current directory.

Also on each use, the package will read this file (if exists) and using the session will check against Qlik Sense if the session is still active. If its not - will authenticate and generate new one (using the config object)

Logout

The package provide logout method which will literally log out the current user (based on the session id) from Qlik Sense (all live sessions on any device will be terminated)

It's a bit radical approach but this is the only way I've found (without using the Proxy API which usually listen on port 4243 which is a bit funny. In the future will try and add a check if the Proxy is reachable and delete the specific session)

let logout = await qAuth.logout(config)