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

sreeragh

v1.0.2

Published

Interactive CLI for Sreeragh's portfolio

Readme

Sreeragh CLI

An interactive command-line interface for exploring Sreeragh's portfolio, built with TypeScript and Node.js.

Features

  • 🚀 Interactive Portfolio: Explore projects, skills, and experience
  • ⌨️ Typing Test: Built-in typing test with real-time feedback
  • 📝 Blog Integration: Read blog posts directly from the CLI
  • 🎨 Beautiful UI: Colorful and well-formatted terminal output
  • 📊 Real-time Data: Fetches live data from https://sreeragh.me
  • 🔧 Cross-platform: Works on Windows, macOS, and Linux

Installation

Global Installation (Recommended)

npm install -g sreeragh-cli

From Source

git clone <repository-url>
cd sreeragh
npm install
npm run build
npm link

Usage

Basic Commands

# Show general information
sreeragh about

# View projects and works
sreeragh works
sreeragh works --interactive  # Interactive mode
sreeragh works --list        # List format

# View technical skills
sreeragh skills
sreeragh skills frontend     # Specific category

# Start typing test
sreeragh typing
sreeragh typing 60          # 60-second test

# Contact information
sreeragh contact

# Blog posts
sreeragh blog

# Interactive mode
sreeragh interactive

Command Aliases

Most commands have convenient aliases:

  • aboutwhoami, info
  • worksprojects, portfolio
  • skillstech, stack
  • typingtype, monkeytype

Options

# Show help
sreeragh --help
sreeragh <command> --help

# Version information
sreeragh --version

# Verbose output
sreeragh --verbose <command>

# Disable colors
sreeragh --no-color <command>

Examples

Explore Projects Interactively

sreeragh works --interactive

This will show an interactive list where you can:

  • Navigate with arrow keys
  • View detailed project information
  • Open project URLs in your browser

Quick Skills Lookup

# View all skills
sreeragh skills

# View frontend skills only
sreeragh skills frontend

# View backend skills only
sreeragh skills backend

Typing Test

# Default 60-second test
sreeragh typing

# Custom duration (10-300 seconds)
sreeragh typing 30
sreeragh typing 120

The typing test includes:

  • Real-time WPM calculation
  • Accuracy tracking
  • Error counting
  • Performance feedback
  • Colorized text (green for correct, red for errors)

Development

Prerequisites

  • Node.js 14.0.0 or higher
  • npm or yarn

Setup

# Clone the repository
git clone <repository-url>
cd sreeragh

# Install dependencies
npm install

# Development mode
npm run dev

# Build for production
npm run build

# Run built version
npm start

Project Structure

src/
├── commands/          # Command implementations
│   ├── about.ts
│   ├── works.ts
│   ├── skills.ts
│   └── typing.ts
├── services/          # API and external services
│   └── api.ts
├── utils/             # Utility functions
│   ├── display.ts
│   └── typing-test.ts
├── types/             # TypeScript type definitions
│   └── index.ts
├── cli.ts             # Main CLI application class
└── index.ts           # Entry point

Adding New Commands

  1. Create a new command class in src/commands/
  2. Extend BaseCommand
  3. Implement required methods and properties
  4. Register the command in src/cli.ts

Example:

import { BaseCommand } from './base';
import { CLIContext } from '../types';

export class NewCommand extends BaseCommand {
  name = 'new';
  description = 'A new command';
  aliases = ['n'];

  async execute(args: string[], context: CLIContext): Promise<void> {
    this.log('Hello from new command!');
  }
}

API Integration

The CLI fetches data from https://sreeragh.me with the following endpoints:

  • GET /api/portfolio - Portfolio data
  • GET /api/blog - Blog posts
  • GET /api/blog/:slug - Individual blog post

The CLI includes fallback mechanisms and graceful error handling when the API is unavailable.

Dependencies

Runtime Dependencies

  • axios - HTTP client for API requests
  • chalk - Terminal styling
  • commander - Command-line argument parsing
  • inquirer - Interactive prompts
  • ora - Loading spinners
  • boxen - Terminal boxes
  • figlet - ASCII art text
  • gradient-string - Gradient text effects

Development Dependencies

  • typescript - TypeScript compiler
  • ts-node - TypeScript execution
  • @types/* - Type definitions

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

License

MIT License - see LICENSE file for details

Contact

  • Email: [email protected]
  • GitHub: https://github.com/sreeragh-s/
  • Twitter: https://x.com/sreeragh_s
  • Website: https://sreeragh.me

Built with ❤️ by Sreeragh S