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

@underundre/undev

v0.1.0

Published

Reusable dev scripts, configs, and templates for Node.js/TypeScript projects

Readme

@underundre/undev

Переиспользуемые dev-скрипты, конфиги и шаблоны для Node.js/TypeScript проектов.

English version

Что внутри

configs/                    # Шарируемые конфиги инструментов
  eslint.config.js          #   ESLint flat config (строгий TS)
  prettier.config.js        #   Prettier правила
  tsconfig.base.json        #   TypeScript strict база
  commitlint.config.js      #   Conventional Commits
  .editorconfig             #   Настройки IDE

scripts/                    # Bash-скрипты (параметризованы через env vars)
  common.sh                 #   Общие утилиты (цвета, логирование, confirm, telegram)
  deploy/
    deploy.sh               #   Zero-downtime SSH деплой
    rollback.sh             #   Откат на предыдущий деплой
    logs.sh                 #   Tail логов на проде (pm2/docker/nginx)
  db/
    backup.sh               #   Бэкап PostgreSQL с ротацией
    restore.sh              #   Восстановление PostgreSQL из дампа
  server/
    setup-vps.sh            #   Настройка свежего VPS (юзер, ssh, ufw, node, pm2)
    setup-ssl.sh            #   Let's Encrypt + автообновление
    health-check.sh         #   Проверка диска/памяти/CPU/сервисов
  docker/
    cleanup.sh              #   Очистка images, containers, volumes
  dev/
    setup.sh                #   Клон → установка → .env → миграции → билд
  monitoring/
    security-audit.sh       #   npm audit + сканирование секретов + устаревшие зависимости

templates/                  # Скопировать в свой проект
  .github/workflows/ci.yml #   GitHub Actions CI пайплайн
  .env.example              #   Шаблон переменных окружения
  docker-compose.dev.yml    #   Dev БД (Postgres + Redis)
  package-scripts.jsonc     #   Рекомендуемые npm scripts

Использование: Конфиги

Установить как dev-зависимость:

npm i -D @underundre/undev

ESLint

// eslint.config.js
import baseConfig from "@underundre/undev/eslint";
export default [...baseConfig];

TypeScript

// tsconfig.json
{
  "extends": "@underundre/undev/tsconfig",
  "compilerOptions": {
    "outDir": "./dist",
    "rootDir": "./src"
  },
  "include": ["src"]
}

Prettier

// package.json
{ "prettier": "@underundre/undev/prettier" }

Commitlint

// commitlint.config.js
export default { extends: ["@underundre/undev/commitlint"] };

Использование: Скрипты

Скопировать нужные скрипты в проект:

# Скопировать скрипты деплоя
cp -r node_modules/@underundre/undev/scripts/deploy ./scripts/deploy
cp node_modules/@underundre/undev/scripts/common.sh ./scripts/

# Или по одному
cp node_modules/@underundre/undev/scripts/db/backup.sh ./scripts/

Все скрипты читают конфиг из переменных окружения. Задать в .env.production или передать инлайн:

[email protected] REMOTE_APP_DIR=/home/deploy/app ./scripts/deploy/deploy.sh

Переменные окружения

| Переменная | Используется | По умолчанию | |-----------|-------------|-------------| | PROD_SSH_HOST | deploy, rollback, logs | обязательно | | REMOTE_APP_DIR | deploy, rollback | обязательно | | POSTGRES_HOST | db/backup, db/restore | localhost | | POSTGRES_PORT | db/backup, db/restore | 5432 | | POSTGRES_USER | db/backup, db/restore | postgres | | POSTGRES_DB | db/backup, db/restore | обязательно | | BACKUP_DIR | db/backup | ./backups | | RETENTION_DAYS | db/backup | 14 | | TELEGRAM_BOT_TOKEN | все (опц. уведомления) | — | | TELEGRAM_CHAT_ID | все (опц. уведомления) | — |

Использование: Шаблоны

# CI workflow
cp node_modules/@underundre/undev/templates/.github/workflows/ci.yml .github/workflows/

# Шаблон окружения
cp node_modules/@underundre/undev/templates/.env.example .

# Dev Docker Compose
cp node_modules/@underundre/undev/templates/docker-compose.dev.yml .

npm Scripts

См. templates/package-scripts.jsonc. Ключевые:

{
  "validate": "npm run lint && npm run typecheck && npm run format:check",
  "validate:fix": "npm run lint:fix && npm run typecheck && npm run format"
}

Лицензия

MIT