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

infra-watch

v1.0.9

Published

![Node.js](https://img.shields.io/badge/Node.js-v16+-green) ![License](https://img.shields.io/badge/license-MIT-blue) ![Version](https://img.shields.io/badge/version-1.0.0-brightgreen)

Downloads

18

Readme

Infra-Watch

Node.js License Version

Infra-Watch é um agente de monitoramento CLI robusto e fácil de usar, projetado para gerenciar e monitorar servidores de forma eficiente. Com ele, você pode autenticar, gerenciar IDs de servidor, iniciar serviços e configurar inicialização automática em diferentes sistemas operacionais.


✨ Funcionalidades

  • Autenticação: Faça login e logout no servidor com comandos simples.
  • Gerenciamento de Servidor: Obtenha, defina, atualize ou remova IDs de servidor.
  • Monitoramento: Verifique o status do agente em execução.
  • Instalação Automática: Configure o agente para iniciar automaticamente no boot do sistema (Linux, macOS, Windows).
  • Desinstalação: Remova facilmente o agente da inicialização automática.

🚀 Começando

Pré-requisitos

  • Node.js (versão 16 ou superior)
  • npm ou yarn para gerenciar dependências

Instalação

  1. Clone o repositório:

    npm install --global infra-watch

    💡 Observação.: deves executar os comandos como admin

  2. Execute o CLI:

    npx infra-watch --help

📖 Uso

O infra-watch oferece uma interface de linha de comando intuitiva. Abaixo estão os principais comandos disponíveis:

Comandos Principais

  • Autenticação

    infra-watch auth login   # Faz login no servidor
    infra-watch auth logout  # Faz logout do servidor
  • Gerenciamento de Servidor

    infra-watch server get     # Obtém o ID do servidor
    infra-watch server set     # Define o ID do servidor
    infra-watch server update  # Atualiza o ID do servidor
    infra-watch server unset   # Remove o ID do servidor
    infra-watch server start   # Inicia o servidor
    infra-watch server status  # Verifica se o agente está rodando
  • Instalação e Desinstalação

    infra-watch install    # Instala o agente para iniciar no boot
    infra-watch uninstall  # Remove o agente da inicialização automática

Exemplo de Uso

  1. Fazer login no servidor:

    infra-watch auth login
  2. Iniciar o servidor:

    infra-watch server start
  3. Verificar o status do agente:

    infra-watch server status
  4. Instalar o agente para inicialização automática:

    infra-watch install

🛠️ Estrutura do Projeto

infra-watch/
├── src/
│   ├── getServerId.js    # Funções para gerenciamento de ID do servidor
│   ├── install.js        # Funções de instalação/desinstalação
│   └── ...               # Outros módulos
├── index.js              # Ponto de entrada principal
├── package.json          # Configurações e dependências
└── README.md             # Documentação do projeto

💻 Sistemas Operacionais Suportados

  • Linux (instalação via scripts de inicialização)
  • macOS (instalação via launchd)
  • Windows (instalação via agendador de tarefas)

Nota: Sistemas operacionais não listados ainda não são suportados. Entre em contato para solicitar suporte adicional.


📋 Dependências

  • commander: Para criação da interface CLI.
  • ora: Para spinners de carregamento elegantes.
  • Módulos nativos do Node.js: fs, os, process.

📜 Licença

Este projeto está licenciado sob a licença MIT. Veja o arquivo LICENSE para mais detalhes.


📧 Contato

Para dúvidas, sugestões ou suporte, entre em contato:


🌟 Obrigado por usar o Infra-Watch!