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

qevlar

v1.0.14

Published

GraphQL Security Testing Library

Downloads

25

Readme

Qevlar logo

qevlar.dev

Qevlar is a dependency-free security testing library for GraphQL APIs that runs directly from your CLI. It assesses vulnerabilities to a multitude of DoS attacks, malicious SQL/NoSQL injections, and more.

Test Overview

Select test from test menu:

Easily choose which tests to run, right from your CLI, featuring built-in type checking.

Test Menu

Query depth limiting test example:

Tests each depth level up to QUERY_DEPTH_LIMIT.

Depth Limit Test Snippet

SQL injection test example:

Tests vulnerability to 100s of malicous SQL injection payloads.

SQL Test Snippet

Rate limiting test example:

Tests from INITIAL_RATE up to QUERY_RATE_LIMIT at each INCREMENT.

Rate Limit Test Snippet

Installation

npm install qevlar

Setup

  1. Run start command:
npm run qevlar
  1. To manually customize config, edit the relevant fields in qevlarConfig.json located in node_modules/qevlar. It's initialized as:
{
  "ANY_TOP_LEVEL_FIELD_ID": "",
  "API_URL": "",
  "BATCH_SIZE": 10,
  "CIRCULAR_REF_FIELD": "",
  "INCREMENT": 10,
  "INITIAL_RATE": 10,
  "NO_SQL": false,
  "QUERY_DEPTH_LIMIT": 5,
  "QUERY_RATE_LIMIT": 100,
  "SQL": false,
  "SQL_COLUMN_NAME": "",
  "SQL_TABLE_NAME": "",
  "SUB_FIELD": "id",
  "TIME_WINDOW": 1000,
  "TOP_LEVEL_FIELD": ""
}
  1. To generate qevlarConfig.json automatically, select 0 in your CLI and submit your API's URL when prompted. This will introspect your Graph QL API, aquiring field names, then automatically update qevlarConfig.json.
  2. After, select the test you want to run. Results will be displayed in your CLI!

Contributing

Contributions, issues and feature requests are welcome!

Branch management

Please submit any pull requests to the dev branch. All changes will be reviewed before merging by OSLabs and prior contributors.

Bugs and suggestions

For help with existing issues, please read our GitHub issues page. If you cannot find support in the issues page, please file a report on the same issues page.

Suggestions and other feedback are more than welcome.

Future Direction

  • Perform query cost analysis, allowing addition of cost limiting tests to the library
  • Package security solutions to these attacks in their own library
  • Introspection Tests
  • Jest/End-to-end testing
  • GUI standalone application to run tests from
  • Authentication/Authorization

Meet the team 🧑‍🚀

Joshua McDaniel GitHub | LinkedIn | Email Conor Bell GitHub | LinkedIn | Email Hyung Noh GitHub | LinkedIn | Email Landon Osteen GitHub | LinkedIn | Email We're just a couple devs who love open-source solutions.

GitHub stars are welcomed, but really we're happy just building things people want to use.

Check Qevlar out on LinkedIn here.

License

This project is ISC licensed.