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

create-meh-app

v1.15.4

Published

Quickly scaffold a new Node.js project by creating a GitLab repository, setting up linting/formatting, automatic Kubernetes deployment, local dotenv ⇄ Kubernetes secrets syncing, and more.

Downloads

59

Readme

Create MEH App

Quickly scaffold a new Node.js project by creating a GitLab repository, setting up linting/formatting, automatic Kubernetes deployment, local dotenv ⇄ Kubernetes secrets syncing, and more.

Usage

yarn create meh-app <app-name>

Examples:

yarn create meh-app my-app
yarn create meh-app relative-folder/my-app
yarn create meh-app /root-folder/my-app

Features

  • [x] Creates and clones a GitLab project and repository
  • [x] Initial scaffold commit on master and develop
  • [x] Automatic Kubernetes deployment through GitLab
  • [x] Two-way dotenv/secrets sync through yarn upload-env and yarn download-env
  • [x] Lints & formats .js(x), .ts(x), and .vue files on commit
  • [x] Formats .graphql, .html, .json, .md, .(s)css, and .yml files on commit
  • [x] Optional Airflow DAG(s) (automatic deployment through GitLab)
  • [x] Optional Redis and/or MongoDB database
  • [x] Optional Uptime Robot monitoring

Prerequisites

Recommended: Add export GITLAB_PERSONAL_ACCESS_TOKEN=<token> to your ~/.bash_profile (and/or ~/.zshrc) so you can use yarn download-env and yarn upload-env without configuration.

Functionality

yarn upload-env

Converts any local .env.<test|acc|prod> files to secrets, and applies them remotely through kubectl. Add the --restart or -r flag to restart any web pods afterwards (to pick up your new secrets).

Requires a GITLAB_PERSONAL_ACCESS_TOKEN as environment variable.

yarn download-env

Converts any remote project secrets to local dotenv files, and stores them as .env.<test|acc|prod>. Add the --force or -f flag to overwrite any pre-existing .env.<test|acc|prod> files.

Requires a GITLAB_PERSONAL_ACCESS_TOKEN as environment variable.

pre-commit git hook

  • Lints (and formats), and attempts to autofix your staged (.js(x), .ts(x), and .vue) files through ESLint (extending Airbnb and Prettier)
  • Formats and attempts to autoformat your staged (.graphql, .html, .json, .md, .(s)css, and .yml) files through Prettier

pre-push git hook

  • Runs yarn test

Airflow DAGs

If you opted in for Airflow DAG(s) during setup, the following will be added to your project:

  • /airflow/<dagName>.py (containing the interval and description you entered)
  • "start:<dagName>" script in package.json (the Airflow pod will run yarn start:<dagName>)
  • Automatic deployment of any /airflow/*.py files, when pushing to the master branch

Recommended Visual Studio Code settings

Extensions

settings.json

To open these settings, press: ⌘-Shift-P → "Preferences: Open Settings (JSON)"

{
  "editor.codeActionsOnSave": { "source.fixAll": true },
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.formatOnSave": true,
  "editor.tabSize": 2,
  "eslint.options": { "ignorePath": ".gitignore" },
  "files.insertFinalNewline": true,
  "files.trimTrailingWhitespace": true,
  "prettier.disableLanguages": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
  "prettier.ignorePath": ".gitignore"
}

Note: We use prettier.disableLanguages to disable Prettier from handling JS(X) and TS(X) files, because ESLint already formats these (using Prettier under the hood).

Roadmap

  • [ ] Dotenv ⇄ secrets sync without a cluster key
  • [ ] DAG OTAP