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

marco-cloud-wallet

v0.0.14

Published

Marco Cloud Wallet services API

Readme

Marco Cloud Wallet

Environment Variables Configuration

View required variables on .env.example

Secure Build

Create KMS Keys to encrypt sensitive files and variables and configure it to be available at build by cloudbuild.yaml

gcloud kms keyrings create finboot-marco-prod  --location=global --project=finboot-kms-resources
gcloud kms keys create finboot-marco-cloud-wallet-cloudbuild-secrets --location=global --keyring=finboot-marco-prod --purpose=encryption --project=finboot-kms-resources
gcloud kms keys add-iam-policy-binding finboot-marco-cloud-wallet-cloudbuild-secrets --location=global --keyring=finboot-marco-prod --member=serviceAccount:[email protected] --role=roles/cloudkms.cryptoKeyEncrypterDecrypter --project=finboot-kms-resources

Encrypt NPM Token

gcloud kms encrypt \
  --plaintext-file=.npmtoken \
  --ciphertext-file=.npmtoken-prod.enc \
  --location=global \
  --keyring=finboot-marco-prod \
  --key=finboot-marco-cloud-wallet-cloudbuild-secrets \
  --project=finboot-kms-resources

Build project

npm install yarn -g
npm run presetup
npm run setup
npm start build

Docker Image Deployment

Build Docker Image

export NPM_TOKEN=$(cat .npmtoken)

sudo docker run --name test-db -e MYSQL_DATABASE=mysql-db -e MYSQL_USER=user -e MYSQL_PASSWORD=password -e MYSQL_ROOT_PASSWORD=toor -p 3306:3306 -d mysql:5.7
sudo docker build --network host --build-arg NPM_TOKEN=$NPM_TOKEN -t finboot/marco-cloud-wallet .
sudo docker tag finboot/marco-cloud-wallet eu.gcr.io/marco-prod/marco-cloud-wallet:latest
sudo gcloud docker -- push eu.gcr.io/marco-prod/marco-cloud-wallet:latest
sudo docker rm -f test-db

Migrations

Generate migrations from src

ts-node ./node_modules/typeorm/cli.js migrations:generate

Note: ./node_modules/typeorm/cli.js is the project local binary of typeorm.

Run generated migrations

npm start db.migrate

Revert database

npm start db.revert

Drop database

npm start db.drop

Seeding Database

npm start db.seed

Development

The server address will be displayed to you as http://0.0.0.0:8080.

cp .env.example .env

Start DB with Docker:

docker-compose up -d

Start Application:

npm start serve

Tests

  • Run the unit tests using npm start test.unit.
  • Run the integration tests using npm start test.integration.
  • Run the e2e tests using npm start test.e2e.

Docker Launch

Create .env file from .env.example and configure it.

cp .env.example .env

Build Docker Image

docker build -t finboot/marco-resource-deployer .

Stat App with Docker

docker run --name explorer-app --env-file .env -d finboot/marco-resource-deployer