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

rufi-cli

v1.1.3

Published

A command-line tool for managing services, database migrations, and environments in distributed or microservice-based projects.

Downloads

1

Readme

Rufi CLI

Rufi CLI is a command-line interface tool designed to manage and streamline the development of services. It provides commands for managing services, migrations, and database schemas, making it easier to work with distributed systems and microservices.

Features

  • Clone and pull services from Git repositories.
  • Manage database migrations for individual or all services.
  • Reset and initialize the development environment.
  • List database schemas and tables.

Installation

npm i rufi-cli -D

or

bun i -d rufi-cli

Before using it

  1. Make sure your .env file looks like this:
# Required to run the CLI (the variable names can be changed in your rufi.config)
POSTGRES_HOST="localhost"
POSTGRES_DATABASE="postgres"
POSTGRES_USER="postgres"
POSTGRES_PORT="5432"
POSTGRES_PASSWORD='super-secret-password'

ENV='development' # any other value will disable dev commands

CORE_SERVICE=core

# Required to use service:* commands
GIT_TOKEN=your-git-token
GIT_USERNAME=username
  1. Your PostgreSQL database is running and accepting connections.
  2. You’re using psql (or a Docker container with it).
  3. You have git installed (duh).

Note: It may fail if:

  • The database is not running
  • Any credential is incorrect

Usage

Run the CLI commands using the rufi binary.

Initialize Configuration

Create the default configuration files (required before using the CLI):

npx rufi init --with-services [--ts]

Note: The TypeScript config file is currently only used during CLI development. There’s no guarantee that it will work properly in your project. Prefer .js config files.

Clone Services

Clone all services defined in the configuration:

npx rufi service:clone --all

Pull Updates

Pull updates for a specific service:

npx rufi service:pull <service-name>

Apply Migrations

Apply pending migrations for a specific service:

npx rufi migration:up <service-name>

Reset Database

Reset the development database by dropping all schemas:

npx rufi db:reset

Start Environment

Initialize the environment by cloning all services and applying migrations:

rufi start

For a full list of commands, use:

rufi --help