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

postpipe

v1.0.2

Published

An helper bot for deploying API collections to pipelines

Downloads

312

Readme

Image

API Collection to CI

Overview

This project is a spin-off of this amazing Python Package find the parent repository here. This brilliant SDET Seyi 'nexus' Ajadi conceived the idea to ensure that engineers can focus on testing and creating collections while pipeline config will be handled via a simple Q&A. I merely expanded it to work on more pipelines.

postPipe removes the hassle of manually uploading Postman collections, whether they are from a UID or a saved file, into your CI/CD pipeline on GitHub, GitLab, or Bitbucket. It automates the process of exporting collections, setting up the required YAML pipeline, and making the initial commit, allowing you to focus on development rather than CI configuration.

Prerequisites

To use postPipe, you will need:

  • Postman API Key.
  • GitHub Setup: GitHub Personal Access Token
  • GitLab Setup: GitLab Personal Access Token
  • Bitbucket Setup: Bitbucket App Password

Retrieving Postman API KEY

  • Login to Postman Web or Desktop
  • Click on the desired collection
  • Click on Run
  • Check the Automate runs via CLI radio button
  • Click on Add API Key
  • Click Generate Key
  • Insert a name and click Generate
  • Copy the Postman API Key

Creating and Retrieving Tokens and App Password

GitHub

  • Login to GitHub
  • Click on your profile picture in the upper-right corner, then click Settings.
  • Scroll down and select Developer settings.
  • Click Personal access tokens on the left menu, then click classic tokens or fine grained tokens.
  • Click "Generate new token", name it, set the expiration(or create a never expiring one).
  • Select scopes (like repo and workPipe, you can select all(recommended)). Click Generate token and copy the token.
  • Save the token somewhere secure as once lost, it cannot be retrieved

GitLab

  • Login to GitLab
  • Click on your profile picture in the upper-left corner and select Edit profile or Preference.
  • Click Access tokens on the left side bar
  • Click on Add new token
  • Name it, set expiration, and check all boxes.
  • Save the token somewhere secure as once lost, it cannot be retrieved

Bitbucket

  • Login to Bitbucket
  • Click the Settings icon on the upper-right corner
  • Click Personal Bitbucket Settings
  • Click App passwords
  • Name and create an app password and check all boxes
  • Save the token somewhere secure as once lost, it cannot be retrieved

Environment Variables Setup

Windows

setx GITHUB_TOKEN "your_github_token"
setx POSTMAN_API_KEY "your_postman_api_key"

MacOS/Linux

export GITHUB_TOKEN="your_github_token"
export POSTMAN_API_KEY="your_postman_api_key"

[!NOTE] For GitLab and Bitbucket, replace GITHUB with GITLAB or BITBUCKET to have GITLAB_TOKEN or BITBUCKET_TOKEN

Usage

  • postPipe to run generally whereby the user can select from the three pipelines
  • postPipe --github to run a GitHub setup pipeline.
  • postPipe --gitlab to run a GitLab setup pipeline.
  • postPipe --bitbucket to run a Bitbucket setup pipeline.