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

stack-demo-api

v1.0.2

Published

The API component of stack-demo, an application designed to get you started with the GP stack

Downloads

2

Readme

stack-demo-api

The API component of stack-demo, an application designed to get you started with the GP stack

example ./api/package.json scripts

"scripts": {
  "start": "env-cmd .env babel-node src/index.js --silent",
  "production": "babel --presets latest,stage-2 src --out-dir /build"
}

example ./api/.env file

# GENERAL
APP_ROOT="https://localhost:3000"
API_NAME="stack-demo"
API_PORT=3001
API_ROOT="https://localhost:3001"
API_LOGENTRIES_TOKEN="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

# HTTPS NODE SERVER
# Set to 0 to allow for self-signed TLS certificates during development
NODE_TLS_REJECT_UNAUTHORIZED="0"


# Self-signed certs for development
# To generate a private key and public cert with no passphrase for TLS use:
# > openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 3650 -nodes

TLS_CERT="MIIE7TC...+gozUoKc="
TLS_KEY="MIIJRAIB...DBq1R"


# AMAZON AWS
AWS_ACCESS_KEY_ID="xxxxxxxxxxxxxxxxxxxx"
AWS_SECRET_ACCESS_KEY="xxxxxxxxxxxxxxxxxxxxx"
AWS_ROOT_BUCKET="goodpractice"


# SSO
SSO_COOKIE_SECRET="95tuX...entropy...LWebas"
SSO_IDP_URL="https://accounts.google.com/o/saml2/idp?idpid=C03qui8l3"
SSO_SP_ENTITYID="manage-star-local"
SSO_SP_PRIVATE_KEY="MIIJRA...0Pmf2"


# GP-API
GP_API_URL="http://localhost:8082"
GP_API_PUBLIC="xxxxxxxxxxxxxxxxxxxxxxxx"
GP_API_SECRET="xxxxxxxxxxxxxxxxxxxxxxxx"
GP_API_ADMIN="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"