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

patrick-mades-dev-tools

v1.1.2

Published

A collection of development tools and utilities Made by Patrick Made for Patrick Made (but feel free to use it for your own projects)

Readme

Patrick Made's Dev Tools (PMDT)

A collection of development tools and utilities for React and React Native projects, written in TypeScript.

Quick CLI Reference

# Setup a React/React Native development environment
pmdt setup-react-env

# Browse AI prompts
pmdt ai-prompts browse

# List all available tools
pmdt list

# Get help
pmdt --help

Installation

Global Installation (Recommended for CLI usage)

# Using npm
npm install -g patrick-mades-dev-tools

# Using yarn
yarn global add patrick-mades-dev-tools

# Using pnpm
pnpm add -g patrick-mades-dev-tools

After installation, the pmdt command will be available globally in your terminal.

Local Installation (For programmatic usage)

# Using npm
npm install patrick-mades-dev-tools

# Using yarn
yarn add patrick-mades-dev-tools

# Using pnpm
pnpm add patrick-mades-dev-tools

Using with Node.js Corepack

For projects using Corepack, you can specify PMDT as your packageManager in package.json:

{
  "packageManager": "[email protected]"
}

This ensures everyone working on the project uses the same package manager version, making the CLI commands consistent across environments.

Command Line Interface

The package provides a powerful CLI tool that gives you access to all available tools:

# Basic syntax
pmdt <tool-name> [options]

# Examples:
pmdt setup-react-env --outputDir ./config
pmdt ai-prompts show refactor
pmdt list

Available Commands

| Command | Description | | -------------------- | --------------------------------- | | pmdt list | List all available tools | | pmdt help | Display help information | | pmdt <tool> --help | Display help for a specific tool | | pmdt-setup-react | Shortcut for setup-react-env tool |

Available Tools

React Development Environment Setup

Sets up a complete React/React Native development environment with TypeScript, ESLint, and Prettier.

CLI Usage:

# Basic usage
pmdt setup-react-env

# With options
pmdt setup-react-env --outputDir ./config --packageManager npm

# Using the direct shortcut
pmdt-setup-react

This tool will:

  1. Install essential dependencies:

    • ESLint with React and TypeScript plugins
    • Prettier and its ESLint integration
  2. Create configuration files:

    • .prettierrc - Prettier configuration
    • .eslintrc.js - ESLint configuration for React/TypeScript
    • .vscode/settings.json - Optimized VSCode settings
    • tsconfig.json - TypeScript configuration for React

Options:

  • --outputDir <path> - Directory where configuration files will be created (default: current directory)
  • --packageManager <yarn|npm|pnpm> - Package manager to use (default: yarn)
  • --dryRun - Run without actually installing dependencies

AI Prompts

A collection of AI prompts for various coding tasks, which can be used with Cursor or other AI coding assistants.

CLI Usage:

# List all available prompts
pmdt ai-prompts list

# Show a specific prompt
pmdt ai-prompts show <prompt-id>

# Copy a prompt to clipboard
pmdt ai-prompts copy <prompt-id>

# Browse prompts interactively
pmdt ai-prompts browse

Using in Your Projects Programmatically

The package is written in TypeScript and includes type definitions. When importing the package in your TypeScript projects, you'll get full type support:

import pmdt from 'patrick-mades-dev-tools';

// Run a tool programmatically
await pmdt.runTool('setup-react-env', {
  outputDir: './config',
  packageManager: 'npm',
});

// Get all available tools
const tools = pmdt.getTools();

Common CLI Workflows

Setting Up a New React Project

# Create a new React project
npx create-react-app my-app
cd my-app

# Set up TypeScript, ESLint and Prettier
pmdt setup-react-env

# Start development
npm start

Finding and Using AI Prompts

# Browse available prompts interactively
pmdt ai-prompts browse

# Or list all prompts
pmdt ai-prompts list

# Copy a specific prompt to clipboard
pmdt ai-prompts copy refactor

Extending with New Tools

You can create your own tools by following these steps:

  1. Create a new directory in the src/tools directory with your tool name (e.g., src/tools/my-new-tool)
  2. Create an index.ts file in your tool directory with this structure:
import { ToolDefinition, CommandResult } from '../../types';

interface MyToolOptions {
  option1?: string;
  booleanOption?: boolean;
}

const myNewTool: ToolDefinition = {
  id: 'my-new-tool', // Unique ID for the tool
  name: 'My New Tool', // Display name
  description: 'Description of what your tool does',

  // Options for your tool (optional)
  options: {
    option1: {
      description: 'Description of option1',
      default: 'defaultValue',
    },
    booleanOption: {
      description: 'A boolean flag',
      type: 'boolean',
      default: false,
    },
  },

  // The main function that will be executed
  execute: async (options: MyToolOptions): Promise<CommandResult> => {
    // Your tool implementation
    console.log('Tool executed with options:', options);
    return { success: true };
  },
};

export default myNewTool;

All tools are automatically discovered and registered when the package loads.

Development

Building from Source

# Clone the repository
git clone https://github.com/PatrickMade/devtools.git
cd devtools

# Install dependencies
npm install

# Build the project
npm run build

# Test CLI locally
node dist/bin/pmdt.js --help

Scripts

  • npm run build - Build the TypeScript source files
  • npm run lint - Run ESLint on the source files
  • npm run lint:fix - Fix linting issues automatically

License

MIT

Author

Patryk Madaj