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 🙏

© 2024 – Pkg Stats / Ryan Hefner

q-client

v0.3.3

Published

API library for the Aplo Q insurance quoting API.

Downloads

10

Readme

QClient.js

Node.js API wrapper for Aplo's Q API

IMPORTANT: The current 0.3.0 release includes support for a single API endpoint. It is not production ready. The maintenance of this package is now being run by an individual, not a company so contributions would be appreciated.

What is Q?

Q, not to be confused with the Node.js promise library, is the internal insurance quoting API the company formerly known as Aplo created to get quotes. Q provides endpoints for generating "raw" insurance quotes, personalized quotes including ACA/Obamacare subsidies, and the ability to check for active insurance agent licenses.

To use Q you'll need to sign up for an account and generate an API Client ID and Secret Token.

Installation

Installation is simple through npm: npm install qclient

Usage

npm install q-client --save

Once installed you can get insurance quotes using the getSubsidy method.

Available Endpoints

"Raw" Quotes

getSubsidy will return an array of quotes as well as the subsidy available to you through the Affordable Care act.

var QClient = require('q-client');
var quotes  = new QClient(clientID, secretToken);

// Get quotes
var demographics = {
  zip_code: 60181,
  age: 30,
  household_income: 20000,
  tobacco_use: false 
}
quotes.getSubsidy('il', 60181, demographics, function(err, response) {
  if (err) {
    // handle error
  } else {
    // you get a JSON response (see docs: https://q.aplo.me/docs/)
  }
});

Subsidy Estimates

The getSubsidy method will return a subsidy property but it will also return an array of insurance plance. Plans for a method that only returns the subsidy are in the works.

License Verification

Plans on hold.

Contributing and Development

Follow the existing code style and the standard GitHub contribution steps. 2-space soft tabs and comment your code are the golden rules.

Branching Strategy

  • master - The latest release. This is what you'll get when you NPM install
  • release - A testing branch
  • develop - This is where new features are developed

Testing

You'll get extra points if you contribute to our test suite. We really take notice of that.

License

Q is licensed under the MIT license. You may have unlimited use of it for personal or commercial purposes, free of charge, with no strings attached. You can change it and share it or keep those changes to yourself. You could make money off this code. You can basically do anything you want so long as its legal and doesn't hurt anyone. Here's the catch: We assume no liability if you blow yourself up. That's all.

The MIT License (MIT)

Copyright (c) 2015 - 2016 Bill Patrianakos
Copyright (c) 2015 Aplo, LLC (https://q.aplo.me/docs)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.